mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-17 20:26:47 +02:00
Prevent invalid code generation with SNAT(detect)
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user