socks5 proxy/tunnel for nginx upstream?

est picture est · Aug 25, 2011 · Viewed 18.6k times · Source

are there any solution/patch that would make nginx work with a socks upstream?

something like this:

server {
  location / {
    proxy_pass  socks5://ip:port/
  }
}

Answer

dannote picture dannote · Jan 26, 2016

I've recently wrote a module doing exactly what you need. You might need something like HAProxy before nginx to support TLS tunneling.