Linux – How to block torrent downloads by squid

bittorrentblocklinuxrhel5squid

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 ?

Best Answer

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.