Home > Article > Operation and Maintenance > How to check firewall status in linux
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.
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!