From patchwork Thu Apr 18 21:11:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 7739 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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4VL9T24dt1z3wyD for ; Thu, 18 Apr 2024 21:12:06 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4VL9Sy1xBGz3vZ; Thu, 18 Apr 2024 21:12:02 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4VL9Sx27RFz32r4; Thu, 18 Apr 2024 21:12:01 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4VL9Sm3dd5z30CT for ; Thu, 18 Apr 2024 21:11:52 +0000 (UTC) Received: from michael.haj.ipfire.org (michael.haj.ipfire.org [172.28.1.242]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "michael.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4VL9Sm0bj4z2rc; Thu, 18 Apr 2024 21:11:52 +0000 (UTC) Received: by michael.haj.ipfire.org (Postfix, from userid 0) id 4VL9Sl47tKzTkg9; Thu, 18 Apr 2024 21:11:51 +0000 (UTC) From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 6/6] sysctl: Conntrack: Disable picking up loose TCP connections Date: Thu, 18 Apr 2024 21:11:44 +0000 Message-Id: <20240418211144.3318938-6-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240418211144.3318938-1-michael.tremer@ipfire.org> References: <20240418211144.3318938-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: ZBGJOVPBQZGD23XMPVPUVQNQD5CMJ5Z4 X-Message-ID-Hash: ZBGJOVPBQZGD23XMPVPUVQNQD5CMJ5Z4 X-MailFrom: root@michael.haj.ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Michael Tremer X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Michael Tremer --- config/etc/sysctl.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/etc/sysctl.conf b/config/etc/sysctl.conf index 31a220e38..e35ee0dc4 100644 --- a/config/etc/sysctl.conf +++ b/config/etc/sysctl.conf @@ -35,6 +35,9 @@ net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.all.accept_redirects = 0 net.ipv6.conf.default.accept_redirects = 0 +# Do not try to pick up existing TCP connections in conntrack +net.netfilter.nf_conntrack_tcp_loose = 0 + # Enable netfilter accounting net.netfilter.nf_conntrack_acct = 1