All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Binarus <lists@binarus.de>
Cc: netfilter@vger.kernel.org
Subject: Re: Is the article "Secure use of iptables and connection tracking helpers" (by Pablo et al.) still relevant?
Date: Wed, 17 Jun 2026 12:39:48 +0200	[thread overview]
Message-ID: <ajJ5dDYrMrbkv3Ie@strlen.de> (raw)
In-Reply-To: <bb1f251d-fb7e-443f-8e04-8d3ee00bf7ab@binarus.de>

Binarus <lists@binarus.de> wrote:
> I've come across the following article (which has been co-authored by Pablo):
> 
> https://github.com/regit/secure-conntrack-helpers/blob/master/secure-conntrack-helpers.rst
> 
> All statements of this article make sense in my eyes. I have understood that it relates to iptables, not nftables, but it seems that the underlying reasoning and explanations are valid for nftables as well.
> 
> However, since the article is 14 years old (at least), I'd like to know whether it is still up to date and whether we should follow its recommendations.
> 
> For example, the nf_conntrack module in modern kernels (e.g., 6.12.90 on my Debian trixie system) obviously does not have the "nf_conntrack_helper" parameter the article mentions. Hence, setting it to 0 does not effect anything. Setting the "port" parameter to 0 seems to do the trick, though.

You don't have to set it to 0, the feature was removed, i.e. the
'Disable helper by default' section no longer applies.  All helpers are
off unless there are rules that explicitly activate them ('-j CT
--helper ftp' etc).

> In other words, I' like to know whether we should still prevent the automatic loading of the nf_conntrack_sip module, and how we can achieve that.

No.  There is no automatic helper assignement in the kernel anymore and
therefore no helper ever automatically snoops traffic even if the module
is loaded.

The port module arguments are dead-weight and will be removed soon.
They don't do anything these days.

  reply	other threads:[~2026-06-17 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-17 10:29 Is the article "Secure use of iptables and connection tracking helpers" (by Pablo et al.) still relevant? Binarus
2026-06-17 10:39 ` Florian Westphal [this message]
2026-06-17 10:40 ` Binarus

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=ajJ5dDYrMrbkv3Ie@strlen.de \
    --to=fw@strlen.de \
    --cc=lists@binarus.de \
    --cc=netfilter@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.