From patchwork Mon Jun 29 14:53:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3231 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) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 49wVqG20Zvz3x5V for ; Mon, 29 Jun 2020 14:53:30 +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 "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 49wVqD2qqlz1gS; Mon, 29 Jun 2020 14:53:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 49wVqD0YMGz2ydT; Mon, 29 Jun 2020 14:53:28 +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) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 49wVqC0GLCz2xB9 for ; Mon, 29 Jun 2020 14:53:27 +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) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 49wVq94DrqzJ1; Mon, 29 Jun 2020 14:53:25 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1593442405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YYOMtMaUynNCkYOOkBPslLnbzCdzGdKMlmygyBljjNs=; b=31UIplRS6c4BbhGIxSRz0KTcq/3GtMT56Wm6V2YQuf0UqV1xAB1R5kbyW5WooOKvsL2UBa iUCdBQm3KVI22QBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1593442405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YYOMtMaUynNCkYOOkBPslLnbzCdzGdKMlmygyBljjNs=; b=cZdGy12zg++qyZ9M4pKiMLUKQNDbKhykOl3VC7kvqgEyj58a7KKyDzC3GYfOYfJ6CFQ+pR 1ojO1qwNqmzevbCoTGMi6YjPvcLlDicsjNnz8EFRSHdxkDe5ZkAr/p17XsOO8hsyLq+tkJ Uoixo5Z1ow5iDH5J4Z+D5DhIwEa2ll1GC7dFD1XvO/LLgMFw0Vf1GCz33T+r3pUYeMiN2c nwuCKqQhqAXUackgeX+ktvR74KfSMRbxmXg7koKRE330qGaxW+lDyoSSq47B23h9ZS83pS +iqIfC378S1Ax7qGQmRFInX+zCcHwDM8N7ApkOVuZ0F4LA+zvMozn7rcbJPNGQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/2] firewall: Configure TRACE target to log to syslog Date: Mon, 29 Jun 2020 14:53:17 +0000 Message-Id: <20200629145318.7339-1-michael.tremer@ipfire.org> MIME-Version: 1.0 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: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- src/initscripts/system/firewall | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/initscripts/system/firewall b/src/initscripts/system/firewall index b0890c717..ab3a0bbf9 100644 --- a/src/initscripts/system/firewall +++ b/src/initscripts/system/firewall @@ -32,6 +32,10 @@ iptables_init() { iptables -P FORWARD DROP iptables -P OUTPUT ACCEPT + # Enable TRACE logging to syslog + modprobe nf_log_ipv4 + sysctl -q -w net.netfilter.nf_log.2=nf_log_ipv4 + # Empty LOG_DROP and LOG_REJECT chains iptables -N LOG_DROP iptables -A LOG_DROP -m limit --limit 10/second -j LOG