Linux · System Tools
firewalld
firewalld is a dynamic firewall manager for Linux with support for network zones and runtime configuration.
- License
- GPL-2.0
- Latest version
- 2.5.2
What is firewalld?
firewalld provides a flexible way to manage Linux firewalls using zones and services instead of raw iptables rules. It has been the default firewall solution in Fedora, RHEL, and related distributions since 2013. Mature and well-integrated, it uses D-Bus for dynamic updates without requiring a full reload.
It's best for desktop users and system administrators who want a high-level interface to firewall management without writing low-level iptables commands. It works well in environments where network profiles change frequently, such as laptops moving between networks. Not ideal for complex, rule-heavy setups requiring fine control.
Compared to Windows Defender Firewall, firewalld feels more structured and zone-driven. Instead of per-application rules, it emphasizes network trust levels (e.g., home, public). The CLI and GUI tools (like firewall-config) are functional but less polished than Windows’ interface. Expect a steeper learning curve if you're used to point-and-click simplicity.
Best for: Users who need a dynamic, zone-based firewall with minimal ongoing maintenance.
Key features of firewalld
- Support for network zones (e.g., public, home, trusted)
- Dynamic firewall updates without dropping connections
- Predefined service configurations (e.g., ssh, http)
- IPv4 and IPv6 support
- D-Bus interface for integration with desktop environments
- Rich rules for advanced configurations
- Integration with NetworkManager
Pros
- Dynamic rule updates without restart
- Clean separation of network trust levels
- Good integration with desktop and server distros
- Human-readable service and zone definitions
- Supports both CLI (firewall-cmd) and GUI tools
Cons
- Less intuitive for users expecting per-application rules
- Limited granularity compared to raw iptables or nftables
- Documentation can be sparse for rich rules
Windows programs firewalld replaces
How to install firewalld on Linux
sudo apt install firewalldsudo apt install firewalldsudo dnf install firewalldsudo pacman -S firewall-appletsudo zypper install firewalldTips for Windows users
Coming from Windows Defender Firewall, forget per-app blocking—firewalld uses zones and services. Assign interfaces to zones (public, home) based on trust. Use 'firewall-cmd --add-service=http' instead of allowing an executable. Rules are persistent only with --permanent. GUI tools like firewall-config help, but learning the CLI gives better control.
firewalld: frequently asked questions
How do I make firewalld changes permanent?
By default, changes are runtime-only. Use --permanent with firewall-cmd, then reload with 'firewall-cmd --reload' to apply.
Is firewalld the same as iptables?
No. firewalld is a frontend that manages iptables (or nftables) rules dynamically. It doesn’t replace iptables but controls it behind the scenes.
Can I use firewalld with Docker or containers?
Yes, but Docker manipulates iptables directly, which can conflict. Consider disabling Docker's iptables management or using firewalld in passthrough mode.
What’s the difference between firewalld and ufw?
Both are iptables frontends. ufw is simpler and Debian-focused. firewalld supports dynamic updates and zones, making it better for changing network environments.
Updated