I am managing three distinct geographical sites which I would like to connect using a central OpenVPN server.
My idea would be to have a network device on each location connect to the OpenVPN server and route specific network traffic through it. I have already split the subnets ( 10.23.1.0/24
, 10.23.2.0/24
, 10.23.3.0/24
) so that each location gets a distinct private subnet.
However, it is not clear to me what the networking setup should look like. My first guess would be:
OpenVPN server:
- has IPV4 forwarding enabled
- routes 10.23.1.0/24 to Site A VPN client
- routes 10.23.2.0/24 to Site B VPN client
- routes 10.23.3.0/24 to Site C VPN client
Site A VPN Client:
- has IPV4 forwarding enabled
- routes 10.23.1.0/24 to internal network
- routes 10.23.2.0/24 to OpenVPN Server
- routes 10.23.3.0/24 to OpenVPN server
(Site B and C VPN clients are similar)
Is that a correct way of approaching the issue? Am I missing anything in terms of functionality/security when doing this?