防火牆的基本操做命令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