connecting two ovpn server having same private network

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
azfar82
OpenVpn Newbie
Posts: 1
Joined: Wed Sep 06, 2023 8:29 am

connecting two ovpn server having same private network

Post by azfar82 » Mon Jan 29, 2024 2:11 pm

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?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: connecting two ovpn server having same private network

Post by TinCanTech » Mon Jan 29, 2024 3:12 pm

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.

Post Reply