1. 程式人生 > >檢視、啟動、關閉防火牆

檢視、啟動、關閉防火牆

檢視防火牆:
[[email protected] ~]# chkconfig iptables --list
啟動防火牆:
1)永久性生效,重啟後不會復原
[[email protected] ~]# chkconfig iptables on

2)即時生效,重啟後復原
[[email protected] ~]# service iptables start

關閉防火牆:
1)永久性生效,重啟後不會復原
[[email protected] ~]# chkconfig iptables off
2)即時生效,重啟後復原
[[email protected]

~]# service iptables stop