mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Forward FIrewall: BUGFIX: when setting outgoing to blocked and creating a rule, the last rule changes to "accept"
This commit is contained in:
committed by
Michael Tremer
parent
357b3fe80d
commit
6143bc300e
@@ -2385,15 +2385,15 @@ END
|
||||
}
|
||||
&show_defaultrules($col,$pol);
|
||||
}elsif ($config eq '/var/ipfire/forward/outgoing'){
|
||||
my $pol='fwdfw '.$fwdfwsettings{'POLICY1'};
|
||||
if ($fwdfwsettings{'POLICY1'} eq 'MODE1'){
|
||||
$col="bgcolor='darkred'";
|
||||
print"<tr><td $col width='20%' align='center'><font color='#FFFFFF'>$Lang::tr{'fwdfw final_rule'}</td><td $col><font color='#FFFFFF' align='center'>$Lang::tr{'fwdfw pol allow'}</font></td></tr>";
|
||||
print"<tr><td $col width='20%' align='center'><font color='#FFFFFF'>$Lang::tr{'fwdfw final_rule'}</td><td $col align='center'><font color='#FFFFFF' >$Lang::tr{'fwdfw pol block'}</font></td></tr>";
|
||||
}else{
|
||||
$col="bgcolor='green'";
|
||||
print"<tr><td $col width='20%' align='center'><font color='#FFFFFF'>$Lang::tr{'fwdfw final_rule'}</td><td $col><font color='#FFFFFF' align='center'>$Lang::tr{'fwdfw pol block'}</font></td></tr>";
|
||||
print"<tr><td $col width='20%' align='center'><font color='#FFFFFF'>$Lang::tr{'fwdfw final_rule'}</td><td $col align='center'><font color='#FFFFFF' >$Lang::tr{'fwdfw pol allow'}</font></td></tr>";
|
||||
}
|
||||
}else{
|
||||
print"uzlputz daneben";
|
||||
print"<tr><td bgcolor='darkred' width='20%' align='center'><font color='#FFFFFF'>$Lang::tr{'fwdfw final_rule'}</td><td bgcolor='darkred' align='center'><font color='#FFFFFF'>$Lang::tr{'fwdfw pol block'}</font></td></tr>";
|
||||
}
|
||||
print"</table>";
|
||||
|
||||
Reference in New Issue
Block a user