LinuxAlternative

Linux · Ferramentas do Sistema

firewalld

firewalld is a dynamic firewall manager for Linux with support for network zones and runtime configuration.

Código abertoGrátis
Seja o primeiro a avaliar
Licença
GPL-2.0
Versão mais recente
2.5.2

O que é o 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.

Ideal para: Users who need a dynamic, zone-based firewall with minimal ongoing maintenance.

Principais recursos do 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

Prós

  • 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

Contras

  • Less intuitive for users expecting per-application rules
  • Limited granularity compared to raw iptables or nftables
  • Documentation can be sparse for rich rules

Programas do Windows que o firewalld substitui

Como instalar o firewalld no Linux

Ubuntu / Mintsudo apt install firewalld
Debiansudo apt install firewalld
Fedorasudo dnf install firewalld
Arch / Manjarosudo pacman -S firewalld
openSUSEsudo zypper install firewalld

Dicas para quem vem do Windows

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: perguntas frequentes

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.

Atualizado em