* rule insertion
@ 2024-11-15 13:30 Thomas Köller
2024-11-15 13:55 ` Florian Westphal
2024-11-15 14:02 ` Pablo Neira Ayuso
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Köller @ 2024-11-15 13:30 UTC (permalink / raw)
To: netfilter
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: rule insertion
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
1 sibling, 0 replies; 3+ messages in thread
From: Florian Westphal @ 2024-11-15 13:55 UTC (permalink / raw)
To: Thomas Köller; +Cc: netfilter
Thomas Köller <thomas@koeller.dyndns.org> 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.
nft insert rule ip filter FOO meta iifname bar
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: rule insertion
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
1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2024-11-15 14:02 UTC (permalink / raw)
To: Thomas Köller; +Cc: netfilter
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 ...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-15 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox