Skip to content

Instantly share code, notes, and snippets.

@sempernow
sempernow / firewall-cmd
Last active May 10, 2025 14:10
All things Linux (esp. RHEL 8+) firewalld and its nemesis, NetworkManager (nmcli). Some nftables and iptables too.
exit
# FIREWALL : firewalld, nftables/iptables, NetworkManager (nmcli)
# RHEL : Getting Started with nftables : https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-nftables_configuring-and-managing-networking#doc-wrapper
# Red Hat recommends:
# - firewalld : Use for simple firewall use cases.
# - nftables : Use to set up complex and performance-critical firewalls, such as for a whole network.
# nftrace, nft
# - iptables : RHEL's uses the nf_tables kernel API instead of the legacy back end.
# The nf_tables API provides backward compatibility;
# scripts of iptables commands still work on RHEL.