diff --git a/Shorewall/Perl/Shorewall/Zones.pm b/Shorewall/Perl/Shorewall/Zones.pm index a803a2ff2..6bbb421ba 100644 --- a/Shorewall/Perl/Shorewall/Zones.pm +++ b/Shorewall/Perl/Shorewall/Zones.pm @@ -763,7 +763,11 @@ sub add_group_to_zone($$$$$) $new = \@exclusions; } - $host = validate_net( $host, 1 ) unless $host =~ /^\+/; + if ( $host =~ /-/ ) { + &validate_range( split('-', $host, 2 ) ) + } else { + $host = validate_net( $host, 1 ) unless $host =~ /^\+/; + } unless ( $switched ) { if ( $type == $zonetype ) {