@JaredBusch said in UFW or IPTABLES:
@Pete-S said in UFW or IPTABLES:
So I think the current recommendation is to either stick to ufw or firewall-cmd or just use nft directly.
I try to. This was the first time I've had a need to go outside the box of ufw or firewall-cmd to use direct iptables in years.
Yes, it's only when you need more control.
I've looked into this before and it wasn't not super obvious how all these tools interact. But nowadays ufw and firewalld are services to manage nftables. nftables itself manages the netfilter packet filtering mechanism in the kernel.
The ability to use iptables are just for legacy reasons and they're converted to nftables rules behind the scenes.
Since ufw (canonical project) and firewalld (redhat project) where initiated when iptables was used, I'm not sure their existence is warranted in the same way. At least not by sysadmins.
I'm looking at setting firewall rules automatically in a project and it seems like using nftables directly makes the most sense. That said I have to learn nftables first 🙂