10
6
Preface: What I’m looking for are explicit instructions, in the same format as above. That is, something like run: “…run command X on machine A, then command Y on machine B…”
I have a working socks proxy from my laptop (machine A) to machine B:
[A]$ ssh -ND 8888 B
I can set up Firefox to use SOCKS proxy on A’s local port 8888
, and browsing on A works. So far so good.
But I also have a socks proxy between machines B and C:
[B]$ ssh -ND 8157 C
So I can browse on B as if I were on C, setting B’s Firefox socks proxy to 8157
.
Is there a way to chain the two proxies so that I’m able to use Firefox locally (on A) while using the connection to C?
That is, somehow forward all Firefox’s socks requests all the way from A to C. A and C cannot see each other directly, but I have full root SSH access everywhere. All machines are Debian.
Note that I don’t want to forward a single port like port 80 but I want a fully chained SOCK proxy.
shouldn't you just do
-L 8888:B:8157
on [A]? – bdecaf – 2014-11-05T12:52:29.180@bdecaf In addition to the given commands? Instead? No changes to FireFox settings? – user124114 – 2014-11-05T12:54:30.987
Just for [A]. The rest as you describe. – bdecaf – 2014-11-05T16:02:30.500
ssh -L 8888:B:8157
fails, requires a hostname parameter. Can you give a more complete, end-to-end answer? If it works, I'll accept. – user124114 – 2014-11-05T17:24:07.480is B really the name of your machine? – bdecaf – 2014-11-05T22:08:04.890
Ok i give up, with that information i can't even guess what is required. – bdecaf – 2014-11-07T22:54:44.523
It is unclear whether you mean Transparent Multi-hop SSH, or perhaps Chaining proxies using a tool such as ProxyChains. Let me know if one of these works for you.
– harrymc – 2014-11-21T19:46:17.223If you decide to answer my above comment, please let us also know which operating-systems are involved in A,B,C. – harrymc – 2014-11-24T09:35:50.153