linux关闭防火墙方法

  • 在关闭防火墙之前需要查看防火墙的状态,可以使用service iptables status命令来查看,确定防火墙是否开启再来进行关闭操作。

  • 如果想临时开启防火墙使用命令service iptables start,立即生效,重启后失效;想关闭防火墙使用service iptables stop,立即生效,重启后失效;

  • 要永久开启防火墙使用命令chkconfig iptables on,重启后生效;想永久关闭防火墙使用命令chkconfig iptables off,重启后生效。

    所以关闭防火墙一般都是先执行service iptables stop,再执行chkconfig iptables off,这样就可以不用重启也永久是关闭的。
posted @ 2013-08-29 11:34  Macaque  阅读(535)  评论(0编辑  收藏  举报