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

Solution Verified - Updated -

Issue

  • 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.

Environment

  • Red Hat Enterprise Linux(RHEL) - All versions.
  • Iptables.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In