Connection Soft Limit

Discussion in 'Install/Configuration' started by kuts, Sep 16, 2008.

  1. kuts

    kuts New Member

    Is the connection we're talking about here the value of

    netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
  2. mistwang

    mistwang LiteSpeed Staff

    No, you need to count connections in "ESTABLISHED" state only.
  3. kuts

    kuts New Member

    I'm trying to put a limit on the Soft and Hard connections but I don't want to ban legitimate connections.

    What's the safe value to put in the soft and hard?
  4. mistwang

    mistwang LiteSpeed Staff

    Soft limit should be 15-20, hard limit around 30.
    FireFox 3 is known to use up to 20 concurrent connections.
  5. kuts

    kuts New Member

    How do I know if LS blocked some legitimate connections after I've set these values? So I can increase the limit just in case.
  6. mistwang

    mistwang LiteSpeed Staff

    error.log will log IPs being blocked. You can check that IP against access log what url has been accessed to determine it is an attacker or not. And usually, an attacking IP will be banned again immeditely after previous ban being lift.

Share This Page