linux firewall start and related commands

Linux and open ports in the firewall to start viewing, deleting, increased command

Firewall settings

Start:
systemctl Start firewalld
closed:
systemctl STOP firewalld
view status:
systemctl Status firewalld
boot disabled:
systemctl disable firewalld
Power On:
systemctl enable firewalld
view all open ports:
Firewall-cmd = --zone the ports public --list-
updated firewall rules :
Firewall-cmd --reload
added:
Firewall-cmd = --zone public --add-Port = 80 / TCP --permanent (- permanent permanent, this parameter is not restarted after the failure)
reload:
Firewall-cmd --reload
View:
Firewall---zone cmd = = public --query-Port 80 / tcp
delete:
Firewall---zone cmd = = public --remove-Port 80 / tcp --permanent
command always remember write a blog storage at!


Author: happy little novice
Source: CSDN
Original: https://blog.csdn.net/weixin_42691754/article/details/83009522
Copyright: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin blog.csdn.net/weixin_42691754/article/details/89917828