当前位置:论坛首页 > Linux面板 > 讨论

【已完成】防火墙打开后自动关闭,无法正常启动?看我这一贴

发表在 Linux面板2022-8-1 00:04 [复制链接] 2 6099



首先我用宝塔多年了,第一次遇到这种情况,用的是华为的服务器,怀疑是华为对安全性之类的做了特别设置,因为他们安全组连80 443端口都是默认关闭的

QQ拼音截图20220731235019.png


而且虽然防火墙没有成功启动,但是除了防火墙默认添加的端口,其他端口都是拒绝访问的,而非没有启动放行所有端口(还好默认放行了宝塔端口,否则....)




QQ拼音截图20220731235554.png


论坛相关帖子里面也都没有解决方案


最后用命令测试了一下得出如下结果:
QQ拼音截图20220731235106.png


可以看到是firewalld服务被锁定,无法启动


解决方案:用root权限执行以下命令


systemctl unmask firewalld


再次尝试打开防火墙即可!

使用道具 举报 只看该作者 回复
发表于 2022-8-1 10:21:26 | 显示全部楼层
https://blog.csdn.net/u011630259 ... 1001.2014.3001.5501
这个好像是centos自己的一个屏蔽。
  1. Causes for failed to start firewalld service unit is masked
  2. We mask the firewall to prevent the firewall from starting from other services.

  3. This error occurs when we try to enable the firewalld that is masked.

  4. The error can also occur if the mask symbolic link is broken.

  5. We resolve the error by unmasking the firewalld and starting the service.
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-8-1 10:21:42 | 显示全部楼层
非常感谢您的分享!
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表