📅  最后修改于: 2023-12-03 15:30:46.765000             🧑  作者: Mango
firewalld
is a firewall management tool that is used in Red Hat Enterprise Linux. It is used to control the incoming and outgoing network traffic on a system. The tool provides a convenient way of configuring and managing firewalls, making it easier for sysadmins to secure their systems against malicious traffic.
firewalld
utilizes the netfilter
infrastructure that is built into the Linux kernel. netfilter
provides a set of hooks that redirect incoming and outgoing packets to the firewall. firewalld
uses these hooks to manipulate the packets and enforce the firewall rules.
Some of the key features of firewalld
are :
firewalld
defines a set of security zones which allow different firewall configurations depending on the level of trust of the network. Some of the pre-defined zones include public
, home
, work
, etc.firewalld
rules can be written using the rich
language which provides a more powerful and expressive syntax for defining firewall rules. firewalld
can be managed using the firewall-cmd
command line tool. Some of the common operations that can be performed using firewall-cmd
are :
firewall-cmd --list-all-zones
firewall-cmd --set-default-zone=<zone-name>
firewall-cmd --permanent --add-service=<service-name>
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="x.x.x.x" reject'
In summary, firewalld
is a powerful and flexible firewall management tool that is used in Red Hat Enterprise Linux. It provides a convenient way of managing firewalls that allows sysadmins to secure their systems against malicious traffic with ease.