1. 防火墙即时生效,重启系统后失效
开启: [[email protected] ~]# service iptables start 关闭: [[email protected] ~]# service iptables stop
2. 防火墙重启系统后永久生效
开启: [[email protected] ~]# chkconfig iptables on 关闭: [[email protected] ~]# chkconfig iptables off
3. 修改系统启动配置文件的方式
开启: [[email protected] ~]# chkconfig --level 35 iptables on 关闭: [[email protected] ~]# chkconfig --level 35 iptables off
时间: 2024-09-30 02:01:32