Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the firewall setting?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what the firewall setting is, and the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Https://blog.csdn.net/qq_36663951/article/details/82115086

# centos7 starts the firewall

Systemctl start firewalld.service

# centos7 stop Firewall / disable Firewall

Systemctl stop firewalld.service

# centos7 restart Firewall

Systemctl restart firewalld.service

# set boot to enable firewall

Systemctl enable firewalld.service

# set boot not to start the firewall

Systemctl disable firewalld.service

Firewall-cmd-zone=public-add-port=80/tcp-permanent

# description:

#-zone # scope

#-add-port=80/tcp # add port in the format: Port / communication protocol

#-permanent takes effect permanently. It will expire after restart without this parameter.

# multiple ports:

Firewall-cmd-zone=public-add-port=80-90/tcp-permanent

View the listening ports that have been enabled on this machine:

# centos7 below use netstat-ant,7 to use ss

Ss-ant

View:

# centos7 View all Firewall Information

Firewall-cmd-list-all

# centos7 to view the information of ports opened by the firewall

Firewall-cmd-list-ports

Delete:

# Delete

Firewall-cmd-zone=public-remove-port=80/tcp-permanent

About what the firewall setting is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report