Go Back   AnandTech Forums > Hardware and Technology > Networking

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 04-04-2007, 01:58 PM   #1
TheGizmo
Diamond Member
 
Join Date: Dec 2000
Posts: 3,627
Default How to block P2P/Bittorrent from my router (D-Link)

I want to block all p2p bittorrent, etc stuff on my network because its hogging huge amounts of bandwidth. i'd like to do this from my d-link di-624 router, does anyone know where i should even start. a link to a help doc would even be fine. i'm up for reading and learning to do this myself, but i don't really know where to start. thanks
__________________
Heatware | AIM: th3g1z
TheGizmo is offline   Reply With Quote
Old 04-04-2007, 04:07 PM   #2
bruceb
Diamond Member
 
bruceb's Avatar
 
Join Date: Aug 2004
Location: Wayne, New Jersey
Posts: 7,176
Default How to block P2P/Bittorrent from my router (D-Link)

Bit Torrent starts at Port 6881 to Port 6999 .. you would need to block that
entire port range to stop all access thru bit torrent clients

This link shows how to Open specific ports, but you would Block them
from the same menu .. just input the Port Range and click on DENY

http://support.dlink.com/faq/view.asp?p...I-624S%20/%20DI-614+_revB%20/%20DI-784

Hope this helps
bruceb is offline   Reply With Quote
Old 04-04-2007, 10:49 PM   #3
Loop2kil
Platinum Member
 
Join Date: Mar 2004
Location: No Where
Posts: 2,300
Default How to block P2P/Bittorrent from my router (D-Link)

The way Bruceb said sounds the easiest with what you are doing but if you ever want to try something a little more robust...try something like Ipcop with url filter, no one in my house can pull up anything p2p, pr0n and whatever else I decide to ban. All you will need is an older pc around 800 mhz with 2 NICS and a switch if you have more than 1 PC.

http://ipcop.org/

you will need to do some reading and getting the add-ons (like URLfilter and Copfilter) installed is not for the faint of heart. Took me a while but I finally got it all setup.
Loop2kil is offline   Reply With Quote
Old 04-04-2007, 10:57 PM   #4
nweaver
Diamond Member
 
Join Date: Jan 2001
Posts: 6,813
Default How to block P2P/Bittorrent from my router (D-Link)

Quote:
Originally posted by: Loop2kil
The way Bruceb said sounds the easiest with what you are doing but if you ever want to try something a little more robust...try something like Ipcop with url filter, no one in my house can pull up anything p2p, pr0n and whatever else you decide to ban. All you will need is an older pc around 800 mhz with 2 NICS and a switch if you have more than 1 PC.

http://ipcop.org/

you will need to do some reading and getting the add-ons (like URLfilter and Copfilter) installed is not for the faint of heart. Took me a while but I finally got it all setup.
I played with IP Cop, and found Monowalls traffic shaping to be easier. Sure, you can P2P, but you are going to do it over 33.3 modem speeds!
nweaver is offline   Reply With Quote
Old 04-04-2007, 11:13 PM   #5
Loop2kil
Platinum Member
 
Join Date: Mar 2004
Location: No Where
Posts: 2,300
Default How to block P2P/Bittorrent from my router (D-Link)

Haven't messed to much with the traffic shaping yet...I had heard about ipcop first so that's what started with initially and now I'm comfortable with it. Though i have heard good things about Monowall as well.

I love the Denial page that pops up on their screen when they go some where that's been banned

Loop2kil is offline   Reply With Quote
Old 04-05-2007, 06:24 AM   #6
robmurphy
Senior Member
 
Join Date: Feb 2007
Posts: 376
Default How to block P2P/Bittorrent from my router (D-Link)

Just remeber the user can configure P2P to use different port numbers. I use P2P at home, and do not use the standard port numbers as many ISPs in the UK block these.

Rob Murphy
robmurphy is offline   Reply With Quote
Old 04-05-2007, 08:15 AM   #7
vorgusa
Senior Member
 
Join Date: Apr 2005
Posts: 244
Default How to block P2P/Bittorrent from my router (D-Link)

actually matters the program. My bittorrent came with a random port in the 4000 range. If you use something like IPCop or a Sniffer you could probably find the ports people are using and block them.
vorgusa is offline   Reply With Quote
Old 04-05-2007, 08:39 AM   #8
jlbenedict
Banned
 
Join Date: Jul 2005
Posts: 3,724
Default How to block P2P/Bittorrent from my router (D-Link)

Quote:
Originally posted by: vorgusa
actually matters the program. My bittorrent came with a random port in the 4000 range. If you use something like IPCop or a Sniffer you could probably find the ports people are using and block them.



As Robmurphy posted above you.. the port configuration on the actual program can be changed.

So, what are you to do? Run a sniffer program every day to determine if the user hasn't changed the configuration to one of any of the 65535 ports that could possibly be used?

You'll be playing a cat & mouse game every day if you have a saavy user on the network.

jlbenedict is offline   Reply With Quote
Old 04-05-2007, 08:44 AM   #9
vorgusa
Senior Member
 
Join Date: Apr 2005
Posts: 244
Default How to block P2P/Bittorrent from my router (D-Link)

The point I was trying to say is that a user that does not know what they are doing can use a program like UTorrent that picks a random port on install and would not be in the regular Bittorrent port range. If you find the port once and the user does not know how to change it or what is going on you will block them until they reinstall the program or pick another program.
vorgusa is offline   Reply With Quote
Old 04-05-2007, 09:08 AM   #10
robmurphy
Senior Member
 
Join Date: Feb 2007
Posts: 376
Default How to block P2P/Bittorrent from my router (D-Link)

Maybe a word with the worst offenders would be better. Bittorent is being used for legitimate downloads as well these days. Many Linux distributions use bittorrent, and Warner Bros use or will use bittorrent to distribute films and programs.

I finaly got NTL/Virginmedia (in the UK) to change my cable modem. The old one would crash if downloading several torrents. The new one is fine. Downloading torrents also slowed the internet connection down with the old cable modem but the new one is fine. If the problem you are having is that the P2P is slowing the rest on the internet connection then maybe the router or modem cannot cope. Replacing it would allow the P2P without having any adverse effect on the normal internet access.

If you have an old spare PC then you could use it to impose some bandwidth limit for the users. If someone ingores the warning about over use then they get 10- 20Kbit browsing for a while. Its possible to browse the web at this speed, just painful.

Rob MUrphy
robmurphy is offline   Reply With Quote
Old 04-05-2007, 02:08 PM   #11
nweaver
Diamond Member
 
Join Date: Jan 2001
Posts: 6,813
Default How to block P2P/Bittorrent from my router (D-Link)

You can throttle based on ports/ranges OR on IP. If you start using P2P (and I can find that in about 30 seconds on my network) then I will not throttle you via ports, I'm gonna slap an IP based throttle on you.
nweaver is offline   Reply With Quote
Old 04-07-2007, 12:29 PM   #12
TheGizmo
Diamond Member
 
Join Date: Dec 2000
Posts: 3,627
Default How to block P2P/Bittorrent from my router (D-Link)

Quote:
Originally posted by: nweaver
You can throttle based on ports/ranges OR on IP. If you start using P2P (and I can find that in about 30 seconds on my network) then I will not throttle you via ports, I'm gonna slap an IP based throttle on you.
so this is done via IP Cop as well or through the router?

P.S. Thanks for all the ideas everyone
__________________
Heatware | AIM: th3g1z
TheGizmo is offline   Reply With Quote
Old 04-07-2007, 01:49 PM   #13
Loop2kil
Platinum Member
 
Join Date: Mar 2004
Location: No Where
Posts: 2,300
Default How to block P2P/Bittorrent from my router (D-Link)

Quote:
Originally posted by: TheGizmo
Quote:
Originally posted by: nweaver
You can throttle based on ports/ranges OR on IP. If you start using P2P (and I can find that in about 30 seconds on my network) then I will not throttle you via ports, I'm gonna slap an IP based throttle on you.
so this is done via IP Cop as well or through the router?

P.S. Thanks for all the ideas everyone
thru ipcop
Loop2kil is offline   Reply With Quote
Old 04-07-2007, 03:16 PM   #14
Akumasama
Junior Member
 
Join Date: Apr 2007
Posts: 3
Default How to block P2P/Bittorrent from my router (D-Link)

Wow talk about luck... I was googling around to find informations on how to lock P2P software and I found this thread, not to mention I too have a D-Link DI-624

This is my situation. While I live in my own apartment and I have my mini-LAN (PC + game consoles), I share my internet connection through wi-fi to the apartment on the floor above, where my brother and father live.
My brother only has a notebook and an Xbox360, my father has a PC. Problem is my father started using BitTorrent and Emule, someone else installed those softwares on his PC (my father hardly knows how to create a folder on Windows...). Originally I gave him the ports because it was agreed he would have turned on those programs only when I'm not home. Problem is... he started doing it even when I'm home, and not telling me of course. Since I'm tired to always go upstairs to check if he has eMule or BitTorrent turned on, I decided I want to lock ports.
No big deal for eMule, it uses specific ports, I just changed them and it won't work anymore.
But what about BitTorrent? I spent many hours digging inside the program's configuration options, but I couldn't find ports anywhere. It doesn't need ports? How can I know which ports it uses?

I wouldn't even mind to lock EVERYTHING on my father's PC IP (I don't have DHCP active, so every PC in my LAN has a fix IP, luckily) aside from HTTP, WindowsUpdate and POP3/SMTP Email.


The solution of using another PC installing IP Cop is nice, but takes too much time and I don't really have time/space to put up another PC, and keep it turned on 24/7.

Suggestions?
Akumasama is offline   Reply With Quote
Old 04-08-2007, 10:47 AM   #15
vorgusa
Senior Member
 
Join Date: Apr 2005
Posts: 244
Default How to block P2P/Bittorrent from my router (D-Link)

Quote:
Bit Torrent starts at Port 6881 to Port 6999 .. you would need to block that
Bruceb

there are the usual ports for bittorrent
vorgusa is offline   Reply With Quote
Old 04-08-2007, 04:03 PM   #16
Akumasama
Junior Member
 
Join Date: Apr 2007
Posts: 3
Default How to block P2P/Bittorrent from my router (D-Link)

yes that's what I read, but then again someone posted that Bittorrent sometiemes used port 4000?

So I guess there is no way to tell which ports it's going to use? It probably depends on which Torrent software is used... maybe in the website of the authors of that specific version I can find exact informations on the ports used, what do you guys think? Or am I just being a self-illuded fool?
Akumasama is offline   Reply With Quote
Old 04-09-2007, 02:08 PM   #17
nweaver
Diamond Member
 
Join Date: Jan 2001
Posts: 6,813
Default How to block P2P/Bittorrent from my router (D-Link)

Quote:
Originally posted by: Akumasama
yes that's what I read, but then again someone posted that Bittorrent sometiemes used port 4000?

So I guess there is no way to tell which ports it's going to use? It probably depends on which Torrent software is used... maybe in the website of the authors of that specific version I can find exact informations on the ports used, what do you guys think? Or am I just being a self-illuded fool?
I help a small WISP. We run NTOP to catch the p2p folks (not using p2p is in the sign up contract) and then either cut them off, or (we are slowly moving this way) shape their traffic. It's a shared system, so one user can wipe out half our subs.
nweaver is offline   Reply With Quote
Old 04-10-2007, 08:52 AM   #18
robmurphy
Senior Member
 
Join Date: Feb 2007
Posts: 376
Default How to block P2P/Bittorrent from my router (D-Link)

Depends on how savvy the person who installs bittorrent is.I use uTorrent and it can use any unused ports. You would have to lock down all unused ports on the router.

It would seem that a linux pc would be the best bet. .

Rob Murphy
robmurphy is offline   Reply With Quote
Old 04-11-2007, 06:01 AM   #19
Akumasama
Junior Member
 
Join Date: Apr 2007
Posts: 3
Default How to block P2P/Bittorrent from my router (D-Link)

yes, indeed he's using uTorrent 1.6.1 on that PC, then I'm fuc*ed -_-

Which ports does HTTP navigation use? What if I lock all UDP and TCP ports except the ones needed by HTTP?
Akumasama is offline   Reply With Quote
Old 04-11-2007, 09:24 AM   #20
RiverDog
Senior Member
 
Join Date: Mar 2007
Posts: 408
Default How to block P2P/Bittorrent from my router (D-Link)

Most of the torrent clients allow uou to set any port that you want. The default ports are just that, defaults.
RiverDog is offline   Reply With Quote
Old 04-11-2007, 09:26 AM   #21
RiverDog
Senior Member
 
Join Date: Mar 2007
Posts: 408
Default How to block P2P/Bittorrent from my router (D-Link)

you could install vnc and just take a look at what's running if your network seems sluggish.
RiverDog is offline   Reply With Quote
Old 04-11-2007, 05:44 PM   #22
kami333
Diamond Member
 
Join Date: Dec 2001
Posts: 5,110
Default How to block P2P/Bittorrent from my router (D-Link)

Quote:
Originally posted by: Akumasama
yes, indeed he's using uTorrent 1.6.1 on that PC, then I'm fuc*ed -_-

Which ports does HTTP navigation use? What if I lock all UDP and TCP ports except the ones needed by HTTP?
You could always just configure the scheduler.

I use Azuerus but I believe the uTorrent scheduler is pretty similar, just have both the download and upload throttled down to 5kb or whatever in the morning and evenings, and let it run loose from say 1am to 6am or whatever times you wouldn't be home and using a computer. Works pretty well for me, just set and forget.
kami333 is offline   Reply With Quote
Old 02-10-2008, 06:18 AM   #23
NotaScooby
Junior Member
 
Join Date: Feb 2008
Posts: 1
Default How to block P2P/Bittorrent from my router (D-Link)

Sorry for being a complete simpleton. Got a similar problem with a flatmate hogging bandwidth with emule. I have a Lynksys WAG200G router. I dont mind him using anything else but how can I block emule, HELP!!!!
NotaScooby is offline   Reply With Quote
Old 02-17-2008, 02:02 PM   #24
waffleironhead
Diamond Member
 
waffleironhead's Avatar
 
Join Date: Aug 2005
Posts: 4,995
Default How to block P2P/Bittorrent from my router (D-Link)

I thought about this for a bit and wondered if the easiest way to block the p2p traffic would be to block the tracking sites. I went into the block sites section of my netgear wgr614 and blocked all of the tracker sites i could find. Seems to have worked so far.
__________________
RIP Amaroque
waffleironhead is offline   Reply With Quote
Old 02-19-2008, 08:39 AM   #25
Kelemvor
Lifer
 
Kelemvor's Avatar
 
Join Date: May 2002
Posts: 16,733
Default How to block P2P/Bittorrent from my router (D-Link)

You could take the business approach which is the exact opposite of what people here mostly post. Instead of trying to figure out which ports to block.. Block them all and just open up the ones you know you need... 80, maybe the 21-23 range if you use that, etc.
__________________
Take It Outside!!
Kelemvor is offline   Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT -5. The time now is 05:09 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.