Andreas Ferber wrote:
>
> Further testing reveals that this seems to only apply to lines that
> have the "critical" option set.
> 

Please see if the attached patch corrects the problem.


Index: Shorewall/Compiler.pm
===================================================================
--- Shorewall/Compiler.pm	(revision 9216)
+++ Shorewall/Compiler.pm	(working copy)
@@ -448,7 +448,7 @@
 		    );
 
 	    for my $hosts ( @$criticalhosts ) {
-                my ( $interface, $host ) = ( split /:/, $hosts );
+                my ( $interface, $host ) = ( split /\|/, $hosts );
                 my $source = match_source_net $host;
 		my $dest   = match_dest_net $host;
 
Index: Shorewall/Rules.pm
===================================================================
--- Shorewall/Rules.pm	(revision 9187)
+++ Shorewall/Rules.pm	(working copy)
@@ -383,7 +383,7 @@
 
 	for my $host ( split_list $hosts, 'host' ) {
 	    validate_host $host, 1;
-	    push @hosts, "$interface:$host";
+	    push @hosts, "$interface|$host";
 	}
 
 	unless ( $options eq '-' ) {
------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to