forked from extern/shorewall_code
Replace --to-ports <ports> with --to-source :<ports>
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
10c1ad245a
commit
d37967f32f
@ -293,7 +293,7 @@ sub process_one_masq1( $$$$$$$$$$$$ )
|
|||||||
my $ports = $addr;
|
my $ports = $addr;
|
||||||
$ports =~ s/^://;
|
$ports =~ s/^://;
|
||||||
validate_portpair1( $proto, $ports );
|
validate_portpair1( $proto, $ports );
|
||||||
$addrlist .= "--to-ports $ports ";
|
$addrlist .= "--to-source :$ports ";
|
||||||
$exceptionrule = do_proto( $proto, '', '' );
|
$exceptionrule = do_proto( $proto, '', '' );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -5566,7 +5566,7 @@ sub process_snat1( $$$$$$$$$$$$ ) {
|
|||||||
my $ports = $addr;
|
my $ports = $addr;
|
||||||
$ports =~ s/^://;
|
$ports =~ s/^://;
|
||||||
validate_portpair1( $proto, $ports );
|
validate_portpair1( $proto, $ports );
|
||||||
$addrlist .= " --to-ports $ports";
|
$addrlist .= " --to-source :$ports";
|
||||||
$exceptionrule = do_proto( $proto, '', '' );
|
$exceptionrule = do_proto( $proto, '', '' );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user