public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
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	[thread overview]
Message-ID: <20240418211144.3318938-6-michael.tremer@ipfire.org> (raw)
In-Reply-To: <20240418211144.3318938-1-michael.tremer@ipfire.org>

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

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 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
 
-- 
2.39.2


      parent reply	other threads:[~2024-04-18 21:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18 21:11 [PATCH 1/6] firewall: Split CONNTRACK chain Michael Tremer
2024-04-18 21:11 ` [PATCH 2/6] firewall: Don't filter output INVALID packets Michael Tremer
2024-04-18 21:11 ` [PATCH 3/6] firewall: Enable SYNPROXY for untracked packets Michael Tremer
2024-04-18 21:11 ` [PATCH 4/6] firewall.cgi: Add a checkbox to enable SYN flood protection Michael Tremer
2024-04-18 21:11 ` [PATCH 5/6] firewall: Implement generating SYNPROXY rules Michael Tremer
2024-04-18 21:11 ` Michael Tremer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240418211144.3318938-6-michael.tremer@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox