防火墙无法启动

问答中心分类: Linux防火墙无法启动
haoshuangwin asked 9 年 ago
centos7 安装完毕防火墙无法启动
#systemctl start firewalld.service;
提示:Failed to start firewalld.service: Unit firewalld.service is masked.
请问应如何启动防火墙,谢谢

5 Answers
oneinstack answered 9 年 ago
默认禁用firewalld,使用iptables

haoshuangwin answered 9 年 ago
对linux不熟,麻烦大大帮看下iptables 状态是否正常,十分谢谢!
status iptables.service

鈼[0m iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: active (exited) since Thu 2016-04-14 09:54:08 CST; 3h 6min ago
Main PID: 468 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/iptables.service
Apr 14 09:54:08 iZ255ry65e3Z systemd[1]: Starting IPv4 firewall with iptables...
Apr 14 09:54:08 iZ255ry65e3Z iptables.init[468]: iptables: Applying firewall rules: [ OK ]
Apr 14 09:54:08 iZ255ry65e3Z systemd[1]: Started IPv4 firewall with iptables.

oneinstack answered 9 年 ago
默认OneinStack已经配置好,查看规则命令:iptables -nvL

leosocks answered 9 年 ago
里面所有的iptables是清除原来所有的,然后再新增吧,而不是追加
 

rain16881 answered 8 年 ago
unmask一下