Tweak3D.Net
Save?
Not Registered Yet? Go here.
Xoxide Computer Mods
Join The Cult Tweakers Image Gallery Donate Search Today's Posts Mark Forums Read

Welcome to Tweak3D

This is an open forum about tech stuff, games, and cars. Sign-up here to join the discussion.

Reply
 
LinkBack (24) Thread Tools Display Modes
Old 09-04-2007, 03:04 PM Possible Fix for Comcast Torrent Blocking   24 links from elsewhere to this Post. Click to view. permalink #1
tweakmonkey's Avatar
tweakmonkey
Hi, I'm the mayor.
 
Jan 2005
Last Seen: Today
Location: Bay Area, CA
Posts: 4,204 (#14)
Thanked 19x in 11 posts

In a previous post, we talked about Comcast's efforts to block seeders to prevent torrents from functioning as intended. Here's the potential fix:
Quote:
Recently, Comcast has stopped the seeding of torrents.

Basically, what they're doing is telling your computer it needs to close it's TCP connection at a certain port (in this case, your torrent clients' port) via the RST TCP reset command.

Since they're using such basic methods to stop seeding, there's a simple way to stop them from stopping you. Although I have no fix for the Windows operating system, in Linux, it's a simple fix. Every modern Linux distribution has iptables, so all you have to do is set it up to block this RST command. This should also work in BSD systems, Mac OS X, or any system with iptables.

All you have to do is run the following command, with superuser privileges (sudo, fakeroot, a super user terminal, etc). The one thing you need to do, is change the word $port to whatever port your torrent client uses.
Run in your shell/terminal: iptables -A INPUT -p tcp --dport $port --tcp-flags RST RST -j DROP

Also, should you ever need to remove this, all we need to do is make that A (for Append) a D (for Delete). The resulting command would be:
Run in your shell/terminal: iptables -D INPUT -p tcp --dport $port --tcp-flags RST RST -j DROP

In addition, I believe that if you have a router running some variant of Linux (DD-WRT, Open-WRT, etc), this trick should work on that, since all we're doing is dropping RST commands.. All you should need to do is ssh or telnet into your router and run the command with the appropriate port, however, I haven't tested this, so do this with caution.

If you have Windows, well, you're SOL for now. Although, I expect a solution will reveal itself in the coming months.
Give it a whirl and let us know how it works if you're a Comcast user having issues with torrents.
Original Source, now dead


webmaster
Tweak3D.net

"She could be the first VPILF" - ShabazKillaX
tweakmonkey is online now   Reply With Quote
Yesterday, 05:30 PM   #2
 
 


Google is online (hide)  
Old 09-05-2007, 06:12 PM   permalink #2
Unregistered
Guest
 
Posts: n/a (#)

Im running ubuntu 7.04 and get this when i ran that.
sudo iptables -A INPUT -p tcp --dport $port --tcp-flags RST RST -j DROP
Password:
iptables v1.3.6: invalid port/service `--tcp-flags' specified
Try `iptables -h' or 'iptables --help' for more information.

.... what now
  Reply With Quote
Old 09-08-2007, 01:35 PM It won't work...   permalink #3
funchords
Junior Member
 
Sep 2007
Last Seen: 09-08-2007
Posts: 1 (#815)
Thanked 0x in 0 posts

Tests and Results-RSTs are set in both directions

Tests and Results-RSTs are set in both directions - dslreports.com

Comcast users should not modify their firewalls to drop RST packets as it is not an effective defense against the injected RST packets.
funchords is offline   Reply With Quote
Old 09-08-2007, 10:29 PM   permalink #4
Unregistered
Guest
 
Posts: n/a (#)

Can somebody help me get this working with OS X? Thanks.
  Reply With Quote
Old 09-09-2007, 08:41 PM   permalink #5
Unregistered
Guest
 
Posts: n/a (#)

very nice! worked for me...running fc6.

thanks!
  Reply With Quote
Old 09-20-2007, 08:53 PM   permalink #6
Unregistered
Guest
 
Posts: n/a (#)

Quote:
Originally Posted by Unregistered View Post
Can somebody help me get this working with OS X? Thanks.
I need help for OS X me too...
Could someone give us a reply??
Thanks in advance
  Reply With Quote
Old 10-13-2007, 07:56 PM   permalink #7
Unregistered
Guest
 
Posts: n/a (#)

Running Ubuntu---works great. Thank you very much!
  Reply With Quote
Old 10-21-2007, 05:04 PM Working with LinkSys DD-WRT   permalink #8
falk0069
Junior Member
 
Oct 2007
Last Seen: 10-22-2007
Posts: 2 (#618)
Thanked 0x in 0 posts

Im a Comcast customer and am starting to experience my seed connections getting dropped rapidly. I'm also currently running utorrent on a windows system; however since I'm using a Linksys WRT54G router which I loaded DD-WRT on, I am able to play with the firewall/router configurations directly on it using ssh

I've noticed that the "iptables -A INPUT ..." doesn't seem to do anything, however the "iptable -I FORWARD 7 ..." does. I believe because the linksys isn't receiving the packet but rather forwarding them. I also had to use the -I option so I can have it be higher in the chain. I didn't want to choose 1 because then to would have to check that rule every time a packet comes in; but it had to be before my actual torrent forwarded port rule (8th).

The full command I used was this:
iptables -I FORWARD 7 -p tcp --dport 43333 --tcp-flags RST RST -j DROP

note: I use port 43333 as my torrent port

I was able to verify that packet were being dropped by this command:
iptables -L -v

output:
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- br0 br0 anywhere anywhere
0 0 logdrop all -- any any anywhere anywhere state INVALID
0 0 TCPMSS tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN tcpmss match 1461:65535 TCPMSS set 1460
68529 22M lan2wan all -- br0 any anywhere anywhere
120K 59M ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT udp -- vlan1 any anywhere BASE-ADDRESS.MCAST.NET/4 udp
12 504 DROP tcp -- any any anywhere anywhere tcp dpt:43333 flags:RST/RST

This tells me that I've already dropped 12 RST packets

I then added that command to the Startup script which can be editted from within the DD-WRT web console (Administration -> Commands). I had to actually add a delay for it to take affect. I know it isn't elegant but this seemed to do the trick for me:
echo 'sleep 30; iptables -I FORWARD 7 -p tcp --dport 43333 --tcp-flags RST RST -j DROP' > /tmp/root/iptable.sh
chmod 755 /tmp/root/iptable.sh
/tmp/root/iptable.sh &

Also have my TCP/UDP Timeout setting set to 90 seconds just to make sure old connections don't stick around (Administration -> Management in the web console)

Thanks for posting this solution!
falk0069 is offline   Reply With Quote
Old 10-22-2007, 06:24 AM   permalink #9
mistawiskas's Avatar
mistawiskas
outside the box!
 
Jan 2005
Last Seen: Today
Location: Grants Pass, Oregon
Posts: 14,405 (#2)
Thanked 9x in 9 posts

Arrrrrrgh!
That'sa all ima gonna say Luigi.


Until now,never!before in Earth history, has mass extinction involved a choice.
Stewardship is not optional.

Get out of the box, then recycle it.
mistawiskas is offline   Reply With Quote
Old 10-22-2007, 04:59 PM   permalink #10
falk0069
Junior Member
 
Oct 2007
Last Seen: 10-22-2007
Posts: 2 (#618)
Thanked 0x in 0 posts

Well, I must say that my upload ratios have definitely improved after dropping the RST packets, but they are not back to normally. It is definitely true that the RST packets are sent in both directions, however, I'm finding that there are some connections now that don't drop that are outside the comcast network.

Many of the non-dropping connections are coming from Europe and Asia which I wonder if they have similar restrictions. I know the Great Firewall of China have been doing this for years, so that might explain my Asian connections. Hopefully if more people start doing this the better off the torrent community will be.

Also, I'm currently seeding 11 files and my current connection count was around 900 connections. I just dropped my TCP/UDP connection timeout to 45 seconds from 90 seconds and my currently connections dropped to 750, so not a huge difference.
falk0069 is offline   Reply With Quote
Old 10-22-2007, 06:00 PM   permalink #11
Justin3's Avatar
Justin3
Balls of Steel
 
Sep 2005
Last Seen: 10-03-2008
Location: Shelton, CT
Posts: 456 (#124)
Thanked 0x in 0 posts

Its comcastic!

I was a Dragon force fan before Guitar Hero..
Justin3 is offline   Reply With Quote
Old 12-21-2007, 01:59 AM   permalink #12
tweakmonkey's Avatar
tweakmonkey
Hi, I'm the mayor.
 
Jan 2005
Last Seen: Today
Location: Bay Area, CA
Posts: 4,204 (#14)
Thanked 19x in 11 posts

Bump in case anyone missed it the first time around.
tweakmonkey is online now   Reply With Quote
Old 07-12-2008, 06:05 PM   permalink #13
dertyz
Junior Member
 
Jul 2008
Last Seen: 07-28-2008
Posts: 1 (#907)
Thanked 0x in 0 posts

I want everyone who has read ANYWHERE that using Linux or Mac IP Tables to drop the forged packets with with the rst flag set won't help solve your peering problems to IGNORE what all the negative nellies are telling you!! I was a windows user on Comcast's network and until yesterday, my seeding capacity was ZERO...period...no seeding unless it was during the initial download. Yesterday I installed Ubuntu, dropped those bad, bad rst packets with the proper command and VOILA! I was seeding like crazy. So, if you wanna stick it to Comcast and everyone else using Sandvine - SWITCH TO LINUX OR MAC AND USE YOUR IP TABLES TO DROP THE FORGED RST PACKETS!!! It will fix your problem because now EVERYONE ELSE IS DROPPING THEIR PACKETS TOO!! So the packets get dropped from both sides and no rst is performed. JUST DO IT!! You'll be glad you did. I'll be happy to send you screen shots of two machines, side by side, one on windows and one on Linux...with the windows machine seeding to no one and the linux machine seeding like crazy. It really works! BELIEVE IT!
dertyz is offline   Reply With Quote
Reply

Login to reply. Sign-up here.


LinkBacks (?)
LinkBack to this Thread: http://www.tweak3d.net/forums/tech/possible-fix-comcast-torrent-blocking-28264
Posted By For Type Date
Slashdot | Beating Comcast's Sandvine On Linux With Iptables This thread Refback 06-29-2008 11:29 PM
Technology Liberation Front » Archive » Is Comcast discriminating against BitTorrent? This thread Refback 06-28-2008 12:37 AM
JC This thread Refback 06-25-2008 11:32 AM
forum.utorrent.com / General Speed Drop, ISP is Comcast, Tried forcing encryption, still sl This thread Refback 05-06-2008 06:51 PM
Technology Liberation Front » Archive » Comcast, Reset Packets, and Network Neutrality This thread Refback 04-16-2008 09:24 PM
lugosi7734's bookmarks on del.icio.us This thread Refback 03-20-2008 08:29 PM
Kaizoku Fansubs / Forums / I cannot download the torrent files! This thread Refback 03-11-2008 06:33 PM
Digg - Linux Fix for Comcast Torrent Blocking This thread Refback 12-21-2007 02:36 AM
Discover From Your Favorite Topic or Web Page: blocking This thread Refback 12-16-2007 10:48 AM
forum.utorrent.com / General Speed Drop, ISP is Comcast, Tried forcing encryption, still sl This thread Refback 12-15-2007 09:28 AM
Kaizoku Fansubs / Forums / I cannot download the torrent files! This thread Refback 12-08-2007 01:55 PM
Apple - Support - Discussions - Help with ipfw iptables script ... This thread Refback 11-21-2007 11:07 AM
Fixing tech - The FIX Protocol Organization > Technical Resources ... This thread Refback 11-19-2007 11:40 PM
Dear Comcast… « skirts and martinis This thread Pingback 11-14-2007 11:19 PM
fjltech's bookmarks on del.icio.us This thread Refback 11-03-2007 01:25 PM
The iSONEWS :: View topic - Comcast killed my Bittorrent This thread Refback 11-01-2007 09:03 AM
taylorlookabaugh's bookmarks on del.icio.us This thread Refback 10-23-2007 09:40 AM
Planet This thread Refback 10-22-2007 05:29 PM
TLF: Comcast, Reset Packets, and Network Neutrality This thread Refback 10-22-2007 05:04 PM
Digg - How To Bypass Comcast's BitTorrent Throttling This thread Refback 10-22-2007 06:05 AM
TLF: Is Comcast discriminating against BitTorrent? This thread Refback 10-20-2007 11:57 PM
The iSONEWS :: View topic - Comcast killed my Bittorrent This thread Refback 10-04-2007 08:06 PM
theCodeGirl's bookmarks tagged with "hack" on del.icio.us This thread Refback 10-01-2007 10:01 PM
[the] Code Girl (aka UnrulyGrrl) This thread Refback 09-14-2007 02:22 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fuck Comcast! thadood Off-Topic 5 08-20-2007 07:33 PM
Comcast has Redeemed Themselves Torx Off-Topic 24 01-30-2007 06:44 AM
NBA Street Homecourt - Shot Blocking Gameplay GameTrailers Game Videos 0 01-19-2007 07:32 PM
Comcast 8mb hafleystyles Off-Topic 15 01-22-2006 10:54 AM
Port Blocking With D-Link Router... SyK Tech 0 01-15-2006 09:56 AM


All times are GMT -7. The time now is 03:28 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0
©Tweak3D.Net 1998-2008Ad Management by RedTyger