Hi,
Am 29.05.25 um 13:06 schrieb nf.xgo2025@emimx.com:
Hi everybody,
I am trying to set-up an nginx server as http proxy for the x2go client. My x2go server is a VM on a private network 10.10.10.201. So far I have been using an ssh tunnel to reach the server from outside via ssh on the host. The host runs an nginx server that is connected to the internet. I would like to use nginx as the http proxy to the ssh instance running on the VM. However, when I set "Use proxy server for http connection" and put the host sshproxy.mydomain.com and port 80 in the client, I alwas get the error message: "Cannot connect to proxy server". Nginx does not show any access in the log. Here is my Nginx configuration: <snip>
Can anyone help me to get this working?
I haven't used http proxy mode in ages, and back then, with squid rather than nginx, but it did work. Using an SSH proxy tends to work smoother, though, so that's what I'm using these days. (Curious why you want to switch from SSH to HTTP ...)
But if you're not seeing anything in the logs, it sounds like a misconfiguration of sorts.
You might want to try running X2GoClient in debug mode and also look at the output of "netstat -ant" or "ss -ant" on both the client and the proxy during your connection attempt.
You could also try to connect via your proxy using netcat or plain ssh (see <https://www.dimoulis.net/posts/ssh-over-proxy/> if you don't know how to do that). This will hopefully provide some hints as to what's going wrong.
Kind Regards, Stefan Baur
-- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243