diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index db7031e50..d3efb99d7 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -5376,6 +5376,8 @@ sub process_snat1( $$$$$$$$$$$$ ) { } else { ( $target , $params ) = get_target_param1( $action ); + $pre_nat = ( $target =~ s/\+$//; ) + $actiontype = $targets{$target}; fatal_error "Invalid ACTION ($action)" unless $actiontype & ( ACTION | INLINE ); diff --git a/Shorewall/manpages/shorewall-snat.xml b/Shorewall/manpages/shorewall-snat.xml index 94edc136d..f6a29a446 100644 --- a/Shorewall/manpages/shorewall-snat.xml +++ b/Shorewall/manpages/shorewall-snat.xml @@ -145,7 +145,7 @@ action[(parameter,...)] + role="bold">action[+][(parameter,...)] where action is an action diff --git a/Shorewall6/manpages/shorewall6-snat.xml b/Shorewall6/manpages/shorewall6-snat.xml index c11592d31..e08f6563d 100644 --- a/Shorewall6/manpages/shorewall6-snat.xml +++ b/Shorewall6/manpages/shorewall6-snat.xml @@ -144,7 +144,7 @@ action[(parameter,...)] + role="bold">action[+][(parameter,...)] where action is an action