Translated message

A translation of this page exists in English.

为什么在系统重启或运行 'iptables -L' 命令后,停止的 iptables 服务再次启动了?

Solution In Progress - Updated -

Issue

  • 停止服务后,service iptables status 的输出显示为 stopped(Firewall is not running),但当运行 iptables -L 时,它将显示 INPUT、FORWARD 和 OUTPUT 链的内容的一些输出。现在,ervice iptables status 将显示与 iptables -L 同样的输出(而不是 Firewall is not running)。
[root@test ~]# iptables -L
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         

[root@test ~]#
  • 为什么显示上面的输出,而不是只显示防火墙已停止或服务没有运行?
  • 可以看到 iptable 服务已在几个 topsweb 服务器上启动,它们之前处于 stopped 状态。
    能否帮助我们找出服务是否已自动重启?

Environment

  • Red Hat Enterprise Linux (任何版本)
  • iptables

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content