From: "William N." <netfilter@riseup.net>
To: netfilter@vger.kernel.org
Subject: Re: How to have a dynamic ingress device(s) list?
Date: Wed, 24 Apr 2024 19:20:33 -0000 [thread overview]
Message-ID: <20240424192033.5f05ef18@localhost> (raw)
In-Reply-To: <3b215f04-cf5e-49d3-9166-3806b3e53471@app.fastmail.com>
On Wed, 24 Apr 2024 19:49:28 +0100 Kerin Millar wrote:
> Rather, "define nics".
Yes, sorry.
> You mentioned the use of bash, which is capable of serving as a generator.
Thanks, I know. The thing is that nics can be added/removed at any point in time, not just at startup, which makes it more complicated.
> It does not.
>
> # nft 'define nics = { "enp1s0" }; table netdev t { chain c { type filter hook ingress devices = $nics priority -500; }; }'
This gives segfault here.
> Perhaps you need to upgrade nft.
Here:
# nft -V
nftables v1.0.6 (Lester Gooch #5)
cli: editline
json: yes
minigmp: no
libxtables: yes
On Debian 12 stable.
> Can you provide a minimal ruleset that reproduces the segfault?
#!/usr/sbin/nft -f
flush ruleset
define nics = { "eth0" }
table netdev filter
delete table netdev filter
table netdev filter {
chain ingress_internal {
type filter hook ingress devices = $nics priority -500
}
}
next prev parent reply other threads:[~2024-04-24 19:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 18:03 How to have a dynamic ingress device(s) list? William N.
2024-04-24 18:49 ` Kerin Millar
2024-04-24 19:20 ` William N. [this message]
2024-04-24 23:25 ` Kerin Millar
2024-04-25 14:12 ` William N.
2024-04-25 14:22 ` Kerin Millar
2024-04-25 15:30 ` William N.
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=20240424192033.5f05ef18@localhost \
--to=netfilter@riseup.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).