mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-26 20:51:27 +02:00
Correct handling of a physical name in a masq rule
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
dd3c0daa08
commit
b9bed00123
@ -173,7 +173,9 @@ sub process_one_masq1( $$$$$$$$$$$ )
|
|||||||
|
|
||||||
fatal_error "Unknown interface ($interface)" unless my $interfaceref = known_interface( $interface );
|
fatal_error "Unknown interface ($interface)" unless my $interfaceref = known_interface( $interface );
|
||||||
|
|
||||||
unless ( $interfaceref->{root} ) {
|
if ( $interfaceref->{root} ) {
|
||||||
|
$interface = $interfaceref->{name} if $interface eq $interfaceref->{physical};
|
||||||
|
} else {
|
||||||
$rule .= match_dest_dev( $interface );
|
$rule .= match_dest_dev( $interface );
|
||||||
$interface = $interfaceref->{name};
|
$interface = $interfaceref->{name};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user