虚拟机防火墙

1.即时生效,重启后失效

开启:service iptables start

关闭:service iptables stop

2 重启后生效

开启:chkconfig iptables on

关闭:chkconfig iptables off

注意:需要用root用户执行此操作

原文地址:https://www.cnblogs.com/javadongx/p/firewal-stop-start.html