This article may be too technical for most readers to understand.(January 2019) |
firewalld is a firewall management tool for Linux operating systems. It provides firewall features by acting as a front-end for the Linux kernel's netfilter framework. firewalld's current default backend is nftables. Prior to v0.6.0, iptables was the default backend.[3] Through its abstractions, firewalld acts as an alternative to nft and iptables command line programs. The name firewalld adheres to the Unix convention of naming system daemons by appending the letter "d".[4]
Developer(s) | Eric Garver, Thomas Woerner, Red Hat, Inc. |
---|---|
Initial release | January 3, 2011[1] |
Stable release | 2.2.3[2]
/ 17 October 2024 |
Repository | github |
Written in | Python |
Operating system | Linux |
Platform | Netfilter |
License | GNU General Public License 2 |
Website | www |
firewalld is written in Python. It was intended to be ported to C++, but the porting project was abandoned in January 2015.[5]
Features
editfirewalld supports both IPv4 and IPv6 networks and can administer separate firewall zones with varying degrees of trust as defined in zone profiles. Administrators can configure Network Manager to automatically switch zone profiles based on known Wi-Fi (wireless) and Ethernet (wired) networks, but firewalld cannot do this on its own.[6]
Services and applications can use the D-Bus interface to query and configure the firewall.[7] firewalld supports timed rules, meaning the number of connections (or "hits") to a service can be limited globally. There is no support for hit-counting and subsequent connection rejection per source IP; a common technique deployed to limit the impact of brute-force hacking and distributed denial-of-service attacks.[8]
firewalld's command syntax is similar to but more verbose than other iptables front-ends like Ubuntu's Uncomplicated Firewall (ufw).[8] The command-line interface allows managing firewall rulesets for protocol, ports, source and destination; or predefined services by name.
Services are defined as XML files containing port- and protocol-mappings, and optionally extra information like specifying subnets and listing required Kernel helper modules.[9] The syntax resembles that of systemd's service files. A simple service file for a web server listening on TCP port 443 might look like this:
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Web Server</short>
<description>Public web host over HTTPS.</description>
<port port="443" protocol="tcp" />
</service>
Forward and output filtering
editfirewalld v0.9.0 added native support for forward and output forwarding via policy objects.[10] This allows filtering traffic flowing between zones. Policies support most firewalld primitives available to zones: services, ports, forward-ports, masquerade, rich rules, etc.
Limitations
editBy default firewalld does not block outbound traffic as required by standards such as NIST 800-171 and 800-53. However, an outbound block can be added with a policy.
Graphical front-ends (GUIs)
editfirewall-config is a graphical front-end that is optionally included with firewalld, with support for most of its features.
firewall-applet is a small status indicator utility that is optionally included with firewalld. It can provide firewall event log notifications as well as a quick way to open firewall-config. firewall-applet was ported from the GTK+ to the Qt framework in the summer of 2015 following the GNOME Desktop’s deprecation of system tray icons.[11]
Adoption
editfirewalld ships by default on the following Linux distributions:[7]
- CentOS 7 and newer
- Fedora 18 and newer
- OpenSUSE Leap 15 and newer[12]
- Red Hat Enterprise Linux 7 and newer
- SUSE Linux Enterprise 15 and newer[12]
- EndeavourOS Apollo and newer
firewalld is enabled by default in all of these distributions. firewalld is also available as one of many firewall options in the package repository of many other popular distributions such as Debian[13] or Ubuntu.
References
edit- ^ "firewalld releases". github.com repository. Retrieved 29 March 2017.
- ^ "Release 2.2.3". 17 October 2024. Retrieved 21 October 2024.
- ^ "Release firewalld-0.6.0 · firewalld/firewalld". Firewalld github. Retrieved 2019-06-12.
- ^ Kerrisk, Michael (2010). The Linux Programming Interface. San Francisco, California: No Starch. p. 768. ISBN 9781593272203.
- ^ "firewalld development page". firewalld project website. Archived from the original on 3 February 2016. Retrieved 9 February 2016.
- ^ "FirewallD". Fedora community wiki. Retrieved 9 February 2016.
- ^ a b "firewalld project home page". firewalld project website. Retrieved 9 February 2016.
- ^ a b Aleksandersen, Daniel (9 February 2016). "Comparing and contrasting Uncomplicated Firewall and FirewallD". Slight Future. Retrieved 9 February 2016.
- ^ "firewalld service configuration files". Thomas Woerner's space on Fedora People. Retrieved 9 February 2016.
- ^ "Policy Objects Introduction". firewalld blog. 2 September 2020. Retrieved 20 August 2021.
- ^ Woerner, Thomas. "On the way to Qt". firewalld blog. Archived from the original on 16 February 2016. Retrieved 9 February 2016.
- ^ a b "Firewalld - openSUSE Wiki".
- ^ "Package: firewalld". Debian package repository. Retrieved 9 February 2016.