LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-07-2013, 04:30 AM   #1
hhh123
Member
 
Registered: Jul 2009
Location: /
Distribution: centos
Posts: 47

Rep: Reputation: 1
torrent/magnet traffic


I want to monitor a torrent/magnet traffic going thru my squid and gateway. is there any way to monitor this kind of traffic ?
 
Old 11-08-2013, 02:27 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Torrents start by searching for peers using a certain port range, I think it's like 6881-6999. However they can negotiate sessions over TCP or UDP on other ports; thereby making it very difficult to follow them.

What is your intention here? To stop this, to protect against improper network usage, to avoid excessive use of your network by torrents, or to monitor activities in a proactive manner and determine which torrents are work related versus which are improper network use?

I don't think you can make that last determination if that's your intention. I do understand that torrent use is beneficial for people who need to download large data or release images; however as of late, with companies generally blocking peer to peer sessions many legal and acceptable large download servers now support other methods besides torrent so as to allow users to obtain information and releases without using torrent.

There really are two ways to identify the hosts using torrent. Trace on the ports which fit within the initial torrent negotiation ranges and this will identify the hosts using torrents. Hosts which are not configured nicely to restrict their network use will stand out as taking a great deal of bandwidth. And those hosts will also potentially have a great deal of peer to peer sessions, if you can detect those.

I believe if you block the initial torrent port ranges, then what will happen is users of torrent will not be able to establish sessions with peers and then be unable to move their P2P sessions to other ports beyond your scope of tracing and/or control.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow torrent traffic tech_soul8 Linux - Networking 5 08-28-2012 07:14 AM
[SOLVED] torrent client + magnet link under Slackware 12.2 igadoter Slackware 5 04-07-2012 08:27 AM
magnet link to torrent prudra Debian 1 03-10-2012 09:00 PM
LXer: Torrent Search - Torrent searching application for the Gnome desktop environment LXer Syndicated Linux News 0 08-18-2010 08:20 AM
Proxying download traffic in Transmission bit torrent client vockleya Linux - Software 2 01-25-2010 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration