Skip to contentSkip to conversation

Merging iptables-nftables into iptables

DISCUSSION Pablo Neira Ayuso 5 participants 8 messages Dec 4, 2013 – Dec 31, 2013 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

Hi,

The iptables-nftables tree [1] currently stores the iptables over nftables compatibility support. This allows you to run iptables commands using the nftables kernel infrastructure.

JFYI, my plan is to merge the iptables-nftables into iptables at some point of this week given that it contains stuff that is scheduled for 3.13. After that merge, the iptables-nftables will be disabled.

[1] http://git.netfilter.org/iptables-nftables/

#1 lore raw
Quoted 11 lines · Pablo Neira Ayuso

Hi,

The iptables-nftables tree [1] currently stores the iptables over nftables compatibility support. This allows you to run iptables commands using the nftables kernel infrastructure.

JFYI, my plan is to merge the iptables-nftables into iptables at some point of this week given that it contains stuff that is scheduled for 3.13. After that merge, the iptables-nftables will be disabled.

[1] http://git.netfilter.org/iptables-nftables/

Could you give some hints about releases of userspace stuff? (libnftables, nft, new iptables...)

Is 3.13 a deadline for releases?

I'm new to these situations :-)

Signature · 5 lines
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author maintainer
#2 lore raw
Quoted 11 lines · Arturo Borrero Gonzalez
Quoted 10 lines · Pablo Neira Ayuso

Hi,

The iptables-nftables tree [1] currently stores the iptables over nftables compatibility support. This allows you to run iptables commands using the nftables kernel infrastructure.

JFYI, my plan is to merge the iptables-nftables into iptables at some point of this week given that it contains stuff that is scheduled for 3.13. After that merge, the iptables-nftables will be disabled.

Quoted 6 lines
Quoted 1 line

[1] http://git.netfilter.org/iptables-nftables/

Could you give some hints about releases of userspace stuff? (libnftables, nft, new iptables...)

Is 3.13 a deadline for releases?

The initial release of the userspace libraries and tools will happen by when the Linux kernel 3.13 is released, that should happen by the beginning of 2014.

The nftables compatibility layer (the so-called iptables-nftables) will be included in regular iptables releases, since it will be part of that package.

#3 lore raw

Pablo Neira Ayuso schreef op 5/12/2013 9:24:

Quoted 16 lines · Arturo Borrero Gonzalez
Quoted 15 lines · Pablo Neira Ayuso
Quoted 11 lines

Hi,

The iptables-nftables tree [1] currently stores the iptables over nftables compatibility support. This allows you to run iptables commands using the nftables kernel infrastructure.

JFYI, my plan is to merge the iptables-nftables into iptables at some point of this week given that it contains stuff that is scheduled for 3.13. After that merge, the iptables-nftables will be disabled.

[1] http://git.netfilter.org/iptables-nftables/

Could you give some hints about releases of userspace stuff? (libnftables, nft, new iptables...)

Quoted 8 lines
Quoted 1 line

Is 3.13 a deadline for releases?

The initial release of the userspace libraries and tools will happen by when the Linux kernel 3.13 is released, that should happen by the beginning of 2014.

The nftables compatibility layer (the so-called iptables-nftables) will be included in regular iptables releases, since it will be part of that package.

Nice to see this progress. What are the plans/obstacles (if any?) for migrating ebtables/arptables to nftables?

cheers,
Bart

author maintainer
#4 lore raw

Hi Bart,

Quoted 22 lines · Bart De Schuymer

Pablo Neira Ayuso schreef op 5/12/2013 9:24:

Quoted 21 lines · Arturo Borrero Gonzalez
Quoted 11 lines · Pablo Neira Ayuso
Quoted 10 lines

Hi,

The iptables-nftables tree [1] currently stores the iptables over nftables compatibility support. This allows you to run iptables commands using the nftables kernel infrastructure.

JFYI, my plan is to merge the iptables-nftables into iptables at some point of this week given that it contains stuff that is scheduled for 3.13. After that merge, the iptables-nftables will be disabled.

Quoted 5 lines
Quoted 1 line

[1] http://git.netfilter.org/iptables-nftables/

Could you give some hints about releases of userspace stuff? (libnftables, nft, new iptables...)

Is 3.13 a deadline for releases?

The initial release of the userspace libraries and tools will happen by when the Linux kernel 3.13 is released, that should happen by the beginning of 2014.

Quoted 6 lines
Quoted 3 lines

The nftables compatibility layer (the so-called iptables-nftables) will be included in regular iptables releases, since it will be part of that package.

Nice to see this progress. What are the plans/obstacles (if any?) for migrating ebtables/arptables to nftables?

We already have a working compatibility layer for iptables, ip6tables and arptables.

Regarding arptables, there's still one limitation that we have to resolve as it only allows EUI-64 addresses (which should be the most common case), the arptables kernel code seems to support variable length hardware addresses up to 128 bytes long IIRC. Tomasz has been working on that for a while.

Regarding ebtables, Giuseppe Longo have several patches to bootstrap the ebtables compatibility, so it's work in progress.

In any case, we will still need the native {arp,eb,ip,ip6}tables tools for a while, those will co-exist with the compatibility tools. At some point in the future, distributors may decide to switch to the compatibility tools transparently, the idea is that users won't notice any change from the syntax point of view and they won't be forced to drop their scripts.

#5 lore raw

Hi Pablo and Bart,

Quoted 5 lines

Regarding arptables, there's still one limitation that we have to resolve as it only allows EUI-64 addresses (which should be the most common case), the arptables kernel code seems to support variable length hardware addresses up to 128 bytes long IIRC. Tomasz has been working on that for a while.

Actually I have a question about that.
On INPUT or OUTPUT I guess we need to handle input device and output device, respectively.

What about FORWARD? Still input device? Afaik the output device is not know yet at that point, is it?

Thanks,

Tomasz

author maintainer
#6 lore raw
In reply to Pablo Neira Ayuso
Quoted 9 lines · Pablo Neira Ayuso

Hi,

The iptables-nftables tree [1] currently stores the iptables over nftables compatibility support. This allows you to run iptables commands using the nftables kernel infrastructure.

JFYI, my plan is to merge the iptables-nftables into iptables at some point of this week given that it contains stuff that is scheduled for 3.13. After that merge, the iptables-nftables will be disabled.

With some delay, I found some time to rebase iptables-nftables upon the current head and to push into the iptables.git's nft-compat branch [1]. I plan to give it another review tomorrow to see if I left something behind in the rebase, if no troubles I'll merge it into master.

[1] http://git.netfilter.org/iptables/log/?h=nft-compat

#7 lore raw
Quoted 4 lines · Pablo Neira Ayuso

I plan to give it another review tomorrow to see if I left something behind in the rebase, if no troubles I'll merge it into master.

[1] http://git.netfilter.org/iptables/log/?h=nft-compat

You left:

+PKG_CHECK_MODULES([libnfables], [libnftables >= 1.0],

and this seems to have mixed nft and xt:

+AC_ARG_ENABLE([nftables],
+ AS_HELP_STRING([--disable-xtables], [Do not build xtables]),

+AM_PROG_LEX

=> AC_PROG_LEX

+if test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33"; then
+ AC_MSG_RESULT([$flex_version. OK])
+else

+       AC_MSG_WARN([flex version $flex_version found.
+       Version 2.5.33 or greater is required. You may experience problems
+       while compilating the conntrack-tools. Please, consider to upgrade
+       flex.])

+fi

conntrack-tools?!