第8章(iptables和firewall)

  • iptables

    配置完 iptables 规则后 需要使用 iptables-save 保存永久生效

       

 

  • firewall-cmd

  firewall-cmd命令正常设置防火墙策略时添加--permanent参数,这样配置的防火墙策略就可以永久生效了.但不会立即生效

  需要使用命令 firewall-cmd --reload 使配置立即生效

   

  • firewall-config 图形化界面配置防火墙

 

  firewall-config工具需要先安装   dnf install firewall-config

  

 

 

   

 

 

 

 


 

 

 

posted @ 2021-04-25 22:55  MrTang88  阅读(81)  评论(0)    收藏  举报