I would like to use Cloudflare Access’ ssh feature to tunnel into my server. It worked perfectly on my home setup. But when I’m at work behind a http proxy server. I cannot access and I don’t know what the correct proxy command combination is.
Previously if I’d ssh to my server behind company proxy gateway, I would have one proxy command line in ssh config like this:
Host h1
HostName
ProxyCommand corkscrew 10.10.101.9 8080 %h %p
Port
User root
IdentityFile ~/.ssh/id_rsa
AddKeysToAgent ask
But with cf’s ProxyCommand /usr/local/bin/cloudflared access ssh --hostname %h, I tried several combinations and it won’t work. Help appreciated.
Thanks for the answer but I do think it’s feasible.
Without Cloudflared, I can ssh through the proxy using http connect method. And the port is not 22 on my server. The outbound traffic from my machine to the http gateway is on port 8080, and it will then connect on port say 10000 to my server.
With Cloudflared, I just need a way to route cloudflared to the http gateway on port 8080 using http connect method. And this is the part I’m asking for. The other sections of the path are all good I believe.
To put it into a diagram.
me -> http proxy 10.0.0.1:8080 -> server port 10000 WORKS
me -> http proxy 10.0.0.1:8080 -> Cloudflare Argo Tunnel -> server port 10000, how?
From my testing, yes it requires outbound port 7844 connection. Not sure whether other ports are required, but so far it works by only allowing outbound port 7844.