1. 防火墙即时生效,重启系统后失效
开启: [root@StevenRH6 ~]# service iptables start 关闭: [root@StevenRH6 ~]# service iptables stop
2. 防火墙重启系统后永久生效
开启: [root@StevenRH6 ~]# chkconfig iptables on 关闭: [root@StevenRH6 ~]# chkconfig iptables off
3. 修改系统启动配置文件的方式
开启: [root@StevenRH6 ~]# chkconfig --level 35 iptables on 关闭: [root@StevenRH6 ~]# chkconfig --level 35 iptables off
CentOS防火墙配置指南
本文介绍了CentOS系统中防火墙的基本配置方法,包括防火墙的即时开启与关闭、永久生效设置以及通过修改启动配置文件实现的控制。适用于需要快速掌握防火墙基本操作的系统管理员。
365

被折叠的 条评论
为什么被折叠?



