How do ufw, firewalld, nftables and iptables relate?
BeginnerProductionFirewalls, MAC & Compliance
Answer
The kernel packet filter is netfilter. iptables (legacy) and nftables are the low-level rule interfaces; on modern distros iptables is often iptables-nft, a compatibility layer over nftables. ufw (Ubuntu) and firewalld (RHEL) are friendlier front-ends that generate nftables/iptables rules. Use one front-end per host; mixing them leads to rules overwriting each other.
More on Firewalls, MAC & Compliance
Configure ufw for a web server with SSH only from the office.BeginnerExplain firewalld zones and runtime vs permanent configuration.IntermediateWrite a minimal nftables ruleset for a server.AdvancedWhy are nftables preferred over iptables at scale?AdvancedHow do you avoid locking yourself out when changing remote firewall rules?IntermediateHost firewall vs cloud security groups: do you need both?Intermediate