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 ?
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.
Block downloading of ".torrent" files and "application/x-bittorrent" content type.
Limit maximum concurrent connections. Bittorrent will connect hundreds of connections for better speed, so limit the maximum connections number can limit its downloading speed.
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.
If you want to block the torrent from being downloaded, then the following step should be performed:
#http_access deny CONNECT !SSL_ports
#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.