diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index a5fbea9d6..e00d46a44 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -251,6 +251,7 @@ sub process_one_masq1( $$$$$$$$$$ ) } else { validate_address $ipaddr, 0; } + validate_portpair1( $proto, $rest ) if supplied $rest; $addrlist .= "--to-source $addr "; $exceptionrule = do_proto( $proto, '', '' ) if $addr =~ /:/; } else {