From patchwork Sat Dec 18 13:49:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 4929 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4JGRz50pRyz3wtM for ; Sat, 18 Dec 2021 13:49:05 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4JGRz45mCyz4Wv; Sat, 18 Dec 2021 13:49:04 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4JGRz45GCNz2ydN; Sat, 18 Dec 2021 13:49:04 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4JGRz35jBxz2xXd for ; Sat, 18 Dec 2021 13:49:03 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4JGRz25wlbz4Wv for ; Sat, 18 Dec 2021 13:49:02 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1639835343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KrKPoOvmTGLsaLuNN7IfKu8vOhfo9XZecbLeylU6Q8M=; b=PdX1rK2Np/qdIndUfd1cUKptFfZj4IMlKzTp+nbpPZA179IZK/iMNa2ycQ/FB2dSzi3kuQ AwQE2Scg43x64OAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1639835343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KrKPoOvmTGLsaLuNN7IfKu8vOhfo9XZecbLeylU6Q8M=; b=HKPxLo+fUyySgOorOOGDMvjwe9FwTTox4YfYVWVv/4UtI6PJE6F2IJ8Lga0joowJWcR7GP XgX0UKzBSkfoSLvxJrEvxPPSSvaYnj60z288fWrrOUfcRPYpr+ZOuccdbPuyfdsRWNc+oA /zQ8FL5EbE5OSu2HTwswCkGQFRZ1SKRpvqLl5flxb5TNXkshnM+JDQ58oFwgEvNvgfzW8P C2nMsroD4LMnGNoIjKbr96tmJgMacTc4CY1906yTQsjW/4z+bBMwpvYOVV3xOD4B8GSFNM +t5zQdcrUaNV8kM2t/J/s8riJxdrqOtR8zu+RBoHG3IHnOv6xPDZCt+vW9k9qA== Subject: [PATCH 06/11] optionsfw.cgi: Make logging of spoofed/martians packets and the DROP_HOSTILE filter configurable To: development@lists.ipfire.org References: <34588df1-b2b7-9dfc-1fa4-54a2476d1d7f@ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= Message-ID: <78b1b9c8-cdab-7dc9-fd9f-4593d69696ea@ipfire.org> Date: Sat, 18 Dec 2021 14:49:01 +0100 MIME-Version: 1.0 In-Reply-To: <34588df1-b2b7-9dfc-1fa4-54a2476d1d7f@ipfire.org> Content-Language: en-US X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Peter Müller --- 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{'DROPWIRELESSINPUT'}} = "checked='checke $checked{'DROPWIRELESSFORWARD'}{'off'} = ''; $checked{'DROPWIRELESSFORWARD'}{'on'} = ''; $checked{'DROPWIRELESSFORWARD'}{$settings{'DROPWIRELESSFORWARD'}} = "checked='checked'"; +$checked{'DROPSPOOFEDMARTIAN'}{'off'} = ''; +$checked{'DROPSPOOFEDMARTIAN'}{'on'} = ''; +$checked{'DROPSPOOFEDMARTIAN'}{$settings{'DROPSPOOFEDMARTIAN'}} = "checked='checked'"; +$checked{'DROPHOSTILE'}{'off'} = ''; +$checked{'DROPHOSTILE'}{'on'} = ''; +$checked{'DROPHOSTILE'}{$settings{'DROPHOSTILE'}} = "checked='checked'"; $checked{'DROPPROXY'}{'off'} = ''; $checked{'DROPPROXY'}{'on'} = ''; $checked{'DROPPROXY'}{$settings{'DROPPROXY'}} = "checked='checked'"; @@ -195,24 +201,82 @@ END
- - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$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{'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'} +

+ + + + + + + + +
$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'} /