问题原文
原帖链接 · skies457 · CC BY-SA 3.0
I'm trying to make NginX or HAProxy use proxies while connecting to upstream URLs, something like this:
Browser -> Nginx/HAProxy -- SOCKS5 Tunnel --> Remote
I wonder if it's possible?
Edited:
Basically I would like to transparently proxy http requests:
Set up a local DNS resolver (e.g. unbound) and rewrite DNS entries pointing some domains to localhost;
NginX/HAProxy handles http requests based on their
Hostfield (I'm also running a HTTP server) and proxies HTTP requests accordingly.
It would be quite useful to provide access to blocked domains without too many configurations on client side (especially in a Docker container, it would be rather difficult if it's an official image).
已采纳解答
原帖链接 · skies457 · CC BY-SA 3.0
End up with a pure port forwarding solution instead of HAProxy or NginX. If anyone happens to come across the same usage scenario, here are some scripts I've been using to proxy domains inside Docker: https://github.com/w1ndy/docker-proxy-domain. Hope it helps!
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
