I have a piece of software, I'll call it "FooSoft" here, which needs to connect to multiple devices on networks protected by a variety of third party VPNs. Each VPN is independent and I have no control over the setup of these VPNs or the network behind them. FooSoft supports connecting to socks5 proxies to transfer data.
If I use OpenConnect with ocproxy it seems that I can have a socks5 proxy that FooSoft connects to, and that only this traffic is directed through the particular VPN connection, allowing me to have multiple VPN connections, each behind a socks5 proxy and not interfering with one another (right?).
However, it's not clear that the same is possible for OpenVPN? The documentation mentions an option socks-proxy, but I'm not sure if this expects there to be an existing socks proxy running already or if it creates one and routes the traffic through it.
The current architecture is this:
customer 1 <---> FooSoft direct IP access
OpenVPN to devices on customer
network
The kind of architecture I am imagining is something like this:
FooSoft <---> socks proxy 1 <-> customer 1 <-> direct IP access
: OpenVPN to devices on
: customer network
:
:
:-> socks proxy 2 <-> customer 2 <-> direct IP access
: OpenVPN to devices on
: customer network
:
:
:-> socks proxy 3 <-> customer 3 <-> direct IP access
OpenVPN to devices on
customer network
Therefore, my question is, how can connect to one or more simultaneous OpenVPN VPN connections each through a corresponding socks proxy?
EDIT
Since posting the question I found the following docker projects. I am interested to understand if this approach will achieve what I want.