How to check firewall status in linux

王林
Release: 2021-01-25 14:59:53
Original
11777 people have browsed it

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
Copy after login

Methods to turn on and off the firewall:

1. Permanent effect

Turn on:

chkconfig iptables on 
chkconfig ip6tables off   ---针对ipv6
Copy after login

Turn off:

chkconfig iptables off
chkconfig ip6tables off   ---针对ipv6
Copy after login

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!

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