Friday, April 18, 2008

A Hardware based solution to comcast & sandvine p2p throttling

1-You will need one of the following routers:
DD-WRT Supported Hardware

2- Install dd-wrt on your router of choice i went with a linksys wrt-54gs:
Rather lengthy install instructions

3-Hopefully the install went ok and you didn't brick your router. At this point setup port forwarding (Applications and Gaming) and static dhcp (Administration -> Services).

4-Turn on telnet (bottom of the services tab).

5-With your favorite telnet client telnet to the router's ip (default:192.168.1.1)
See this if you're confused about telnet.

6-Ok now its time to get rid of those pesky RST packets. I looked to this tutorial for help. Anyways you only need two commands:
iptables -A INPUT -p tcp --dport[15500:15550] --tcp-flags RST RST -j DROP
iptbales -A INPUT -p udp --dport[15500:15550] --udp-flags RST RST -j DROP

(actually i would assume you only need the upd one since bt uses datagram)

reboot your router and you should be off and running!
-Alex

No comments:

All content (c) Alex Smith 2007-2009