【发布时间】:2018-05-15 22:02:07
【问题描述】:
我正在尝试打开 Centos 7 服务器上的特定端口。
我可以将它们添加到 IP 表没有问题,但是当我尝试启动 IP 表时,我得到了他的错误。
[root@ck21-erp01 ~]# systemctl start iptables.service iptables.service 的作业失败,因为控制进程以错误代码退出。详见“systemctl status iptables.service”和“journalctl -xe”。
当我查看状态时出现此错误
[root@ck21-erp01 ~]# systemctl status iptables.service -l ● iptables.service - 带有 iptables 的 IPv4 防火墙 已加载:已加载(/usr/lib/systemd/system/iptables.service;已启用;供应商预设:已禁用) 活动:自美国东部时间 2018 年 5 月 15 日星期二 17:52:38 以来失败(结果:退出代码); 29 秒前 进程:4803 ExecStart=/usr/libexec/iptables/iptables.init 启动(代码=退出,状态=1/FAILURE) 主 PID:4803(code=exited,status=1/FAILURE)
5 月 15 日 17:52:38 ck21-erp01 systemd[1]:使用 iptables 启动 IPv4 防火墙... 5 月 15 日 17:52:38 ck21-erp01 iptables.init[4803]:iptables:应用防火墙规则:iptables-restore v1.4.21:不允许使用多个 -p 标志 5 月 15 日 17:52:38 ck21-erp01 iptables.init[4803]:第 9 行发生错误 5 月 15 日 17:52:38 ck21-erp01 iptables.init[4803]:尝试“iptables-restore -h”或“iptables-restore --help”以获取更多信息。 5 月 15 日 17:52:38 ck21-erp01 iptables.init[4803]:[失败] 5 月 15 日 17:52:38 ck21-erp01 systemd[1]:iptables.service:主进程退出,code=exited,status=1/FAILURE 5 月 15 日 17:52:38 ck21-erp01 systemd[1]:无法使用 iptables 启动 IPv4 防火墙。 5 月 15 日 17:52:38 ck21-erp01 systemd[1]:单元 iptables.service 进入失败状态。 5 月 15 日 17:52:38 ck21-erp01 systemd[1]:iptables.service 失败。
我打开了 80、443、8989 端口,但无法 Telnet 到任何端口
感谢任何信息 谢谢
【问题讨论】:
-
最近我用命令 iptables-save 消除了这个错误,但仍然无法 telnet 到打开的端口
标签: port redhat centos7 telnet iptables