Replace --to-ports <ports> with --to-source :<ports>

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-11-01 16:52:08 -07:00
parent 10c1ad245a
commit d37967f32f
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ sub process_one_masq1( $$$$$$$$$$$$ )
my $ports = $addr;
$ports =~ s/^://;
validate_portpair1( $proto, $ports );
$addrlist .= "--to-ports $ports ";
$addrlist .= "--to-source :$ports ";
$exceptionrule = do_proto( $proto, '', '' );
}
} else {

View File

@ -5566,7 +5566,7 @@ sub process_snat1( $$$$$$$$$$$$ ) {
my $ports = $addr;
$ports =~ s/^://;
validate_portpair1( $proto, $ports );
$addrlist .= " --to-ports $ports";
$addrlist .= " --to-source :$ports";
$exceptionrule = do_proto( $proto, '', '' );
}
} else {