CentOS 7 使用iptables防火墙
生活随笔
收集整理的這篇文章主要介紹了
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
?
centos7不再使用iptables,而是使用firewalld 若不想使用firewalld,繼續使用iptables,可以停掉firewalld,并且安裝iptables-services包 systemctl stop firewalld systemctl disable firewalld yum install -y iptables-services systemctl enable iptables systemctl start iptables轉載于:https://www.cnblogs.com/weifeng1463/p/7223114.html
總結
以上是生活随笔為你收集整理的CentOS 7 使用iptables防火墙的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Hibernate 学习(一)
- 下一篇: js-比较两个日期的大小