News for hackers. Stuff that matters.
Re:Douane: Linux personal firewall with per application rule... by grantseltzer on Sunday November 22, 2020 @10:26AM (#25178152)
I don't see a reason to implement anything like this without using bpf.
Re:Douane: Linux personal firewall with per application rule... by kortilla on Sunday November 22, 2020 @12:07PM (#25179013)
The same reason that all new C projects aren’t being written in rust.

There is a lot of expertise floating around in the ~30ish years of netfilter so that is a ton of momentum in terms of the personal expertise of more experienced devs as well as the blogs/tutorials available when you search for “network filtering Linux”.

The default of kubernetes is still huge iptables chains and the only realistic ebpf alternative is mainly driven by a currently unsustainable startup (Cilium). The maturity just isn’t there yet.

Re:Douane: Linux personal firewall with per application rule... by grantseltzer on Sunday November 22, 2020 @02:15PM (#25180143)
I believe Cilium (ebpf based) is now default in kubernetes.
Re:Douane: Linux personal firewall with per application rule... by pepemon on Sunday November 22, 2020 @03:46PM (#25180906)
Can you elaborate more on the source of your belief?
Re:Douane: Linux personal firewall with per application rule... by tuzakey on Sunday November 22, 2020 @10:50AM (#25178388)
Right!? That's the first thing I looked for in the project page. I'm really surprised it isn't using ebpf, but netfilter and a kernel module let them run back on 2.4 (but why?) I'm waiting for a bpf based solution to pop up as I think it will be superior in performance, ability, and maintainability.
Re:Douane: Linux personal firewall with per application rule... by tifadg1 on Sunday November 22, 2020 @12:12PM (#25179056)
BPF is so cool, yet so inaccessible so most tinkerers. If it had Python bindings I'd start using it today, but as is - it's esoteric.
Re:Douane: Linux personal firewall with per application rule... by grantseltzer on Sunday November 22, 2020 @02:13PM (#25180116)
Well clear your schedule, it's most commonly used interface is through it's python bindings (a library called BCC):

https://github.com/iovisor/bcc

Re:Douane: Linux personal firewall with per application rule... by ausjke on Sunday November 22, 2020 @01:10PM (#25179533)
if you have a huge size of iptables list yes bpf is important, bpf is more for performance reasons otherwise iptables suits the need just fine, in this case of personal firewall, iptables shall be good(and simple) enough