public inbox for netfilter@vger.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Thomas Köller" <thomas@koeller.dyndns.org>
Cc: netfilter@vger.kernel.org
Subject: Re: rule insertion
Date: Fri, 15 Nov 2024 15:02:24 +0100	[thread overview]
Message-ID: <ZzdUcFksWgGK4DWb@calendula> (raw)
In-Reply-To: <74938b68-c482-4e54-a158-e3f379ba20c6@koeller.dyndns.org>

On Fri, Nov 15, 2024 at 02:30:52PM +0100, Thomas Köller wrote:
> When adding a rule to a chain, I can specify the handle of an existing rule.
> The new rule is then inserted after that one. So how do I insert a new rule
> at the very top of a chain, right before the first rule? I tried using the
> handle of the chain itself, but that didn't work.

Use:

nft insert rule ...

      parent reply	other threads:[~2024-11-15 14:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 13:30 rule insertion Thomas Köller
2024-11-15 13:55 ` Florian Westphal
2024-11-15 14:02 ` Pablo Neira Ayuso [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=ZzdUcFksWgGK4DWb@calendula \
    --to=pablo@netfilter.org \
    --cc=netfilter@vger.kernel.org \
    --cc=thomas@koeller.dyndns.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