]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
BUG11805: Firewall rule with source orange and target firewall-interface-orange not...
authorAlexander Marx <amarx@ipfire.org>
Wed, 22 Aug 2018 09:23:16 +0000 (11:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Aug 2018 13:46:10 +0000 (14:46 +0100)
Now its possible to create a rule with orange source and target orange interface of the firewall.

Fixes: #11805
Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/firewall.cgi

index 499f279d1fefb68d5e85186e0f48edd76ab455e3..fb1c25dfd577a016a3fefdf76456f7c39811fcb9 100644 (file)
@@ -241,10 +241,6 @@ if ($fwdfwsettings{'ACTION'} eq 'saverule')
                        $checkorange='on';
                }
        }
-       #check useless rules
-       if(     ($fwdfwsettings{$fwdfwsettings{'grp1'}} eq 'ORANGE' || $checkorange eq 'on') && $fwdfwsettings{'grp2'} eq 'ipfire'){
-               $errormessage.=$Lang::tr{'fwdfw useless rule'}."<br>";
-       }
        #check if we try to break rules
        if(     $fwdfwsettings{'grp1'} eq 'ipfire_src' && $fwdfwsettings{'grp2'} eq 'ipfire'){
                $errormessage=$Lang::tr{'fwdfw err same'};