V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
aruisi
V2EX  ›  Linux

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

  •  
  •   aruisi · 2016-05-20 14:52:28 +08:00 · 35593 次点击
    这是一个创建于 2921 天前的主题,其中的信息可能已经有所发展或是发生改变。
    强制重启了下,结果就发现 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 还是不行。
    2 条回复    2016-05-20 15:44:22 +08:00
    hcymk2
        1
    hcymk2  
       2016-05-20 15:10:50 +08:00
    owt5008137
        2
    owt5008137  
       2016-05-20 15:44:22 +08:00 via Android
    都 centos7 了,直接用 firewall 呗,干嘛还用 iptables
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2347 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:57 · PVG 16:57 · LAX 01:57 · JFK 04:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.