防火墙的基本操做命令html
1. 查询防火墙状态:linux
[root@localhost ~]# service iptables status
2. 开启防火墙:centos
[root@localhost ~]# service iptables start
2. 开启防火墙:rest
[root@localhost ~]# service iptables start
3. 关闭防火墙:htm
[root@localhost ~]# service iptables stop
4. 重启防火墙:ip
[root@localhost ~]# service iptables restart
5. 永久关闭防火墙:table
[root@localhost ~]# chkconfig iptables off
6. 永久关闭后开启防火墙:iptables
[root@localhost ~]# chkconfig iptables off
本文地址:http://www.linuxprobe.com/centos-firewall.htmlservice