All of lore.kernel.org
 help / color / mirror / Atom feed
* Nftables / ipset / multiple tables
@ 2016-12-13  4:39 Mark Morgan
  2016-12-13  7:31 ` Leon Merten Lohse
  2016-12-13 19:39 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Morgan @ 2016-12-13  4:39 UTC (permalink / raw)
  To: netfilter

I am trying to convert from iptables to nftables. So far I really like
the way nftables is structured, it will allow me to cleanup my
iptables settings and I expect it to be much more manageable over the
long term.

However, I'm encountering an issue trying to translate an
iptables/ipset feature into nftables in a sane way.

Today I use ipsets, which I can maintain separate from my iptable
firewall rules. This is a nice convenience - I can add blacklists,
manage CIDR block sets, etc, all in an efficient package (ipset),
without having to restart my entire firewall rule set.

As best I can tell, nftables does not support external ipset,
presumably because it has its own internal version. It would be great
if it could support external ipset, then I could have the best of both
worlds.

For now, I converted some of my ipsets to nftables format. The problem
I'm having is that while there is an "include" directive which allows
me to separate out my ipsets into manageable separate files, there is
no mechanism I can see to actually reference these sets. Example:

# nftables.conf
@include "nftables.foobar"
table inet filter { /* stuff in here */ }

# nftables.foobar
table ip foobar { set country_block { /*blah blah*/ } }

Now I want to reference "set country_block" from my inet filters. I
can't find any documentation on how to reference a set in another
table. The "@country_block" reference seems to be scoped to only the
current table, with no way I can find to have it reference a set in
another table. I really do not want to store all of my ip sets in a
single large file/table. That would be worse than what I have today
with iptables.

Am I missing an feature that perhaps isn't documented that would make
this all work, or is there a forth coming feature that might make this
possible to do in the future?

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

end of thread, other threads:[~2016-12-15  4:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-13  4:39 Nftables / ipset / multiple tables Mark Morgan
2016-12-13  7:31 ` Leon Merten Lohse
2016-12-13 19:39 ` Pablo Neira Ayuso
2016-12-14  4:06   ` Mark Morgan
2016-12-14 22:15     ` Pablo Neira Ayuso
2016-12-15  4:22       ` Mark Morgan

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.