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 user@server.tld -D 0.0.0.0:1080 -R 55555:localhost:55555
The socks5 proxy part works, at least with Firefox but uTorrent is not able to download.
Best Answer
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
ortransmission-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 tossh -NC user@server.tld -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.