How to use Torrent over Tor | How can we bypass security policies to use Torrent

Hello friends..

Everyone knows how important the torrent network is. And when there are restrictions in the network like proxy servers, url filtering and port blocking, we have to use some unconventional means to make things work.

Here I have shown a method which will surely make the torrent work via Tor, as long as you are able to surf web. But beware that here it says that torrent over tor is not a good idea from security point of view. So use it at your own risk. But I think as long as you are not concerned about your anonymity and you have good security config in your machine, you are good to go.

Tor uses the principle: “As long as there is some traffic allowed, all traffic can be passed.” It means as long as even simple web browsing is allowed you can tunnel other types of traffic through this web browsing service.

You would need:

  1. Tor. Either installed version or portable version. If you are new to tor, I suggest portable version.
  2. Privoxy. This creates a HTTP/HTTPS proxy server on your local machine.
  3. A torrent client. I use uTorrent.
  4. And a list of http torrent trackers. You can use this list and paste it directly in torrent client.

Step 1: Setting up Tor.

There are a lot of tutorials on how to configure Tor. If you have tor installed and working, it will already allow you to visit websites which are otherwise blocked. In portable version there is a firefox derivative Tor Browser through which you can visit websites anonymously without any censorship. You can read more about Tor here.

Configure your connection settings in tor according to your network:


View your proxy config in your default browser and use it here. If your proxy server uses authentication, make sure you insert username and password. Get new bridges from here. You should check tor logs regularly to see if your bridges work. If they don’t then replace them with new bridges. Preferably use ones with port 443, if your are using proxy server to connect to internet.

Now start Tor. Tor opens a SOCKS5 proxy on a port in your machine. If you are using portable version, that port is at Else it is at 9050.

We can use this port directly in torrent but it gives a lot of warnings and erros in tor logs.

Check if you can browse through Tor before you move to next step. Use to check if you are really connected through Tor.

Step 2: Setting up Privoxy.

After installing privoxy edit the file config.txt know as “Main configuration” which in the install directory.

Find the following lines and uncomment them(Remove the ‘#’ from the start of line). If any of these lines are not present then add them at the end of config file.

listen-address  localhost:8118
forward-socks5t   /      .

The dot at the end of last line is important. Again the port number is 9050 if you dont use portable version of tor. Read the help in the config file if more tweaks are to be made.

Now start privoxy after saving this file. You will have an HTTP proxy on your localhost.

You can check if privoxy works by using HTTP proxy server in your browser and see if it can connect to internet. Again use to check if you are really passing through Tor.

Step 3: Setting up Torrent client

Now its time to configure proxy settings in torrent client.


Now add some torrent file to download and add the HTTP trackers mentioned previously as UDP trackers dont work over a proxy server. Note every 2 trackers should be separated by 1 blank line.


Now your torrent would have started downloading 🙂

Leave your comments and feedback below and share the page with your friends and most important: Seed your torrents 😉


Posted on July 29, 2013, in Internet and tagged , , , , , , , , , , , , , , . Bookmark the permalink. 23 Comments.

  1. Nice one bro.. keep it up….(y)

  2. agree with Nauman, keep it up!!!

  3. I get a “HTTP ERROR 407” on the trackers in utorrent. Tor is working- how do I check privoxy is correctly configured? thanks!

  4. you are God. Thanks mate. (y).

  5. you could do a video boss man!

  6. Fatal error: can’t bind to localhost:8118: There may be another Privoxy or some other proxy running on port 8118

  7. Amazing man keep it up.

  8. When you want to take the connection from the wireless network then you will think the advantages and disadvantages of the network connection if you know that I have a lot positive aspect then you can connect the wireless connection.

  9. Amazing! Ӏts reɑlly amazing paragraph, I Һave ցot muchh clear idea on the topic of from this piece ߋf writing.

  10. TOR browser is well setup but I have problems with privoxy. I always get:

    Privoxy was unable to socks5t-forward your request through socks5 server unreachable

    I added the lines in the config file of privoxy using the port 9050 as I have the TOR installed version. I tried using HTTP or HTTPS. I am behind a router, is that a problem? or what else could be wrong?

    • Another reader was behind a router, and he had a problem, but this can be resolved by port forwarding. I am unaware as of which ports have to be forwarded, since I have not tested the setup behind a router. But will test soon.

  11. Even the “Excellent” trackers are not working in my system. “Proxy Connect error : offline” arises while the tracker is trying to update in BitTorrent.

  12. Great. I use now qbitorrent instead of utorrent. (for those who don’t like advertising 😉 )

  13. I like the valuable info yyou suppoly to your articles.
    I will bookmark your weblog and take a look at again here regularly.
    I am relatively shre I will be told plenty of new stuff
    proper here! Good luck for tthe following!

  14. thanks a lot! but the speed is somehow only coming near 50-60 kbps even though the download speed is around 500kbps-1mbps in my college..

  15. i follow the steps, but i have this message:
    Server Port Reachability Test Failed
    – Your relay’s server port is not reachable by other Tor clients.
    This can happen if you are behind a router or firewall that requires you to set up port forwarding.
    If x.y.z.k:443 is not your correct IP address and server port, please check your relay’s configuration.
    any idea?

    • I am unaware of any port forwarding needed for this setup, but there are a lot of port forwarding tutorials on internet, since its a very common need if one needs accept incoming connections behind a router.

  16. A very good tutorial. I have used it, and it works quite well.
    A question : is there a way to make this work for UDP trackers, since they are (by far) the more common?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: