iptables開啓和關閉

查看iptables規則的話,就用iptables -L這個命令就行了~~,okpost

清除iptables規則的話,用iptables -F ,that‘s aaaaalllllll~~blog

關閉,能夠有兩種命令,一種是敲擊 /etc/init.d/iptables stop   另外一種是 services iptables stop ,okip

 

看到了吧,上面就是兩個命令的使用。it

 

而後咱們在執行一些chkconfig,看看 六個狀態下的命令開啓設置,由於這個是涉及到重啓之後是否你修改的命令~~table

是吧,七個狀態 還記得麼,關機的時候敲init 0,狀態那裏0的一列全是關閉。class

那chkconfig iptables off(設置自動啓動爲關閉)iptables

chkconfig iptables on(設置自動啓動爲啓動)service

chkconfig --del iptables(移除開啓自啓動)im

chkconfig --add iptables(增長開啓自啓動)top

 這幾個命令你回了麼? :)

相關文章
相關標籤/搜索