Page 1 of 1

connecting two ovpn server having same private network

Posted: Mon Jan 29, 2024 2:11 pm
by azfar82
I have multiple AWS accounts and they all are using default VPC so all have default subnets like below

server

172.31.16.0/20
172.31.0.0/20
172.31.32.0/20


client

172.31.16.0/20
172.31.0.0/20
172.31.32.0/20


Now from my workstation I want to connect all of them via openvpn and also want to access the instances behind those vpcs subnets but since all are using same network I have to connect to one ovpn server at a time.

Is there anyway I can manage or improve via opvonserver/client config without touching the servers on aws?

Re: connecting two ovpn server having same private network

Posted: Mon Jan 29, 2024 3:12 pm
by TinCanTech
Hi,

this cannot be fixed with Openvpn config files.

While there are ways to fix this by configuring networking rules, the simplest and most robust way to fix this is to give your servers unique subnet addresses.