]> git.ipfire.org Git - people/amarx/ipfire-2.x.git/commitdiff
BUG10617: allow rules from local networks to firewall itself BUG10617
authorAlexander Marx <amarx@ipfire.org>
Fri, 19 Sep 2014 06:15:47 +0000 (08:15 +0200)
committerAlexander Marx <amarx@ipfire.org>
Fri, 19 Sep 2014 09:21:11 +0000 (11:21 +0200)
html/cgi-bin/firewall.cgi

index e6ae5272a2c2f5f7bc382196c3c91bcaf631510e..431ad67edfb6e72d642a119944586e6773462221 100644 (file)
@@ -833,7 +833,7 @@ sub checkrule
                $errormessage.=$Lang::tr{'fwdfw err remark'}."<br>";
        }
        #check if source and target identical
-       if ($fwdfwsettings{$fwdfwsettings{'grp1'}} eq $fwdfwsettings{$fwdfwsettings{'grp2'}} && $fwdfwsettings{$fwdfwsettings{'grp1'}} ne 'ALL'){
+       if ($fwdfwsettings{$fwdfwsettings{'grp1'}} eq $fwdfwsettings{$fwdfwsettings{'grp2'}} && $fwdfwsettings{$fwdfwsettings{'grp1'}} ne 'ALL' && $fwdfwsettings{'grp2'} ne 'ipfire'){
                $errormessage=$Lang::tr{'fwdfw err same'};
                return $errormessage;
        }
@@ -2578,6 +2578,9 @@ END
                                        print "$Lang::tr{'red1'}";
                                }elsif ($$hash{$key}[6] eq 'GREEN' || $$hash{$key}[6] eq 'ORANGE' || $$hash{$key}[6] eq 'BLUE'|| $$hash{$key}[6] eq 'ALL' || $$hash{$key}[6] eq 'RED')
                                {
+                                       if ($$hash{$key}[5] eq 'ipfire'){
+                                               print "IPFire-";
+                                       }
                                        print &get_name($$hash{$key}[6]);
                                }else{
                                        print $$hash{$key}[6];