centos 7 firewall settings

  Please respect knowledge and originality. For more information, please refer to http://www.cezuwang.com/listFilm?page=1&areaId=906&filmTypeId=1  

 

firewall:
systemctl start firewalld.service#Start firewall
systemctl stop firewalld.service#Stop firewall
systemctl disable firewalld.service#Prohibit firewall startup


firewall-cmd --add-port=5666/tcp Instantly open, here can also be a port range , such as 1000-2000/tcp
firewall-cmd --permanent --add-port=80/tcp Write the configuration file
firewall-cmd --reload Restart the firewall


firewall-cmd --query-port=80/tcp Check whether 80 is enabled port

firewall-cmd --query-port=11211/tcp

 

  Please respect knowledge and originality. For more information, please refer to http://www.cezuwang.com/listFilm?page=1&areaId=906&filmTypeId=1  

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326623376&siteId=291194637