From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH 06/11] optionsfw.cgi: Make logging of spoofed/martians packets and the DROP_HOSTILE filter configurable Date: Sat, 18 Dec 2021 14:49:01 +0100 Message-ID: <78b1b9c8-cdab-7dc9-fd9f-4593d69696ea@ipfire.org> In-Reply-To: <34588df1-b2b7-9dfc-1fa4-54a2476d1d7f@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8439236910622075328==" List-Id: --===============8439236910622075328== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Peter M=C3=BCller --- html/cgi-bin/optionsfw.cgi | 96 +++++++++++++++++++++++++++++++------- 1 file changed, 80 insertions(+), 16 deletions(-) diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi index 1ecf4f180..481d5bdbd 100644 --- a/html/cgi-bin/optionsfw.cgi +++ b/html/cgi-bin/optionsfw.cgi @@ -2,7 +2,7 @@ ############################################################################= ### # = # # IPFire.org - A linux based firewall = # -# Copyright (C) 2014-2020 IPFire Team = # +# Copyright (C) 2014-2021 IPFire Team = # # = # # This program is free software: you can redistribute it and/or modify = # # it under the terms of the GNU General Public License as published by = # @@ -110,6 +110,12 @@ $checked{'DROPWIRELESSINPUT'}{$settings{'DROPWIRELESSINP= UT'}} =3D "checked=3D'checke $checked{'DROPWIRELESSFORWARD'}{'off'} =3D ''; $checked{'DROPWIRELESSFORWARD'}{'on'} =3D ''; $checked{'DROPWIRELESSFORWARD'}{$settings{'DROPWIRELESSFORWARD'}} =3D "check= ed=3D'checked'"; +$checked{'DROPSPOOFEDMARTIAN'}{'off'} =3D ''; +$checked{'DROPSPOOFEDMARTIAN'}{'on'} =3D ''; +$checked{'DROPSPOOFEDMARTIAN'}{$settings{'DROPSPOOFEDMARTIAN'}} =3D "checked= =3D'checked'"; +$checked{'DROPHOSTILE'}{'off'} =3D ''; +$checked{'DROPHOSTILE'}{'on'} =3D ''; +$checked{'DROPHOSTILE'}{$settings{'DROPHOSTILE'}} =3D "checked=3D'checked'"; $checked{'DROPPROXY'}{'off'} =3D ''; $checked{'DROPPROXY'}{'on'} =3D ''; $checked{'DROPPROXY'}{$settings{'DROPPROXY'}} =3D "checked=3D'checked'"; @@ -195,24 +201,82 @@ END
=20 - - - - - - -$Lang::tr{'on'} / - $Lang::tr{'off'} -<= td align=3D'left'>$Lang::tr{'on'} / - $Lang::tr{'off'} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$Lang:= :tr{'fw logging'}
$Lang::tr{'drop newnotsyn'}$Lang::tr{'on'} / - $Lang::tr{'off'}
$Lang::tr{'drop input'}$Lang::tr{'on'} / - $Lang::tr{'off'}
$Lang::tr{'drop forward'}$Lang::tr{'on'} / - $Lang::tr{'off'}
$Lang::tr{'drop outgoing'}$Lang::tr{'on'} / - $Lang::tr{'off'}
$Lang::tr{'drop portscan'}$Lang::tr{'on'} / - $Lang::tr{'off'}
$Lang::tr{'drop wirelessinput'}
$Lang::tr{'drop wirelessforward'}
$Lang::tr{'fw logging'}
$Lang::tr{'drop newnotsyn'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
$Lang::tr{'drop input'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
$Lang::tr{'drop forward'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
$Lang::tr{'drop outgoing'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
$Lang::tr{'drop portscan'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
$Lang::tr{'drop wirelessinput'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
$Lang::tr{'drop wirelessforward'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
$Lang::tr{'drop spoofed martians'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +

=20 + + + + + + + + +
$Lang::tr{'fw red'}
$Lang::tr{'drop hostile'} + $Lang::tr{'on'} / + $Lang::tr{'off'} +
+
+
$Lang:= :tr{'fw blue'}
$Lang::tr{'drop proxy'}$Lang::tr{'on'} / --=20 2.26.2 --===============8439236910622075328==--