mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-03 00:15:54 +02:00
Prevent invalid code generation with SNAT(detect)
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
aaa80882a0
commit
9f3cc88cf0
@ -5574,6 +5574,15 @@ sub process_snat1( $$$$$$$$$$$$ ) {
|
|||||||
$chainref = $interface ? ensure_chain('nat', $pre_nat ? snat_chain $interface : masq_chain $interface) : $nat_table->{INPUT};
|
$chainref = $interface ? ensure_chain('nat', $pre_nat ? snat_chain $interface : masq_chain $interface) : $nat_table->{INPUT};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $chainref->{complete} ) {
|
||||||
|
if ( $interface ) {
|
||||||
|
warning_message( "Interface $interface entry generated no $toolname rule" );
|
||||||
|
} else {
|
||||||
|
warning_message( "Entry generated no $toolname rule" );
|
||||||
|
}
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
$baserule .= do_condition( $condition , $chainref->{name} );
|
$baserule .= do_condition( $condition , $chainref->{name} );
|
||||||
#
|
#
|
||||||
# Handle IPSEC options, if any
|
# Handle IPSEC options, if any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user