diff --git a/Shorewall-perl/Shorewall/Compiler.pm b/Shorewall-perl/Shorewall/Compiler.pm index 994918a0d..e72de51af 100644 --- a/Shorewall-perl/Shorewall/Compiler.pm +++ b/Shorewall-perl/Shorewall/Compiler.pm @@ -888,7 +888,7 @@ sub compiler { ${$ref->{store}} = $val; } - reinitialize if ++$reused || $family == F_IPV6; + reinitialize if $reused++ || $family == F_IPV6; if ( $directory ne '' ) { fatal_error "$directory is not an existing directory" unless -d $directory; diff --git a/Shorewall-perl/Shorewall/Config.pm b/Shorewall-perl/Shorewall/Config.pm index b0c1e22b8..fad7e4461 100644 --- a/Shorewall-perl/Shorewall/Config.pm +++ b/Shorewall-perl/Shorewall/Config.pm @@ -2044,7 +2044,7 @@ sub get_configuration( $ ) { if ( $family == F_IPV4 ) { check_trivalue ( 'LOG_MARTIANS', 'on' ); } else { - check_trivalue ( 'LOG_MARTIANS', 'ff' ); + check_trivalue ( 'LOG_MARTIANS', 'off' ); fatal_error "LOG_MARTIANS=On is not supported in IPv6" if $config{LOG_MARTIANS} eq 'on'; } diff --git a/Shorewall-perl/Shorewall/Providers.pm b/Shorewall-perl/Shorewall/Providers.pm index 332e457ee..2e3d9663b 100644 --- a/Shorewall-perl/Shorewall/Providers.pm +++ b/Shorewall-perl/Shorewall/Providers.pm @@ -360,7 +360,7 @@ sub add_a_provider( $$$$$$$$ ) { if ( $loose ) { if ( $config{DELETE_THEN_ADD} ) { emit ( "\nfind_interface_addresses $interface | while read address; do", - " qt ip $family rule del from $address", + " qt ip -$family rule del from $address", 'done' ); }