How to check whether the firewall is turned off in Linux

王林
Release: 2020-03-13 10:46:17
Original
4408 people have browsed it

How to check whether the firewall is turned off in Linux

1. Service mode

Check the firewall status:

[root@centos6 ~]# service iptables status
iptables:未运行防火墙。
Copy after login

Recommended tutorial: linux tutorial

2. iptables method

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

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

Then check the firewall status:

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

Recommended related video tutorials: linux video tutorial

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!