1)防火墻關(guān)掉,永久性生效,重啟后不會(huì)復(fù)原
開(kāi)啟: chkconfig iptables on
關(guān)閉: chkconfig iptables off
2)防火墻關(guān)掉,即時(shí)生效,重啟后復(fù)原
開(kāi)啟: service iptables start
關(guān)閉: service iptables stop
打開(kāi)一個(gè)端口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
壞男孩 閱讀(451)
評(píng)論(0) 編輯 收藏 所屬分類(lèi):
Linux