linux防火墙无法开启问题

今天玩Linux时发现的一个问题:防火墙开不了。
防火墙被锁定无法开启需要解除锁定

firewalld服务被锁定,不能添加对应端口:
出现这种情况,我们就要设置防火墙服务的锁定配置了。

取消锁定

systemctl unmask firewalld

锁定

systemctl mask firewalld

关于防火墙的其他命令如下:
systemctl status firewalld 查看firewalld状态
systemctl start firewalld 开启防火墙
systemctl status firewalld 查看firewalld状态

 

猜你喜欢

转载自blog.csdn.net/weixin_59539033/article/details/127791645
今日推荐