Linux命令之防火墙

  • 查看防火墙状态
systemctl status firewalld
  • 启动防火墙
systemctl start firewalld
  • 关闭防火墙(重启系统失效)
systemctl stop firewalld
  • 设置开机启动防火墙
systemctl enable firewalld
  • 停止防火墙并禁止开机启动
sytemctl disable firewalld
  • 重启防火墙
firewall-cmd --reload
  • 查看版本
firewall-cmd --version

目录

  https://www.cnblogs.com/lioa/p/12659545.html

猜你喜欢

转载自www.cnblogs.com/lioa/p/12659566.html