歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> CentOS 7 使用iptables防火牆

CentOS 7 使用iptables防火牆

日期:2017/3/3 17:31:15   编辑:學習Linux

CentOS 7 使用iptables防火牆


熱度3 評論 176 www.BkJia.Com 網友分享於: 2017-02-18 06:02:33 浏覽數47759次

CentOS 7 使用iptables防火牆


# 停止firewalld服務 systemctl stop firewalld systemctl mask firewalld

# 安裝iptables-services yum install iptables-services Enable the service at boot-time:

# 啟動iptables服務 systemctl enable iptables

# 管理iptables systemctl [stop|start|restart] iptables
# 保存規則 service iptables save 或者 /usr/libexec/iptables/iptables.init save

http://www.bkjia.com/Linuxjc/1193923.html TechArticle

Copyright © Linux教程網 All Rights Reserved