From: Alexander Marx Date: Fri, 18 Jan 2013 08:40:59 +0000 (+0100) Subject: Forward Firewall: edited rules.pl, so thatrules are created when source and target... X-Git-Tag: v2.15-beta1~286^2~11^2~250 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7dc9718d31def634485a1b975a8a8e2a4c8bd4f;p=ipfire-2.x.git Forward Firewall: edited rules.pl, so thatrules are created when source and target are 0.0.0.0/0.0.0.0 --- diff --git a/config/forwardfw/rules.pl b/config/forwardfw/rules.pl index a6ba4fc507..94dfc16ecc 100755 --- a/config/forwardfw/rules.pl +++ b/config/forwardfw/rules.pl @@ -195,7 +195,7 @@ sub buildrules $PROT="-p $PROT" if ($PROT ne '' && $PROT ne ' '); foreach my $a (sort keys %sourcehash){ foreach my $b (sort keys %targethash){ - if ($sourcehash{$a}[0] ne $targethash{$b}[0] && $targethash{$b}[0] ne 'none'){ + if ($sourcehash{$a}[0] ne $targethash{$b}[0] && $targethash{$b}[0] ne 'none' || $sourcehash{$a}[0] eq '0.0.0.0/0.0.0.0'){ if($SPROT eq '' || $SPROT eq $DPROT || $DPROT eq ' '){ if(substr($sourcehash{$a}[0], 3, 3) ne 'mac'){ $STAG="-s";} if ($$hash{$key}[17] eq 'ON'){ @@ -215,7 +215,7 @@ sub buildrules $PROT="-p $PROT" if ($PROT ne '' && $PROT ne ' '); foreach my $a (sort keys %sourcehash){ foreach my $b (sort keys %targethash){ - if ($sourcehash{$a}[0] ne $targethash{$b}[0] && $targethash{$b}[0] ne 'none'){ + if ($sourcehash{$a}[0] ne $targethash{$b}[0] && $targethash{$b}[0] ne 'none' || $sourcehash{$a}[0] eq '0.0.0.0/0.0.0.0'){ if($SPROT eq '' || $SPROT eq $DPROT || $DPROT eq ' '){ if(substr($sourcehash{$a}[0], 3, 3) ne 'mac'){ $STAG="-s";} if ($$hash{$key}[17] eq 'ON'){