Results 1 to 3 of 3

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

  1. #1
    Registered Member
    Join Date
    Sep 2008
    Posts
    61

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

    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. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel Access Level

    Root Administrator

    Default Re: How to limit in iptables the max connect to each IP?

    There's a tutorial for this at cyberciti site:

    Iptables Limits Connections Per IP
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered Member
    Join Date
    Sep 2009
    Location
    Athens Greece
    Posts
    199

    Default Re: How to limit in iptables the max connect to each IP?

    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

Similar Threads

  1. request ICMP Limit ! IPTABLES problem ?
    By ker in forum Security
    Replies: 1
    Last Post: 06-01-2010, 01:00 AM
  2. Way to remove max connection limit of 25
    By howrank in forum General Discussion
    Replies: 1
    Last Post: 10-05-2009, 02:35 PM
  3. Need to set max cron job limit
    By thewebhosting in forum General Discussion
    Replies: 1
    Last Post: 05-15-2008, 04:33 AM
  4. FTP max upload limit
    By kiwiguys in forum General Discussion
    Replies: 3
    Last Post: 05-17-2004, 12:06 PM
  5. How setup max 100 IP address connect per account?
    By hkewell in forum General Discussion
    Replies: 0
    Last Post: 01-02-2003, 06:29 AM
bargain