Jump to content

Internet connection completely dies


Recommended Posts

Now, ever since I started using bittorrent after switching from DC++ years ago, there was something that I cannot figure out until a few years ago.

Back then I had a Netgear 4-port wired router and an AMD Athlon XP 2600+ PC.

What I could not understand was why is it that everytime I would download from uTorrent that my internet connection dies completely then I had to restart my computer and router to restore my internet connection.

Fast forward a few years after that, I have a new computer and new router-- AMD X2 5000+ and a Buffalo WHR-G54S router.

Now, at this time, I didn't realize there was DD-WRT custom firmware. Using uTorrent again, I get disconnected again at random whether in the middle of AIM/MSN or in the middle of an MMO or just browsing websites. The original WHR-G54S firmware allowed me to check the logs, something that the Netgear didn't have.

It showed that at the time of the disconnections I had something called TCP-SYN flood attacks.

Shortly thereafter I switched to DD-WRT firmware.

Now, it's been several years since then and I'm using DD-WRT v24 and I still get TCP-SYN flood attacks or similar.

I've used the following commands from the DD-WRT forums:

iptables -N rate_limit
iptables -F rate_limit
iptables -A rate_limit -p tcp --dport 22 -m limit --limit 3/min --limit-burst 3 -j ACCEPT
iptables -A rate_limit -p udp --dport 1194 -m limit --limit 3/min --limit-burst 3 -j ACCEPT
iptables -A rate_limit -p ICMP --icmp-type echo-request -m limit --limit 3/sec -j ACCEPT
iptables -A rate_limit -p <protocol> --dport <port> -m limit --limit <x/sec/min/hr> --limit-burst X -j ACCEPT
iptables -A rate_limit -p ! ICMP -j LOG --log-prefix " Connection dropped!! "
iptables -A rate_limit -p tcp -j REJECT --reject-with tcp-reset
iptables -A rate_limit -p udp -j REJECT --reject-with icmp-port-unreachable
iptables -A rate_limit -j DROP
iptables -I INPUT -p ICMP --icmp-type echo-request -j rate_limit
iptables -I INPUT -p tcp --dport 22 -m state --state NEW -j rate_limit
iptables -I INPUT -p udp --dport 1194 -m state --state NEW -j rate_limit
iptables -I INPUT -p <protocol> --dport <port> -m state --state NEW -j rate_limit

Now, my question is this:

How can I use uTorrent and configure it so those that disconnect my connection don't connect to me at all.

The above commands in the DD-WRT firmware works to a point then doesn't work after that for a while unless I restart the router.

Any solutions?

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...