Introduction to the RHEL firewall – firewalld
RHEL comes with two low-level network traffic filtering mechanisms: nftables, for filtering IP-related traffic, and ebtables, for transparent filtering in bridges. These mechanisms are static and use a set of rules to accept or reject traffic, though they do provide a myriad of other capabilities. In RHEL, they are both handled and managed dynamically by firewalld. Unless there is a specific need to have a very low-level usage of these low-level filtering mechanisms, please use firewalld (or its main command; that is, firewall-cmd
) instead. In this section, we will take a look at the firewall defaults in RHEL.
firewalld is installed by default in the system, which we can check by using the rpm
command, so there is no need to install it:
[root@rhel8 ~]# rpm -qa | grep firewalld firewalld-filesystem-0.8.2-2.el8.noarch firewalld-0.8.2-2.el8.noarch
If we have an installation that doesn't include firewalld for some reason...