歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Linux Iptbles

Linux Iptbles

日期:2017/3/3 11:04:02   编辑:Linux技術

永久性關閉防火牆

=======================================================

1.首先查看防火牆狀態

[root@zyl ~]# service iptables status

2.永久性生效,重啟後不會復原

開啟:

[root@zyl ~]# chkconfig iptables on

關閉:

[root@zyl ~]# chkconfig iptables off

3.及時生效,重啟之後復原

開啟:

[root@zyl ~]# service iptables start

[root@zyl ~]# /etc/init.d/iptables start

關閉:

[root@zyl ~]# service iptables stop

[root@zyl ~]# /etc/init.d/iptables stop

=======================================================

本文出自 “randolph” 博客,轉載請與作者聯系!

Copyright © Linux教程網 All Rights Reserved