forked from extern/shorewall_code
Do logical->physical mapping in rtrules.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
3b6f5b2d8a
commit
b55d8c04e4
@ -930,7 +930,7 @@ sub add_an_rtrule( ) {
|
|||||||
validate_net ( $source, 0 );
|
validate_net ( $source, 0 );
|
||||||
$source = "from $source";
|
$source = "from $source";
|
||||||
} else {
|
} else {
|
||||||
$source = "iif $source";
|
$source = 'iif ' . physical_name $source;
|
||||||
}
|
}
|
||||||
} elsif ( $source =~ /^(.+?):<(.+)>\s*$/ || $source =~ /^(.+?):\[(.+)\]\s*$/ ) {
|
} elsif ( $source =~ /^(.+?):<(.+)>\s*$/ || $source =~ /^(.+?):\[(.+)\]\s*$/ ) {
|
||||||
my ($interface, $source ) = ($1, $2);
|
my ($interface, $source ) = ($1, $2);
|
||||||
@ -941,7 +941,7 @@ sub add_an_rtrule( ) {
|
|||||||
validate_net ( $source, 0 );
|
validate_net ( $source, 0 );
|
||||||
$source = "from $source";
|
$source = "from $source";
|
||||||
} else {
|
} else {
|
||||||
$source = "iif $source";
|
$source = 'iif ' . physical_name $source;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $mark = '';
|
my $mark = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user