Reverse proxy OpenVpn using Haproxy or Nginx

吃可爱长大的小学妹 提交于 2020-01-25 07:37:06

问题


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

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

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?


回答1:


[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.

I'll use the classic old-school way: NAT and a proper public dns to manage them.



来源:https://stackoverflow.com/questions/57713606/reverse-proxy-openvpn-using-haproxy-or-nginx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!