I'm using DD-WRT on my linksys router.

I want to limit each user on my network to 200 connections at any given time. Does anyone know the rules I enter the firewall in DD-WRT admit panel.

I tried the following with no luck:

iptables -I FORWARD -s -d 192.168.1.0/24 -p tcp -m connlimit --connlimit-above 150 -j DROP

iptables -I FORWARD -s -d 192.168.1.0/24 -p udp -m connlimit --connlimit-above 50 -j DROP
link|improve this question
1  
I think that ipt_connlimit.o in included in the commercial version of DD-WRT so these lines basicly don't do anything. – wqw Apr 11 '11 at 13:42
feedback

migrated from stackoverflow.com Sep 24 '10 at 8:05

This question came from our site for professional and enthusiast programmers.

1 Answer

Use the DD-WRT Script generator http://www.icpnet.pl/~robsonn/generator.zip

just follow the instruction in the software, it will generate the firewall script that you can copy and paste into DD-WRT firewall script.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown