0x00 臨時關閉防火牆
1、 檢視防火牆的狀態
/etc/init.d/iptables status2、 臨時關閉防火牆
/etc/init.d/iptables stop3、 檢視關閉後的狀態
/etc/init.d/iptables status0x01 永久關閉防火牆
命令:chkconfig --level 2345 iptables off
或者 chkconfig iptables off
其中2345 代表」執行等級「
等級0表示:表示關機
等級1表示:單使用者模式
等級2表示:無網路連線的多使用者命令列模式
等級3表示:有網路連線的多使用者命令列模式
等級4表示:不可用
等級5表示:帶圖形介面的多使用者模式
等級6表示:重新啟動
0x02 service方式臨時關閉防火牆
service iptables status開啟防火牆:
service iptables start關閉防火牆:
service iptables stop如果提示
error reading information on service iptables :no such file or directory使用
systemctl stop firewalld.service參考:
linux檢視防火牆狀態及開啟關閉命令
linux下的關閉防火牆
linux常用命令和關閉防火牆
linux關閉防火牆命令
Linux 關閉防火牆
centos 6 中防火牆預設是 iptables,而 centos 7 中防火牆預設是 firewall。a 檢視防火牆狀態 service iptable statusb 臨時關閉防火牆 臨時關閉防火牆 servcie iptables stop 臨時啟動防火牆 service iptables...
Linux 關閉防火牆
一.linux下開啟 關閉防火牆命令 1 永久性生效,重啟後不會復原開啟 chkconfig iptables on關閉 chkconfig iptables off 2 即時生效,重啟後復原開啟 service iptables start關閉 service iptables stop 需要說明...
linux關閉防火牆
1 重啟後生效 開啟 chkconfig iptables on 關閉 chkconfig iptables off 2 即時生效,重啟後失效 開啟 service iptables start 關閉 service iptables stop 需要說明的是對於linux下的其它服務都可以用以上命令...