1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

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

  1. cesarlwh

    cesarlwh Member

    Joined:
    Sep 23, 2008
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    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 Active Member
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,621
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
  3. k-planethost

    k-planethost Member

    Joined:
    Sep 22, 2009
    Messages:
    199
    Likes Received:
    1
    Trophy Points:
    16
    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
     

Share This Page