netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug: nft -n still shows "resolved" values for iif and oif
@ 2025-09-24 21:48 Christoph Anton Mitterer
  2025-09-25 12:36 ` Fernando Fernandez Mancera
  2025-09-25 14:42 ` Florian Westphal
  0 siblings, 2 replies; 9+ messages in thread
From: Christoph Anton Mitterer @ 2025-09-24 21:48 UTC (permalink / raw)
  To: netfilter-devel

Hey.

E.g.:
# nft list ruleset
table inet filter {
	chain input {
		type filter hook input priority filter; policy drop;
		ct state { established, related } accept
		iif "eth0" accept
	}
}
#  nft -n list ruleset
table inet filter {
	chain input {
		type filter hook input priority 0; policy drop;
		ct state { 0x2, 0x4 } accept
		iif "eth0" accept
	}
}


IMO especially for iif/oif, which hardcode the iface ID rather than
name, it would IMO be rather important to show the real value (that is
the ID) and not the resolved one... so that users aren't tricked into
some false sense (when they should actually use [io]ifname.

Maybe one could however always resolv it for lo, if that is truly
always ID 1, as I've been told.


Thanks,
Chris.


[0] https://lore.kernel.org/netfilter/aNPhP63SyX2ofE92@strlen.de/T/#m15841db7bf5bb588483fdd3576d70af7a71f5555

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-26 10:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-24 21:48 bug: nft -n still shows "resolved" values for iif and oif Christoph Anton Mitterer
2025-09-25 12:36 ` Fernando Fernandez Mancera
2025-09-25 14:07   ` Pablo Neira Ayuso
2025-09-26 10:27     ` Fernando Fernandez Mancera
2025-09-25 15:48   ` Christoph Anton Mitterer
2025-09-25 14:42 ` Florian Westphal
2025-09-25 15:53   ` Christoph Anton Mitterer
2025-09-25 16:45     ` Florian Westphal
2025-09-25 20:44       ` Christoph Anton Mitterer

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).