Convert firewall rules to nftables#66
Conversation
|
There is quite some room for improvements (e.g., a general rule for ct state at the top): Then the rest of the ingress rules could be much tighter (example). Not sure whether to do the cleanup here or in a follow-up. What are your thoughts @maederm ? |
|
I like the file based approach.
What other kinds of cleanup do you have in mind? @znerol We could still have individual counters like this: (I seriously hope that there is a more elegant solution. Or we just have some entries multiple times) |
Yes.
I do not know how much we need the port counters. Munin doesn't seem to query them. And we still have stats from |
|
Found a small issue with the nginx acme challenge proxy fragment while debugging the ruleset: #67 |
|
I think I'm happy with the structure now. I'd like to tighten the icmp rule. I believe we do no need to allow more than echo request, neighbor discovery and router advertisement. |
|
Regarding ICMPv6, I used this in the past: However I'm good with just using (Based on https://serverfault.com/a/801137) |
A largely 1:1 conversion from
iptablestonftables.Munin uses the
iptablesbinary for traffic accounting by ip address. Those rules need to be named exactly as how theiptablesbinary expects them (e.g.,table ip filter chain INPUT).