How to identify which rule is getting applied by iptables config when there are thousands of rules in play?

Solution Verified - Updated -

Issue

We are using a complex and long set of iptables rules and we would like to identify which rule is getting matched from a specific traffic.

Environment

RHEL6
iptables enabled

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