From b55d8c04e46215756521425ae64e21e1806a6169 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 8 May 2012 14:52:18 -0700 Subject: [PATCH] Do logical->physical mapping in rtrules. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Providers.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 32eae9b7a..187a63638 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -930,7 +930,7 @@ sub add_an_rtrule( ) { validate_net ( $source, 0 ); $source = "from $source"; } else { - $source = "iif $source"; + $source = 'iif ' . physical_name $source; } } elsif ( $source =~ /^(.+?):<(.+)>\s*$/ || $source =~ /^(.+?):\[(.+)\]\s*$/ ) { my ($interface, $source ) = ($1, $2); @@ -941,7 +941,7 @@ sub add_an_rtrule( ) { validate_net ( $source, 0 ); $source = "from $source"; } else { - $source = "iif $source"; + $source = 'iif ' . physical_name $source; } my $mark = '';