centos7 iptables 启动错误 哪位大神相助?

2016-05-20 14:52:28 +08:00
 aruisi
强制重启了下,结果就发现 iptables 用不了了,提示
[root ~]# systemctl restart iptables.service
Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details.
[root ~]# systemctl status iptables.service
● iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-05-20 06:32:09 UTC; 14s ago
Process: 23631 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=1/FAILURE)
Main PID: 23631 (code=exited, status=1/FAILURE)

May 20 06:32:09 vultr.guest systemd[1]: Starting IPv4 firewall with iptables...
May 20 06:32:09 vultr.guest iptables.init[23631]: iptables: Applying firewall rules: iptables-restore v1.4.21: iptables-restore: unable to initialize table 'filter'
May 20 06:32:09 vultr.guest iptables.init[23631]: Error occurred at line: 4
May 20 06:32:09 vultr.guest iptables.init[23631]: Try `iptables-restore -h' or 'iptables-restore --help' for more information.
May 20 06:32:09 vultr.guest iptables.init[23631]: [FAILED]
May 20 06:32:09 vultr.guest systemd[1]: iptables.service: main process exited, code=exited, status=1/FAILURE
May 20 06:32:09 vultr.guest systemd[1]: Failed to start IPv4 firewall with iptables.
May 20 06:32:09 vultr.guest systemd[1]: Unit iptables.service entered failed state.
May 20 06:32:09 vultr.guest systemd[1]: iptables.service failed.

重装了 iptables 还是不行。
35605 次点击
所在节点    Linux
2 条回复
hcymk2
2016-05-20 15:10:50 +08:00
owt5008137
2016-05-20 15:44:22 +08:00
都 centos7 了,直接用 firewall 呗,干嘛还用 iptables

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/280030

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX