firewalld, alternative Linux à Windows Defender Firewall
Mis à jour le
Notre avis
firewalld is a good replacement for Windows Defender Firewall for users who manage network traffic via zones and predefined services. It supports both inbound and outbound rules, handles IPv4 and IPv6, and maintains persistent configurations across reboots. System integration with NetworkManager and D-Bus allows reliable startup behavior. While it lacks per-application firewall control at the process level, it covers most rule-based filtering needs through ports, protocols, and IPs. Best suited for desktop and server users comfortable with zone-based firewall models rather than app-centric blocking.
- Licence
- GPL-2.0
- Prix
- Gratuit
- Dernière version
- 2.5.2
- Note
- —
Ce qui fonctionne pareil
- Both control inbound and outbound traffic using configurable rules
- Support for blocking/allowing traffic by port, protocol, and IP address
- Persistent rule sets that survive reboots
- Logging capabilities for monitored or blocked connections
- Support for both IPv4 and IPv6 filtering
Ce qui change
- firewalld does not support per-application firewall rules based on executables (like .exe files in Windows)
- Uses network zones (public, home, etc.) instead of Windows-style profile switching
- No native GUI included, though tools like firewall-config or GNOME Firewall provide interfaces
- Relies on D-Bus and NetworkManager integration rather than direct service hooks
- Rich rules can achieve complex logic but require manual input, unlike Windows' rule wizard
Ouvrir vos fichiers Windows Defender Firewall
There is no direct way to import or open Windows Defender Firewall rule files (.xml or registry exports) in firewalld. Rule configurations are stored in XML files under /etc/firewalld/ and use a different structure. Migration requires manually translating rules into firewalld services, zones, or rich rules. Third-party tools or scripts may assist in conversion, but no standard format compatibility exists.
Passer de Windows Defender Firewall à firewalld, étape par étape
- Install firewalld using your distro's package manager (e.g., sudo dnf install firewalld)
- Enable and start the service: sudo systemctl enable --now firewalld
- Define zones for different networks (e.g., set interface to 'public' or 'home')
- Add services or ports using firewall-cmd (e.g., --add-service=ssh --permanent)
- Use rich rules for IP-based filtering or custom protocols
- Test rules and reload if needed: firewall-cmd --reload
Fonctionnalités clés de firewalld
- Prise en charge des zones réseau (par exemple, public, domicile, approuvé)
- Mises à jour dynamiques du pare-feu sans interruption des connexions
- Configurations de service prédéfinies (par exemple, ssh, http)
- Prise en charge d’IPv4 et d’IPv6
- Interface D-Bus pour l’intégration aux environnements bureau
- Règles riches pour des configurations avancées
- Intégration avec NetworkManager
Installer firewalld sous Linux
sudo apt install firewalldsudo apt install firewalldsudo dnf install firewalldsudo pacman -S firewall-appletsudo zypper install firewalldQuestions fréquentes
Can firewalld block a specific program like Windows Defender Firewall does?
No, firewalld does not filter traffic by application binary. It works at the port, protocol, and IP level. For process-level control, consider using iptables with owner matching or third-party tools like OpenSnitch.
Is there a GUI for firewalld?
Yes, firewall-config provides a basic GUI. Some desktop environments include built-in firewall tools that integrate with firewalld, such as GNOME Firewall or KDE's firewall settings.
Does firewalld work without NetworkManager?
Yes, but it works best with NetworkManager. If using another network manager, ensure zones are manually assigned to interfaces via firewall-cmd or config files.