Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am using linux (RHEL 5) server with few windows xp client machines ,

I would like to block torrent downloads at clients,

I am using squid 2.6 stable.

  • How can i do this by squid ?
  • Is there any other options for to do this ?
share|improve this question

4 Answers 4

up vote 3 down vote accepted

You can define a blacklist for different files. All you have to do is blacklist .torrent files.

But in reality you should have a decent firewall capable of blocking Bit Torrent ports... Any firewall will do this with a bit of configuration and tweaking.

If you really don't want a firewall, you could always use an IDS such as Snort to watch the traffic and notify you of any BT traffic.

share|improve this answer
    
This will block the download of torrent files, but not the download of torrent content (unless clients reach the internet only through squid, in which case bittorrent won't work at all). –  Anonymous Feb 22 '10 at 10:04
    
edited to mention such case –  Antoine Benkemoun Feb 22 '10 at 13:00
  1. Block downloading of ".torrent" files and "application/x-bittorrent" content type.

  2. Limit maximum concurrent connections. Bittorrent will connect hundreds of connections for better speed, so limit the maximum connections number can limit its downloading speed.

share|improve this answer

If you want to block the torrent from being downloaded, then the following step should be performed:

  1. Open terminal on the desktop of the RHEL5 Enterprise Server
  2. Run vi /etc/squid/squid.conf
  3. After the file opens, search for #http_access deny CONNECT !SSL_ports
  4. Remove the # in front of the line then the torrent became block, if you assign the "#" sign in front of the line then its started to download from the torrent.
share|improve this answer
    
Rajkumar for your kind information in squid 2.6 # Deny CONNECT to other than SSL ports http_access deny CONNECT !SSL_ports is bydefault uncommented but still user can download torrent. –  user70590 Feb 13 '11 at 14:24

squid is a caching proxy. But you can as Antoine suggested to block .torrent files. But this is quite useless.

What you need is a good firewall and only open up for business critical services.

share|improve this answer
    
Actually, Squid is a proxy server, that can do blacklisting, and caching, and reverse proxying too. –  Tom O'Connor Feb 13 '11 at 17:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.