Centos7将firewall替换成iptables
生活随笔
收集整理的這篇文章主要介紹了
Centos7将firewall替换成iptables
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.關閉firewall并禁止開機啟動
1 #關閉firewall 2 systemctl stop firewalld.service 3 #禁止firewall開機啟動 4 systemctl disable firewalld.service2.查看默認防火墻狀態
firewall-cmd --state3.安裝iptables-services
yum install iptables-services4.查看防火墻配置文件
vi /etc/sysconfig/iptables【ESC】:wq!退出保存
5.重啟防火墻使配置生效
systemctl restart iptables.service?6.設置防火墻開機啟動
systemctl enable iptables.service?
轉載于:https://www.cnblogs.com/stardust-sh-hyk313/p/10069919.html
總結
以上是生活随笔為你收集整理的Centos7将firewall替换成iptables的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: logging模块的使用
- 下一篇: Linux 使用记录