]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Firewall: Added protocols IPv6 (41) and IPIP (94)
authorAlexander Marx <amarx@ipfire.org>
Thu, 24 Oct 2013 05:59:42 +0000 (07:59 +0200)
committerAlexander Marx <amarx@ipfire.org>
Thu, 24 Oct 2013 05:59:42 +0000 (07:59 +0200)
html/cgi-bin/firewall.cgi

index fde7e5e8298f58fe31332fd9420ae80ec8e8eed7..868cc85ee454bcd113c2f9ebf87a7fb0592852d8 100755 (executable)
@@ -63,7 +63,7 @@ my %aliases=();
 my %optionsfw=();
 my %ifaces=();
 
-my @PROTOCOLS = ("TCP", "UDP", "ICMP", "IGMP", "AH", "ESP", "GRE");
+my @PROTOCOLS = ("TCP", "UDP", "ICMP", "IGMP", "AH", "ESP", "GRE","IPv6","IPIP");
 
 my $color;
 my $confignet          = "${General::swroot}/fwhosts/customnetworks";
@@ -919,6 +919,18 @@ sub checkrule
                $fwdfwsettings{'ICMP_TYPES'}='';
                $fwdfwsettings{'USESRV'}='';
                $fwdfwsettings{'TGT_PORT'}='';
+       }elsif($fwdfwsettings{'PROT'} eq 'IPv6'){
+               $fwdfwsettings{'USE_SRC_PORT'}='';
+               $fwdfwsettings{'SRC_PORT'}='';
+               $fwdfwsettings{'ICMP_TYPES'}='';
+               $fwdfwsettings{'USESRV'}='';
+               $fwdfwsettings{'TGT_PORT'}='';
+       }elsif($fwdfwsettings{'PROT'} eq 'IPIP'){
+               $fwdfwsettings{'USE_SRC_PORT'}='';
+               $fwdfwsettings{'SRC_PORT'}='';
+               $fwdfwsettings{'ICMP_TYPES'}='';
+               $fwdfwsettings{'USESRV'}='';
+               $fwdfwsettings{'TGT_PORT'}='';
        }elsif($fwdfwsettings{'PROT'} ne 'TCP' && $fwdfwsettings{'PROT'} ne 'UDP' && $fwdfwsettings{'PROT'} ne 'ICMP'){
                $fwdfwsettings{'ICMP_TYPES'}='';
                $fwdfwsettings{'PROT'} = '';