All of lore.kernel.org
 help / color / mirror / Atom feed
* Overlapping IP networks no longer allowed?
@ 2018-02-14 17:02 Mantas Mikulėnas
  2018-02-14 18:22 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Mantas Mikulėnas @ 2018-02-14 17:02 UTC (permalink / raw)
  To: netfilter-devel

Hello,

As of nftables 0.8.1, it seems I can no longer write anonymous sets
which contain overlapping networks (CIDR masks).

For example, I want to write the following ruleset:

#!/usr/bin/nft -f
define users = { 10.0.0.0/8, 193.219.181.192/26 }
define admins = { 10.123.0.0/24, 31.220.42.129 }
define allowed = { $users, $admins }
table inet filter {
        chain foobar {
                ip saddr $allowed accept
        }
}

results in an error message:

    Error: interval overlaps with previous one

I noticed a few nftables.git commits related to disabling auto-merge
for interval sets... but mine don't have the 'interval' flag, and
there doesn't seem to be any way to specify 'auto-merge' for anonymous
sets, either.

-- 
Mantas Mikulėnas

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

end of thread, other threads:[~2018-02-15 13:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 17:02 Overlapping IP networks no longer allowed? Mantas Mikulėnas
2018-02-14 18:22 ` Pablo Neira Ayuso
2018-02-14 22:32   ` Florian Westphal
2018-02-15 13:29     ` Pablo Neira Ayuso
2018-02-15  8:15   ` Mantas Mikulėnas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.