Interview Prep/Linux/Firewalls, MAC & Compliance

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.

All Linux questions Roadmap: Linux

More on Firewalls, MAC & Compliance