]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: INPUT Firewall added "ALL" with ip 0.0.0.0
authorAlexander Marx <amarx@ipfire.org>
Wed, 12 Jun 2013 13:17:12 +0000 (15:17 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:15:28 +0000 (14:15 +0200)
config/forwardfw/rules.pl

index f9e7922b25ec3aeace4b44a36d8941c666319ddf..12723e749a7f0bd0ab93383c79f3734a817aee15 100755 (executable)
@@ -224,6 +224,9 @@ sub buildrules
                                if($$hash{$key}[6] eq 'ORANGE'){
                                        $targethash{$key}[0]=$defaultNetworks{'ORANGE_ADDRESS'};
                                }
                                if($$hash{$key}[6] eq 'ORANGE'){
                                        $targethash{$key}[0]=$defaultNetworks{'ORANGE_ADDRESS'};
                                }
+                               if($$hash{$key}[6] eq 'ALL'){
+                                       $targethash{$key}[0]='0.0.0.0/0';
+                               }
                                if($$hash{$key}[6] eq 'RED' || $$hash{$key}[6] eq 'RED1'){
                                        open(FILE, "/var/ipfire/red/local-ipaddress") or die 'Unable to open config file.';
                                        $targethash{$key}[0]= <FILE>;
                                if($$hash{$key}[6] eq 'RED' || $$hash{$key}[6] eq 'RED1'){
                                        open(FILE, "/var/ipfire/red/local-ipaddress") or die 'Unable to open config file.';
                                        $targethash{$key}[0]= <FILE>;