by 2bluesc · 6y ago · 0 comments
A 2017(!) test by RedHat[0] shows that nftables scales much better with more complex rules then iptables. The original post shows the same, again surprised someone doing this much work on testing hadn't mentioned nftables.
Modern firewall utilities such as firewalld (for better or worse if it scratches your itch) have defaulted to nftables[1] when possible on platforms like Arch and probably Ubuntu at this point.
Ultimately iptables is discouraged by Debian[2] and the netfilter project[3].
[0] https://developers.redhat.com/blog/2017/04/11/benchmarking-n...
[1] https://firewalld.org/2018/07/nftables-backend
[2] https://wiki.debian.org/nftables#Should_I_build_a_firewall_u...
[3] https://wiki.nftables.org/wiki-nftables/index.php/Why_nftabl...
$ nft list
Error: syntax error, unexpected newline
list
^
$ nft show
Error: syntax error, unexpected newline, expecting string
show
^
$ nft help
Error: syntax error, unexpected newline, expecting string
help
^The amount of paid blogverts pushing of nftables by Red Hat is pretty obvious.
nftables might be good some day, but it's not there yet.
Lots of code is faster when it's feature-deficient, and gets slower once it has covered the special cases.