X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Fforwardfw%2Frules.pl;fp=config%2Fforwardfw%2Frules.pl;h=fcaade2d6632f3416ff742b161642e8c72c73ba7;hp=5116844b7e7087d2752272bc6cb96e2b44d74cc7;hb=6e62882de69ad42efcb4c3c2097abb5d5c54666c;hpb=58bda09b683311db948fb5be06b1521386286f03 diff --git a/config/forwardfw/rules.pl b/config/forwardfw/rules.pl index 5116844b7..fcaade2d6 100755 --- a/config/forwardfw/rules.pl +++ b/config/forwardfw/rules.pl @@ -256,7 +256,7 @@ sub buildrules 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' || $sourcehash{$a}[0] eq '0.0.0.0/0.0.0.0'){ - if($DPROT eq ' ' || $DPROT ne ''){ + if($DPROT ne ''){ if(substr($sourcehash{$a}[0], 3, 3) ne 'mac' && $sourcehash{$a}[0] ne ''){ $STAG="-s";} if(substr($DPORT, 2, 4) eq 'icmp'){ my @icmprule= split(",",substr($DPORT, 12,)); @@ -315,7 +315,7 @@ sub buildrules 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' || $sourcehash{$a}[0] eq '0.0.0.0/0.0.0.0'){ - if($DPROT ne '' || $DPROT eq ' '){ + if($DPROT ne ''){ if(substr($sourcehash{$a}[0], 3, 3) ne 'mac' && $sourcehash{$a}[0] ne ''){ $STAG="-s";} #Process ICMP RULE if(substr($DPORT, 2, 4) eq 'icmp'){