Correct handling of ";;+" in the snat file

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2020-06-28 11:03:04 -07:00
parent 5cc626fa1d
commit 0722edd4bc
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -5485,6 +5485,14 @@ sub process_snat1( $$$$$$$$$$$$ ) {
my $logaction;
my $param;
#
# Handle early matches
#
if ( $inlinematches =~ s/^s*\+// ) {
$prerule = $inlinematches;
$inlinematches = '';
}
if ( $action =~ /^MASQUERADE(\+)?(?:\((.+)\))?$/ ) {
$target = 'MASQUERADE';
$actiontype = $builtin_target{$action = $target};