Linux命令之防火墙
- 查看防火墙状态
systemctl status firewalld
- 启动防火墙
systemctl start firewalld
- 关闭防火墙(重启系统失效)
systemctl stop firewalld
- 设置开机启动防火墙
systemctl enable firewalld
- 停止防火墙并禁止开机启动
sytemctl disable firewalld
- 重启防火墙
firewall-cmd --reload
- 查看版本
firewall-cmd --version
目录
----树梢尖上众山小