Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to limit in iptables the max connect to each IP?

Discussion in 'Security' started by cesarlwh, May 15, 2011.

  1. cesarlwh

    cesarlwh Well-Known Member

    Joined:
    Sep 23, 2008
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    56
    How to limit in iptables the max connect to each IP?

    I need the rule and not to use CSF or other firewall..

    I have some attack with many connections a specific IP but the IP always changes, so do not I block him, the good would be to limit the connections that each IP can have on the server for instance for 5 connections.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. k-planethost

    k-planethost Well-Known Member

    Joined:
    Sep 22, 2009
    Messages:
    199
    Likes Received:
    9
    Trophy Points:
    68
    Location:
    Athens Greece
    as soon as i know Some protocols can be connection hungry, e.g. FTP, IMAPD and HTTP i dont think that 5 connections per ip should be a reasonable price
    if you observe that the attack come from specific countrys block the countrys from csf of course they can use a proxy but in this way is better from nothing
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice