How to enable routing between two OpenVPN sub-networks

Current setup:

  1. OpenWrt router_A (LAN IP: 192.168.2.1) runs OpenVPN Server1 with IP 10.8.1.0/24, allowing access to OpenWrt router_B (LAN IP: 192.168.1.1) through a Site-To-Site OpenVPN configuration.
  2. Also OpenWrt router_A (LAN IP: 192.168.2.1) runs OpenVPN Server2 with IP 10.8.2.0/24, allowing external clients to access the 192.168.2.1 network.

So, external clients connected to OpenVPN Server2 (10.8.2.0/24) can access to the 192.168.2.0/24 LAN via the OpenVPN tunnel, but cannot access OpenWrt router_B (LAN IP: 192.168.1.1).

Current active IPv4 Routes:

Please help me configure static routing or extend the OpenVPN setup so that clients connected to OpenVPN Server2 (10.8.2.0/24) can have access to the Router_B LAN (192.168.1.0/24).
Any suggestions are much appreciated.

If you are connected to the server can you connect to LAN clients on the VPN client?

On server 1 push a route to client1 back to VPN server 2

On VPN server 2 push a route to the client for client1

Reboot and test again.

Also please answer my earlier question.
(Oh and you can do this with just one VPN tunnel :wink:)

1 Like

Thank you!
it solved the issue and now clients connected to Server2 can access to both Router_A Lan (192.168.2.1) and to Router_B Lan (192.168.1.1).

Yes, I can ping clients connected to Server2 while being on the Server2 LAN.

1 Like

Great to hear it is solved :+1:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.