4

As per the network policy, we have to block all torrent traffic from the network. To do this, I used to block all ports above 1024 on my firewall/proxy devices. But due to this, many other applications which use non-standard ports are not able to function, especially mobile applications, and users are complaining because of this.

Is there an effective way of blocking torrents on my network?
A minimum number of ports, or few specific ports, or application level filtering?

We have Cisco Iron Port Security and Cisco ASA 5500 Firewall devices.

15

You have a number of ways to restrict torrents:

  • Blocking ports: this doesn't work, because p2p traffic can use pretty much any port (even ones below 1024)
  • Deep inspection: looking at traffic and blocking based on type can help you a lot, however encrypted traffic all looks alike
  • Destination filtering: this may also help a bit, but you'd have to maintain a large blacklist
  • Volume: if a user is downloading/uploading large amounts of traffic then investigate

  • Controlling the applications installed on the computers on your network through Group Policy or a real world policy. Disallow all p2p applications, and if anyone breaches the policy don't let them use the network/fire them/fine them/whatever

  • Tracking Volume by user + a baseball bat is usually your best bet ... I have also seen destination filtering with a whitelist with exceptions for specific users be quite effective. Controlling applications can be difficult to enforce (users can just boot from usb linux and either give themselves root or run the torrent from bootable linux) – CaffeineAddiction Aug 13 '16 at 23:31
6

BitTorrent can run on any port, and can be wrapped inside SSL, so blocking by ports or traffic data isn't going to get you anywhere.

My suggestion would be to block HTTP traffic on any port which matches the tracker announce protocol, as per the specification. This won't work if the tracker is running on HTTPS, but most don't. It also won't prevent DHT from working, but that's unlikely to matter too much.

Additionally, you can monitor traffic to see if large amounts of data are being transferred to a single user, and take action based upon that.

My opinion is that this isn't a technical issue - it's a policy issue. Make all your users sign a usage policy that explicitly bans the use of file-sharing networks and systems, including BitTorrent, and ensure that appropriate punishments can be enforced should people violate that policy.

  • 2
    Torrenting with DHT only is easily possible, and trackers aren't limited to a specific port. – CodesInChaos Sep 10 '13 at 12:16
  • I agree that torrent can run on any port, but i suppose that only applies to Outgoing ports, not incoming ports. So can we do something considering that? – Adi Sep 10 '13 at 12:19
  • 1
    Nope - any port @Adi – Rory Alsop Sep 10 '13 at 12:31
  • 2
    Also bear in mind that some people use bittorrent for legitimate business purposes like downloading linux distros and other large bricks of software. – Sammitch Sep 10 '13 at 22:42
0

I would recommend u block alle UDP-Ports 1-65535, also all TCP-Ports except one which brings you further to your squid-proxy running with filters and ACLs to undertake more filtering options. uTorrent wont have a chance to connect!

  • I'm not sure this adds any more than the other answers provided 2 years ago. – schroeder Jun 14 '15 at 17:34
-1

The best solution could be to use Kerio Control / firewall. It has an option to block torrents, called P2P Eliminator. Note that you'll need a server with 2 NICs.

Below a wiring diagram:

Internet link....NiC 01[ Server with Kerio Control ]Nic 02....Ethernet cable to the switch
-2

The most effective way is to install a Unified threat management box or a Next generation firewall. These boxes are capable of doing a layer 7 inspection and can identify the applications and users. To get a taste of what it is, try playing with the free Sophos UTM available here.

  • A comment will be helpfull from down voters. – AdnanG Feb 23 at 15:38
-2

As mentioned in other answers to this post, torrent is almost impossible to block effectively. Effective policies on its usage can help. Also, you may not need to block it - just allocate a very,very minuscule bandwidth to torrents so that a download that would normally takes an hour would be downloaded in a year to ∞

  • 3
    Torrent can use any ports, how can you define a filter rule which data packet is a torrent and which is not? – peterh Aug 19 '18 at 4:08
  • @peterh what about protocol inspection? You don't need ports for that. – schroeder Aug 19 '18 at 8:34
  • @schroeder I am not sure in the details but as far I know, torrent is also encrypted which typically hardens protocol inspection. – peterh Aug 19 '18 at 8:40
  • @peterh agreed, but I seem to remember perimeter filters being able to use inspection to determine torrent traffic. – schroeder Aug 19 '18 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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