linux開啟和關閉防火牆:linux查看防火牆狀態

下面是Linux系統一些常見防火牆操作命令的使用情況介紹:

Centos7防火牆

1) 查看防火牆狀態

firewall-cmd --state

2) 停止防火牆

systemctl stop firewalld.service

3) 開啟防火牆

systemctl start firewalld.service

4) 禁止firewall開機啟動

systemctl disable firewalld.service

Centos6防火牆

1) 查看防火牆狀態

service iptables status

2) 停止防火牆

service iptables stop

3) 開啟防火牆

service iptables star

4) 查看iptables是否開機啟

chkconfig iptables --list

5) 設置iptables開機啟動

chkconfig iptables on

6) 設置iptables開機不啟動

chkconfig iptables off

原創文章,作者:投稿專員,如若轉載,請註明出處:https://www.506064.com/zh-hant/n/217378.html

(0)
打賞 微信掃一掃 微信掃一掃 支付寶掃一掃 支付寶掃一掃
投稿專員的頭像投稿專員
上一篇 2024-12-09 00:27
下一篇 2024-12-09 00:27

相關推薦

發表回復

登錄後才能評論