Forward Firewall: INPUT Firewall added "ALL" with ip 0.0.0.0

This commit is contained in:
Alexander Marx
2013-06-12 15:17:12 +02:00
committed by Michael Tremer
parent ed9ab82c61
commit 8762442c4e

View File

@@ -224,6 +224,9 @@ sub buildrules
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>;