0

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 ?

4 Answers 4

3

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.

2
  • 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, 2010 at 10:04
  • edited to mention such case Feb 22, 2010 at 13:00
1
  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.

0

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.

1
  • Actually, Squid is a proxy server, that can do blacklisting, and caching, and reverse proxying too. Feb 13, 2011 at 17:50
0

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.
1
  • 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, 2011 at 14:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .