From: Stefan Schantl Date: Fri, 16 Jul 2021 16:35:58 +0000 (+0200) Subject: firewall.cgi: Allow to creating input rules from Orange to another zone. X-Git-Tag: v2.27-core160~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9611629cc90f716fbf4fc7050a95f0b7b285df3;p=ipfire-2.x.git firewall.cgi: Allow to creating input rules from Orange to another zone. It was not able to create a firewall rule from the orange network to a different network address of the firewall. ( For example: Orange -> IPFire's green address) These rules always have been handled as FORWARD rules which is totaly wrong. Fixes #12265. Signed-off-by: Stefan Schantl Tested-by: Peter Müller Reviewed-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 0eace5f113..2200303480 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -247,7 +247,7 @@ if ($fwdfwsettings{'ACTION'} eq 'saverule') $errormessage=$Lang::tr{'fwdfw err same'}; } # INPUT part - if ($fwdfwsettings{'grp2'} eq 'ipfire' && $fwdfwsettings{$fwdfwsettings{'grp1'}} ne 'ORANGE'){ + if ($fwdfwsettings{'grp2'} eq 'ipfire') { $fwdfwsettings{'config'}=$configinput; $fwdfwsettings{'chain'} = 'INPUTFW'; $maxkey=&General::findhasharraykey(\%configinputfw);