How to write an iptables rule for resctricting specific number of connections for an IP in RHEL ?

Solution Verified - Updated -


  • To restrict incoming session from the firewall so that no connection more than the specified value go through the firewall.
  • How to restrict the number of connections for certain IP address using iptables.
  • Is there any way to restrict number of parallel connection per IP address using iptables.


  • Red Hat Enterprise Linux(RHEL) - All versions.
  • 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