firewalld permanent参数

https://www.cnblogs.com/meizy/p/firewalld.html

firewalld有规则两种状态

  • 运行时(runtime):修改规则马上生效,但是临时生效
  • 持久配置(permanent): 修改后需要重载才会生效
  • firewall-cmd --permanent RULE
  • firewall-cmd --reload

注意:一旦使用了permanent,配置完成后一定要reload,否则只能待防火墙重启后这些配置才能生效。

猜你喜欢

转载自blog.csdn.net/sxhexin/article/details/114240213
今日推荐