Linux开启和关闭防火墙

一、即时生效,重启后失效:

1、启动:service iptables start

2、关闭:service iptables stop

二、重启后永久生效:

1、启动:chkconfig iptables on

2、关闭:chkconfig iptables off

原文地址:https://www.cnblogs.com/tonglingliangyong/p/3842743.html