Ok guys, I am back with my daily ‘durty’ trick. Today we are going to download torrents inside a LAN where access to outside world is only through an HTTP proxy (most common scenario).
My next post is going to be about how to optimize your torrents downloads. So this post seemed logical as we moved form SSH to torrents. In our previous posts, we created a normal forward tunnel and a reverse tunnel and used them to unblock websites and to create a listening port inside LAN. This post revolves around dynamic tunnel. (A socks PROXY)
Trivia : Did you know Opera has an in-built torrent client.
Torrents is my preferred means of downloads. Torrents are a best helpful means for small websites to distribute big files. Everyone knows bandwidth costs money. Many open source Distros primarily rely upon torrents to be distributed. I believe its a perfect “Give and Take” model and is the future of distribution. Anyone can setup a tracker service and manage torrent distribution (unlike Gnutella and eDonkey).
Again, our aim is not to actually somehow download torrents at our workplaces. This would be illegal at most places. All we are discussing here is again power of SSH. Everything said/done here is for knowledge purpose.
OK. Lets download some torrents. Again, this post assumes that you have already set up your infrastructure from my previous post. This means, your are listening well on port 443. Please remember that this is our port of choice as we are doing all communication over HTTP proxy. Its a simple TIT for TAT solution.
OK, this one is pretty simple. All you have to do is, add one more tunnel to your existing session putty session. Create this tunnel as follows:
Source port: 23456 (Any, Your favorite number?)
Type = Dynamic. ( Note that last two times we created Local and Remote tunnels )

Save session and open connection. We have just created a dynamic Socks proxy at port 23456.
Now open your preferred torrent client. I normally use
- Azureus(Anywhere with lot of RAM,Overall best)
- Deluge(Gnome, CPU issues)
- Ktorrent(KDE)
- uTorrent (Anywhere, Best client for less RAM).
Now open your client options and browse to connections settings and specify a socks proxy to be used. Make sure, you specify to use socks proxy even for peer 2 peer communication if such setting is there.
Done!!
Grab the torrent file and load it in. Give that grim smile
and enjoy.
Important for half download speeds: Make sure that you keep torrent upload rate as low as possible while doing this, because whatever is being downloaded at home is finally being uploaded to your office connection. For e.g. if your bandwidth is 256kbps upstream. And you are uploading torrents at 15KBps, you can only download torrents at 15KBps at office. Simple maths. Also keeping very low upload speeds would also deteriorate download speeds. So for e.g., keep upload speed at 5KBps, and you will easily get 25KBps for download at office on a 256kpbs bandwidth.
You are all welcome to posts your comments/questions on SSH series of post (3 of them). Also let me know any future topics of discussions.





October 27, 2007 at 2:29 pm
[...] Next : Download torrents in a LAN behind proxy. [...]
October 29, 2007 at 4:37 am
dude, write some non-technical articles for your non-hackerz frenz.
October 29, 2007 at 3:06 pm
Hi Friend, I am stuck with the similar problem. I could not understand your solution since its too technical for me. Can you explain in a lucid manner.
October 29, 2007 at 3:20 pm
@ Sachin
This solution involves, tunnelling all your traffic from an off-site PC(say your home PC). First you SSH into your home PC and then tunnel all your traffic through it. So first requirement is a home PC with a public IP.
It looks like you are on a reliance mobile connection. If you get a public IP, I dont see you facing any problems downloading torrents without any *fix*.
November 14, 2007 at 4:24 am
if i download torrents using the tunnelling method,will it effect the download limit of my internet connection.
November 14, 2007 at 4:33 am
Yes, You would be doing double the traffic. All traffic is downloaded @ your home connection and then uploaded to your office connection over SSH.
December 5, 2007 at 11:27 am
ur last para : Important for half download speeds: is a beamer
its contradicting.. what are u suggesting ? and how does keeping very less upload speed at office improve downloads speed of torrent
December 6, 2007 at 9:56 am
This is because, whatever you are downloading at office is first being downloaded and then uploaded to you.
So if you upload at high speed from office, that eats into your download speed because whatever you upload is being downloaded at home.
So keep your upload speed from office @ 5Kb/s. That’s the optimal figure I use.
March 4, 2008 at 8:46 pm
what if the ssh is closed in the LAN?
plz give soln…….
also how to find username and password….
March 4, 2008 at 8:52 pm
You mean to say port 22 is blocked ? I am sure 443 wudn’t be ? You can run your ssh server at home on ports which are open for you ..
June 26, 2008 at 4:27 pm
well…leaving my pc running 12 hours is not so cheap…nice solution but not applicable whether you do not have internet at home.
July 16, 2008 at 7:41 am
I’ve been trying to use utorrent from my company’s network. It seems port forwarding does not take place. We use a http proxy for connecting to the net. Is there a way I can use utorrent? Your post is good but I can’t find a way to make things work.
July 24, 2008 at 5:15 pm
GET TORRENT PHP SCRIPT: http://torrent.cicakman2.com
August 19, 2008 at 11:44 am
Then is there a way to force my programs to use the workplace proxy within the LAN? The proxy is the only way to the internet.
September 24, 2008 at 2:34 pm
my putty session create a error
can u plz guide me from first step to last for using torrent on lan
January 1, 2009 at 3:13 pm
bro… you know a lot and hence jumping off more steps in between, and everything is bouncing here….
can i really download torrents behind proxy, and please give me the steps… i am dyin…..
mahmud
January 9, 2009 at 5:22 am
i m not able to download from torrent web site…someone told me that in college campus u cant use torrent becoz of low speed…but some students are still downloading from torrent..i thnk they r using proxy or some other way to increase their net speed…they r tellin anyone….can u people help me…..
January 12, 2009 at 11:57 am
the dydns client or dyndns udater for windows is not able to resolve hostnames although i hv an account on dyndns..
also….
for the torrents u said to use openssh on the home server…
i m in a univ behind an http proxy….how do i crt an ssh server and use the utorrent client on the same xp machine ?
March 4, 2009 at 10:16 pm
rTorrent pwns uTorrent in terms of resources. Mostly because rTorrent is command-line based. I use rTorrent for all my torrenting needs, it works great, its so much faster and SSH is implemented too. Also it runs on multi platforms(Linux, windows, OS X)!
March 23, 2009 at 1:14 pm
i am using LAN connection and cant download torrent files PLZ someone help me
April 21, 2009 at 3:47 pm
I have managed to get utorrent and vuze, cryptload seemed to work for a while then it stopped decoding the files, How can i setup this connection over a LAN? I want to download Torrents, what settings should i enter?
May 14, 2009 at 12:51 am
so, do i need another pc to download torrents through proxy? yes/no
July 10, 2009 at 6:02 pm
know Kx if 1 hve control over on his lan router it wll b none other than lan admin ! n thats wat my problem is !!
July 24, 2009 at 8:13 am
Hi, found this site with a slightly less technical post (erm, just ’slightly’): http://torrentfreak.com/bittorrent-over-ssh-071014/
August 4, 2009 at 12:30 am
thanks
this method is worked
i am used the DNS plus and utorrent and give me very good result.
because the admin use the server Mikrotik and prevent the torrent download
August 12, 2009 at 1:29 pm
Hi,
I did port forwarding and installed Azureus and was able to download videos from Vuze HD network.
But when i give torrent file from some other network it shows downloading , i see 0 peers 0 seeds in details and actual download doesnt progress.
October 8, 2009 at 7:27 am
i m not able to download from torrent web site…someone told me that in college campus u cant use torrent becoz of low speed…but some students are still downloading from torrent..i thnk they r using proxy or some other way to increase their net speed…they r tellin anyone….can u people help me…..
October 10, 2009 at 10:02 pm
if you can’t help us ,just go fuck yourself