mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-16 09:50:33 +01:00
Correct handling of ";;+" in the snat file
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5cc626fa1d
commit
0722edd4bc
@ -5485,6 +5485,14 @@ sub process_snat1( $$$$$$$$$$$$ ) {
|
|||||||
my $logaction;
|
my $logaction;
|
||||||
my $param;
|
my $param;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Handle early matches
|
||||||
|
#
|
||||||
|
if ( $inlinematches =~ s/^s*\+// ) {
|
||||||
|
$prerule = $inlinematches;
|
||||||
|
$inlinematches = '';
|
||||||
|
}
|
||||||
|
|
||||||
if ( $action =~ /^MASQUERADE(\+)?(?:\((.+)\))?$/ ) {
|
if ( $action =~ /^MASQUERADE(\+)?(?:\((.+)\))?$/ ) {
|
||||||
$target = 'MASQUERADE';
|
$target = 'MASQUERADE';
|
||||||
$actiontype = $builtin_target{$action = $target};
|
$actiontype = $builtin_target{$action = $target};
|
||||||
|
Loading…
Reference in New Issue
Block a user