News for hackers. Stuff that matters.
Re:Iptables Tutorial 1.2.2 by gtirloni on Friday October 20, 2017 @09:23AM (#15515522)
Re:Iptables Tutorial 1.2.2 by emddudley on Friday October 20, 2017 @09:44AM (#15515679)
How mature is nftables? Do people regularly use it in production? I see that it was added to the kernel in 2014.
Re:Iptables Tutorial 1.2.2 by ahartmetz on Friday October 20, 2017 @10:25AM (#15516011)
nftables probably works but usability is god-awful. AFAIK it was created by the same people who created tc, which is so unusable that Linux might as well not support traffic shaping. If you don't believe me, please go ahead and try using it.
Re:Iptables Tutorial 1.2.2 by tsuraan on Friday October 20, 2017 @11:52AM (#15516724)
That's really weird. I haven't used nftables, but I'm planning to do so the next time I upgrade my router. https://stosb.com/blog/explaining-my-configs-nftables/ makes it look nearly as pretty as pf. Is there something under the hood that's awful?
Re:Iptables Tutorial 1.2.2 by DrPhish on Friday October 20, 2017 @01:02PM (#15517333)
That actually doesn't look too bad.

I do wish they'd just adopted the PF syntax tho. It really is the gold standard for stateful firewall definition

Was anyone involved in the discussions around the creation of nftables that can comment on whether this was considered?

Re:Iptables Tutorial 1.2.2 by ahartmetz on Friday October 20, 2017 @01:32PM (#15517601)
Let's see: Getting started

https://wiki.nftables.org/wiki-nftables/index.php/Main_Page#...

None of these is anything like a tutorial or introduction. "Quick reference, nftables in 10 minutes" claims to be a ten-minute guide but it's actually just an information dump without any guidance.

Some highlights: "matches are clues used to access to certain packet information and create filters according to them." My translation: "Matches are conditions for rules to apply. They match certain properties (hyperlink) of packets."

"position is an internal number that is used to insert a rule before a certain handle." My translation: "position is an index into the list of rules. It can be used to insert rules at a given position in the list."

I don't know if my translations are correct due to the absurdly bad originals. It is like the authors explain verbs without explaining the nouns they act on. For the nouns, there are mostly just tables of them without any explanation at all. In other places, the few most important nouns are explained.

This alien logic is not only in the documentation, it is also in the syntax. Nobody I know thinks like that.

Re:Iptables Tutorial 1.2.2 by alyandon on Friday October 20, 2017 @02:50PM (#15518255)
Wow, that NAT syntax is just plain awful as well. :-/

For reference: https://wiki.nftables.org/wiki-nftables/index.php/Multiple_N...

Re:Iptables Tutorial 1.2.2 by atomt on Saturday October 21, 2017 @12:06AM (#15520597)
That example is made needlessly complicated to compress down to a one-liner and show off maps.

It does look nicer when properly formatted as part of a rule file, however.

The docs needs some work.

Re:Iptables Tutorial 1.2.2 by alyandon on Saturday October 21, 2017 @12:01PM (#15522270)
Yes, I see that now and yes those docs definitely need work.
Re:Iptables Tutorial 1.2.2 by betaby on Friday October 20, 2017 @11:31AM (#15516531)
It's like criticizing libpng library, tc is necessary complex.
Re:Iptables Tutorial 1.2.2 by ahartmetz on Friday October 20, 2017 @11:40AM (#15516607)
This is more like hand-decoding Huffman tables in an especially convoluted representation when using Gimp to crop a PNG image.
Re:Iptables Tutorial 1.2.2 by craftyguy on Friday October 20, 2017 @11:12AM (#15516399)
Oh god, not tc. Anything but that.
Re:Iptables Tutorial 1.2.2 by atomt on Saturday October 21, 2017 @12:27AM (#15520654)
It was declared ready for "experimentation" about a year ago or so, so not very mature. If you are on current upstream versions it is not too bad, I'm using it here and there on not very important things.

It is a bit hit and miss with kernel/nftables versions on release distributions. I probably would not use it with any kernels older than 4.10 for example. So any current LTS kernel is out.

Re:Iptables Tutorial 1.2.2 by brunoqc on Friday October 20, 2017 @10:21AM (#15515982)
I wanted to use nftables but I think Docker doesn't support it.
Re:Iptables Tutorial 1.2.2 by dsr_ on Friday October 20, 2017 @10:45AM (#15516167)
Given that the underlying kernel implementation will be the same, it seems likely that you can fix that easily.

https://wiki.nftables.org/wiki-nftables/index.php/Main_diffe...

Re:Iptables Tutorial 1.2.2 by jug5 on Friday October 20, 2017 @09:56AM (#15515765)
Surprising to see iptables articles still being posted. Guess with the article being from a decade ago it makes sense, but here?