简体   繁体   English

使用Haproxy或Nginx反向代理OpenVpn

[英]Reverse proxy OpenVpn using Haproxy or Nginx

i was wondering how it is possible to reverse proxying an openvpn connection using the SNI, i've read so much about that: HERE and HERE 我想知道如何使用SNI反向代理openvpn连接,我已经学到了很多:在这里和在这里

I've tried any kind of solution, using haproxy and using nginx, but it seems that my client (i've tried Tunnelblick and a simple openvpn client on linux) does not send the SNI information 我尝试过使用haproxy和nginx进行任何形式的解决方案,但是似乎我的客户端(我已经尝试过Tunnelblick和Linux上的简单openvpn客户端)没有发送SNI信息

Basically, this is the result that i want to achieve: 基本上,这是我想要实现的结果:

vpn1.app.com ─┬─► *.app.com dns -> nginx at my public ip ─┬─► vpn1 at 10.0.0.3

vpn2.app.com ─┤                                           ├─► vpn2 at 10.0.0.4

vpn3.app.com ─┘                                           └─► vpn3 at 10.0.0.5

Any thoughts? 有什么想法吗?

[UPDATE] I've searched for all these days and looked around for a solution, but, in conclusion, it seems that OpenVpn, in it's architecture, isn't sending around to the server the SNI indication, so, no chance to do that. [更新]这些天来,我一直在搜索并寻找解决方案,但总而言之,似乎OpenVpn在其体系结构中并未向服务器发送SNI指示,因此,没有机会这样做那。

I'll use the classic old-school way: NAT and a proper public dns to manage them. 我将使用经典的老式方法:NAT和适当的公共DNS来管理它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以在 Kube.netes 中使用 OpenVPN 和 Nginx 反向代理通过 pod 路由流量? - Is it possible to route traffic through a pod with a OpenVPN and a Nginx reverse proxy in Kubernetes? 是否可以从Apache移至HAProxy / nginx作为反向代理? - Is it possible to move from Apache to HAProxy/nginx as reverse proxy? 在Docker上使用Nginx反向代理 - Using Nginx reverse proxy with Docker 使用nginx的tomcat反向代理? - Reverse proxy using nginx tomcat? 如何创建将流量转发到 kube.netes ingress controller 的反向代理,例如 haproxy ingress 或 nginx ingress - How to create reverse proxy that forward traffic to kubernetes ingress controller such as haproxy ingress or nginx ingress 使用Nginx作为指向AWS ALB的反向代理 - Using nginx as reverse proxy pointing to AWS alb 使用反向代理Nginx与GoLang进行SSL - SSL with GoLang using reverse proxy Nginx 使用仪表板作为子路径的grafana的Nginx反向代理 - Nginx reverse proxy for grafana using dashboard as subpath 反向代理多个 angular 应用程序使用 Nginx - Reverse proxy multiple angular applications using Nginx (已解决)通过 nginx 反向代理和 haproxy 路由到 Openshift CRC 应用程序 - 我越来越绝望 :-) - (solved) Routing to Openshift CRC application through nginx reverse proxy and haproxy - i am getting desperate :-)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM