Linux on / off the firewall

First, view the firewall status:

systemctl status firewalld

inactive means that the firewall is turned off.

 

Second, open the firewall:

systemctl start firewalld

After starting without any prompts, see the firewall status again, you can see that become active, successful start.

 

Third, turn off the firewall:

systemctl stop firewalld

Turn off the firewall also silent, view the status becomes inactive for success is closed.

Guess you like

Origin www.cnblogs.com/suanmiaoup/p/12618302.html