---------------------------------------------------------------------
關閉/停用 Linux Firewall (Red hat/CentOS/Fedora Core)
# /etc/init.d/iptables save 存檔
# /etc/init.d/iptables stop 停止
開機時停用防火牆
# chkconfig iptables off
-----------------------------------------------------------------------
開啟/啟動 Firewall (Red hat/CentOS/Fedora Core)
# /etc/init.d/iptables start
開機時啟動防火牆
# chkconfig iptables on
-------------------------------------------------------------------------
iptable設定檔位置: /etc/sysconfig/iptables
寫入目前iptables至設定檔
sudo iptables-save > /etc/sysconfig/iptables
沒有留言:
張貼留言