limit connections per user

Discussion in 'Networking Issues' started by zyxwvutsr, Jun 29, 2008.

  1. zyxwvutsr

    zyxwvutsr Guest

    I want to limit the number of connections (regardless of whether it's tcp,udp,...) to 250 per user (unrealistic number?) on my wrt54gl router w/tomato 1.19.

    would this script work? is the "--syn" necessary?
    iptables -I FORWARD --syn -m iprange --src-range 192.168.2.100-192.168.2.250 -m connlimit --connlimit-above 250 -j DROP

    Thanks in advance for any advice you guys can give.
     
  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