Linux关闭防火墙

Linux关闭防火墙

这段时间主机ping虚拟机时ping不通,后来发现是Linux的防火墙没有关闭,因此查看了一下Linux如何打开关闭防火墙。

1) 永久性生效,重启后不会复原
开启:chkconfig iptables on
关闭:chkconfig iptables off

2) 即时生效,重启后复原
开启:service iptables start
关闭:service iptables stop

posted @ 2016-11-17 21:38  垚叶  阅读(359)  评论(0编辑  收藏  举报