Linux Firewall Security: iptables, nftables and firewalld Explained
Linux filters packets in the kernel with netfilter. iptables is the classic rule tool; nftables is its successor and the default framework on current Debian, Ubuntu, RHEL and Fedora. firewalld is a zone-based manager that writes nftables rules for you and is standard on RHEL and Fedora, while Ubuntu ships ufw.