Linux check to see if the firewall is on command
This article mainly introduces linux to check whether the firewall is open or not in detail. The sample code in this article is very detailed and has a certain reference value. Interested friends can refer to it.
Use iptables method, as follows:
First, go to the init.d directory with the following command:
[root@centos6 ~] # cd / etc/init.d/ [root@centos6 init.d] #
Then check the firewall status:
[root@centos6 init.d] # / etc/init.d/iptables status
The above is a brief introduction of the command for linux to check whether the firewall is enabled. Of course, the differences in the detailed use of the above have to be understood by everyone. If you want to know more, welcome to follow the industry information channel!