2

I do have a linux machine (Ubuntu) which has no filters and a client machine which is behind a firewall that have even web traffic filtering.

I can properly establish SSH connections from the client to the server.

What is the correct command line for establishing a tunnel which would allow unfiltered browsing (via socks proxy) and also P2P traffic.

Currently I used something like this, but it seems not to work with P2P (uTorrent in my case):

ssh -v -v -N -p 22 -g -C -c 3des [email protected] -D 0.0.0.0:1080 -R 55555:localhost:55555

enter image description here

The socks5 proxy part works, at least with Firefox but uTorrent is not able to download.

1
  • You clearly have a greater mastery of man ssh than I but I'll make a few suggestions which may or may not help. For one, have you set up the proxy in your Network Preferences? This will make it system wide, and if I'm not mistaken, will override the ones you made in Firefox locally. Also, since you have access to the Ubuntu server you can always try running tinyproxy on that but it's likely you'd prefer to do it this way.
    – Tony
    Jan 7, 2013 at 20:53

1 Answer 1

2

Transmission will likely try to connect to the tracker using UDP which cannot be transmitted through the SSH proxy. You may or may not be able to force uTorrent to only use TCP. Even then it's unlikely that this will work.
Also this setup doesn't really make a lot of sense. You'd be much better off by downloading/seeding your torrents directly on that Linux box. rtorrent or transmission-daemon comes to mind as a viable solution.
You do have a lot of redundant options in your ssh command. You can strip it down to ssh -NC [email protected] -D 1080 though I'd suggest you put all the config info into ~/.ssh/config anyway. You may increase the security of your connection by only binding your SOCKS proxy to the loopback by using -D localhost:1080. You do not need the reverse tunnel for your question and may even be substantially violating a company policy with that.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .