iptables: Bad rule (does a matching rule exist in that chain?)

Solution Verified - Updated -

Issue

  • Running an iptables check command iptables -C -w 5 -W 100000 fails to find a rule which is present
  • Third-party container software fails with:
iptables: Bad rule (does a matching rule exist in that chain?).

Environment

  • Red Hat Enterprise Linux 8.4
  • iptables command backed by nftables
  • Third-party container management such as Docker CE or EE, Calico, Kubernetes, etc

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