1)防火墻關(guān)掉,永久性生效,重啟后不會復(fù)原
開啟: chkconfig iptables on
關(guān)閉: chkconfig iptables off
2)防火墻關(guān)掉,即時生效,重啟后復(fù)原
開啟: service iptables start
關(guān)閉: service iptables stop
打開一個端口22
iptables -A INPUT -p tcp -sport 22 -j ACCEPT
iptables -A INPUT -p tcp -dport 22 -j ACCEPT.
posted on 2010-12-03 21:51
壞男孩 閱讀(453)
評論(0) 編輯 收藏 所屬分類:
Linux