Home  >  Article  >  Operation and Maintenance  >  How to check firewall status in linux

How to check firewall status in linux

王林
王林Original
2021-01-25 14:59:5311761browse

How to check the firewall status in Linux: You can check the firewall status by executing the [chkconfig --list iptables] command. If you want to turn on the firewall, you can execute the [chkconfig iptables on] command.

How to check firewall status in linux

The operating environment of this article: red hat enterprise linux 6.1 system, thinkpad t480 computer.

(Learning video sharing: linux video tutorial)

Specific method:

You can check the iptables firewall status through the following command:

chkconfig --list iptables

Methods to turn on and off the firewall:

1. Permanent effect

Turn on:

chkconfig iptables on 
chkconfig ip6tables off   ---针对ipv6

Turn off:

chkconfig iptables off
chkconfig ip6tables off   ---针对ipv6

Related recommendations: linux tutorial

The above is the detailed content of How to check firewall status 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