public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH 1/3] optionsfw.cgi: Fix bug12981 - Add option to log or not log dropped hostile traffic
@ 2023-12-26 19:46 Adolf Belka
  2023-12-26 19:46 ` [PATCH 2/3] firewall: Fixes bug12981 - add if loop " Adolf Belka
  2023-12-26 19:46 ` [PATCH 3/3] en.pl: Fixes bug12981 - adds english language input for choice of drop hostile logging Adolf Belka
  0 siblings, 2 replies; 4+ messages in thread
From: Adolf Belka @ 2023-12-26 19:46 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1912 bytes --]

- Added option with drop hostile section to decide if the dropped traffic should be
   logged or not.

Fixes: bug12981
Tested-by: Adolf Belka <adolf.belka(a)ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka(a)ipfire.org>
---
 html/cgi-bin/optionsfw.cgi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi
index fbff67b2f..4b2b8ef91 100644
--- a/html/cgi-bin/optionsfw.cgi
+++ b/html/cgi-bin/optionsfw.cgi
@@ -94,6 +94,9 @@ if (!$settings{'DROPSPOOFEDMARTIAN'}) {
 if (!$settings{'DROPHOSTILE'}) {
 	$settings{'DROPHOSTILE'} = 'off';
 }
+if (!$settings{'LOGDROPHOSTILE'}) {
+	$settings{'LOGDROPHOSTILE'} = 'on';
+}
 if (!$settings{'LOGDROPCTINVALID'}) {
 	$settings{'LOGDROPCTINVALID'} = 'on';
 }
@@ -125,6 +128,9 @@ $checked{'DROPSPOOFEDMARTIAN'}{$settings{'DROPSPOOFEDMARTIAN'}} = "checked='chec
 $checked{'DROPHOSTILE'}{'off'} = '';
 $checked{'DROPHOSTILE'}{'on'} = '';
 $checked{'DROPHOSTILE'}{$settings{'DROPHOSTILE'}} = "checked='checked'";
+$checked{'LOGDROPHOSTILE'}{'off'} = '';
+$checked{'LOGDROPHOSTILE'}{'on'} = '';
+$checked{'LOGDROPHOSTILE'}{$settings{'LOGDROPHOSTILE'}} = "checked='checked'";
 $checked{'LOGDROPCTINVALID'}{'off'} = '';
 $checked{'LOGDROPCTINVALID'}{'on'} = '';
 $checked{'LOGDROPCTINVALID'}{$settings{'LOGDROPCTINVALID'}} = "checked='checked'";
@@ -293,6 +299,13 @@ END
 			<input type='radio' name='DROPHOSTILE' value='off' $checked{'DROPHOSTILE'}{'off'} /> $Lang::tr{'off'}
 		</td>
 	</tr>
+	<tr>
+		<td align='left' width='60%'>$Lang::tr{'log drop hostile'}</td>
+		<td align='left'>
+			$Lang::tr{'on'} <input type='radio' name='LOGDROPHOSTILE' value='on' $checked{'LOGDROPHOSTILE'}{'on'} />/
+			<input type='radio' name='LOGDROPHOSTILE' value='off' $checked{'LOGDROPHOSTILE'}{'off'} /> $Lang::tr{'off'}
+		</td>
+	</tr>
 </table>
 <br>
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <e2a87fdc-48b1-483b-ab58-8b85166c6817@ipfire.org>]

end of thread, other threads:[~2023-12-27 12:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-26 19:46 [PATCH 1/3] optionsfw.cgi: Fix bug12981 - Add option to log or not log dropped hostile traffic Adolf Belka
2023-12-26 19:46 ` [PATCH 2/3] firewall: Fixes bug12981 - add if loop " Adolf Belka
2023-12-26 19:46 ` [PATCH 3/3] en.pl: Fixes bug12981 - adds english language input for choice of drop hostile logging Adolf Belka
     [not found] <e2a87fdc-48b1-483b-ab58-8b85166c6817@ipfire.org>
2023-12-27 12:49 ` [PATCH 2/3] firewall: Fixes bug12981 - add if loop to log or not log dropped hostile traffic Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox