Firewall (2)-firewalld

iptables is a piece of software, it works with netfilter (kernel space) to form our firewall.
The specific location of netfilter is under /lib/moudles/your kernel/kernel/net:
Insert picture description here
there is also netfilter related information under the bridge folder.
firewalls is an encapsulation of iptables, which is simpler to operate and applies to centos7.
Open firewalld can try some simple commands:
Insert picture description here
deny all packets
Insert picture description here

Insert picture description here
After executing this command, we found that we could not receive any messages through the external ssh port,
and ping this address could not ping:
Insert picture description here

We then turn on all data packets with the following command:Insert picture description here
Insert picture description here

You can ping

Guess you like

Origin blog.csdn.net/weixin_48445640/article/details/109215038