Hey, I have tried to add static routes and I have not had a successful connection.
Ill try and be more clear on whats going on and what I would like to achieve.
I am running an open VPN server which is also running a VPN Client connection, which is connecting to an external VPN server.
------------------------------- VPN2 CLIENT
| VPN1 SERVER + VPN2 CLIENT| ---------> (TUNNEL) VPN2 SERVER
------------------------------- INTERNET
The idea being if anyone connects to VPN1, all their traffic is routed down to VPN2.
--------------------------------
|CLIENT 1 - CONNECTS TO VPN1|
--------------------------------
| tunnel
V
--------------------------- VPN2 CLIENT
| VPN1 SRV + VPN2 CLIENT | ---------> (TUNNEL) VPN2 SRV
| TAP1 TAP2 | internet
---------------------------
Issue: When VPN2 Client is connected, connections attempts to VPN1 fail due to a
TLS error. This is a routing issue as connection response is no going back to CLIENT 1
At the moment, both TAP1 and TAP2 are running on one NIC (ethernet adapter).
Maybe a solution to my issue is 2 install a second NIC (ethernet adapter) and have all VPN1 connections directed at NIC 2, while the VPN2 Client connection (TAP2) is running through NIC1.
Then I will rout all traffic from NIC2 to NIC1 which theoritically should get pushed down to VPN2.
However, when I make a connection using the VPN2 client settings, it runs on ALL ethernet adapters.
The question I have is, how do I tell a client ovpn to ONLY direct its connection and tunelling to a specific NIC/ethernet adapter such as NIC2.
I am not even sure what I am trying to accomplish is possible or maybe I am going about this the wrong way.
Any help would be hugely appreciated guys.
Cheers
The only way I can summarize this is like this:
MY NETWORK MY SERVER
CLIENT VPN1 -> [VPN1 SRV + VPN2 CLIENT] -> VPN2 SRV