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 command for Linux to view the firewall?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly analyzes the relevant knowledge points of Linux to see what the firewall command is, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about "what is the command of Linux to view the firewall?"

1. Turn off the firewall: systemctl stop firewalld.service

2. Enable the firewall: systemctl start firewalld.service

3. Turn it off and start up: systemctl disable firewalld.service

4. Enable boot boot: systemctl enable firewalld.service 1

There are two ways to centos6:

1. Check the firewall status by service: [root@centos6 ~] # service iptables status iptables: firewall is not running. Enable the firewall: [root@centos6 ~] # service iptables start disable the firewall: [root@centos6 ~] # service iptables stop. Enter the init.d directory in iptables mode. The command is as follows:

[root@centos6] # cd / etc/init.d/ [root@centos6 init.d] # and then

Check the firewall status: [root@centos6 init.d] # / etc/init.d/iptables status temporarily turn off the firewall: [root@centos6 init.d] # / etc/init.d/iptables stop restart iptables: [root@centos6 init.d] # / etc/init.d/iptables restart on "what is the command for Linux to view the firewall?" that's it. More related content can be searched for previous articles, hoping to help you answer questions. Please support the website!

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

Development

Wechat

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

12
Report