diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index 1019f88f8..ccbcfcd96 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -277,7 +277,7 @@ sub process_one_masq1( $$$$$$$$$$ ) $addr = $1; - if ( $addr =~ /^(.+)-(.+)$/ ) { + if ( $addr =~ /^(.+)]-\[(.+)$/ ) { validate_range( $1, $2 ); } else { validate_address $addr, 0;