From 9008cd960c8565b84df79310163768d3482e7a1e Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 13 Apr 2011 17:01:22 -0700 Subject: [PATCH] Fix a silly masq bug --- Shorewall/Perl/Shorewall/Nat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index de0da9ec8..c009eaad8 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -207,7 +207,7 @@ sub process_one_masq( ) } else { my $ports = $addr; $ports =~ s/^://; - $ports =~ s/:/-/; + $ports =~ s/-/:/; validate_portpair( $proto, $ports ); $addrlist .= "--to-ports $ports "; $exceptionrule = do_proto( $proto, '', '' );