forked from extern/shorewall_code
Correct handling of masquerade port range when ADD_SNAT_ALIASES=Yes
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9ae36e1989
commit
53d97bbcc8
@ -5363,6 +5363,7 @@ sub process_snat1( $$$$$$$$$$$$ ) {
|
|||||||
$pre_nat = $1;
|
$pre_nat = $1;
|
||||||
$addresses = ( $2 || '' );
|
$addresses = ( $2 || '' );
|
||||||
$options = 'random' if $addresses =~ s/:?random$//;
|
$options = 'random' if $addresses =~ s/:?random$//;
|
||||||
|
$add_snat_aliases = '';
|
||||||
} elsif ( $action =~ /^SNAT(\+)?\((.+)\)$/ ) {
|
} elsif ( $action =~ /^SNAT(\+)?\((.+)\)$/ ) {
|
||||||
$pre_nat = $1;
|
$pre_nat = $1;
|
||||||
$addresses = $2;
|
$addresses = $2;
|
||||||
@ -5377,6 +5378,7 @@ sub process_snat1( $$$$$$$$$$$$ ) {
|
|||||||
$pre_nat = $1;
|
$pre_nat = $1;
|
||||||
} elsif ( $action eq 'MASQUERADE' ) {
|
} elsif ( $action eq 'MASQUERADE' ) {
|
||||||
$actiontype = $builtin_target{$target = 'MASQUERADE'};
|
$actiontype = $builtin_target{$target = 'MASQUERADE'};
|
||||||
|
$add_snat_aliases = '';
|
||||||
} else {
|
} else {
|
||||||
( $target , $params ) = get_target_param1( $action );
|
( $target , $params ) = get_target_param1( $action );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user