Home  >  Article  >  Operation and Maintenance  >  How to check whether the firewall is turned on in Linux

How to check whether the firewall is turned on in Linux

王林
王林Original
2020-03-11 16:43:385041browse

How to check whether the firewall is turned on in Linux

Use iptables method, the details are as follows:

First enter the init.d directory, the command is as follows:

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

(Recommended tutorial: linux Tutorial)

Then check the firewall status:

[root@centos6 init.d]# /etc/init.d/iptables status

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check whether the firewall is turned on in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn