netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mixed IPv4+IPv6 sets
@ 2015-09-06 18:52 Wilmer van der Gaast
  2015-09-07 18:50 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Wilmer van der Gaast @ 2015-09-06 18:52 UTC (permalink / raw)
  To: netfilter-devel

Hello,

The "inet" family is a great idea for unifying IPv4 and IPv6 
firewalling, but I just ran into one thing I'm missing.

nft lets me define sets with both IPv4 and IPv6 addresses, but once I 
try using them things go wrong - I assume this means that the addresses 
aren't actually parsed until that point?

I can invoke the set from an ip match, and it will complain about IPv6 
addresses in the list being invalid. And vice versa, invoke the set from 
an "ip6" match and the IPv4 addresses will cause parse errors.

Would it be possible to either have an "inet" match rule, or tell nft to 
skip unknown address families so I could just invoke the set twice, once 
using "ip" and once using "ip6" match rule, without running into syntax 
errors?

I could of course just define two separate sets to get something similar 
to my alternative idea, and maybe I'll try that, but it gets kludgier 
that way. :-(


Kind regards,

Wilmer van der Gaast.
-- 
+-------- .''`.     - -- ---+  +        - -- --- ---- ----- ------+
| wilmer : :'  :  gaast.net |  | OSS Programmer   www.bitlbee.org |
| lintux `. `~'  debian.org |  | Full-time geek  wilmer.gaast.net |
+--- -- -  ` ---------------+  +------ ----- ---- --- -- -        +

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

end of thread, other threads:[~2015-09-09 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-06 18:52 Mixed IPv4+IPv6 sets Wilmer van der Gaast
2015-09-07 18:50 ` Pablo Neira Ayuso
2015-09-08  8:21   ` Arturo Borrero Gonzalez
2015-09-09 10:08     ` Wilmer van der Gaast
2015-09-09 10:07   ` Wilmer van der Gaast

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