查看狀態service iptables statusvim
1) 臨時生效,重啓後復原開啓: service iptables start關閉: service iptables stop重啓: service iptables stop 2) 永久性生效,重啓後不會復原開啓: chkconfig iptables on關閉: chkconfig iptables offip
vim /etc/sysconfig/iptablestable