Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux check to see if the firewall is on command

Shulou Source: shulou.com Published: 2022-06-03 07:27:28 09月21日 Update

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!

Tags: Commands firewalls fire protection references different abbreviations codes values interests guys buddies that is ways more status directories examples articles industries information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Linux macOS Shulou Tech Info Microsoft