On 10/7/12 2:16 PM, Steven Jan Springl wrote: > Tom > > The following Shorewall6 hosts file entry: > > abc eth2:<2001::-2001:1::!2001::4-2001::8> routeback,........ > > Produces the following message: > > ERROR: Unknown Host (2001::-2001:1::) /etc/shorewall66/hosts (line 11) > > This worked in 4.5.8 RC2.
Steven, This patch seems to correct the problem. Thanks, -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Zones.pm
b/Shorewall/Perl/Shorewall/Zones.pm
index c90fc8f..ec50177 100644
--- a/Shorewall/Perl/Shorewall/Zones.pm
+++ b/Shorewall/Perl/Shorewall/Zones.pm
@@ -764,7 +764,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 ) {
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
