Hi,

On Fri, Sep 30, 2022 at 05:20:52PM +0200, Daniel Lando wrote:
> As described in this
> <https://github.com/OpenVPN/openvpn/pull/166#issuecomment-1263600751>
> comment, what I would like to know is if it's possible (and how) I could
> proxy requests using nginx to multiple openvpn servers. I'm actually using
> docker-compose to start the openvpn servers and also nginx is running in a
> docker container.

If you are willing to live with openvpn over TCP, it might work by
using OpenVPN's --http-proxy feature - it will do a TCP connect to
nginx (or whatever) and then issue a CONNECT <targetip>:<port> command,
and then speak OpenVPN wire protocol inside that TCP connection.

OTOH, using TCP is generally suboptimal performance-wise.  If this is
just for simple remote access, it's good enough, but if you want maximum 
throughput (especially if there might be packet loss), go for UDP.


A *real* solution would be, of course, to use IPv6, and have distinct
IPv6 addresses for each container - so, do not go through a proxy, but
have directly reachable endpoints.

gert

-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             g...@greenie.muc.de

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to