1
Virtual private networks / Re: OpenVPN Site-to-Site always using first tunnel address as routing gateway
« on: January 23, 2022, 12:04:13 am »
I thnk it's the way you have your tunnels setup based on info provided, this is my site to site config for Wireguard, working well...
VPN Destination Server
Tunnel Address: 10.8.0.1/24
VPN Client 1
Tunnel Address: 10.8.0.2/32
VPN Client 2
Tunnel Address: 10.8.0.3/32
Notice how the subnet is /32 on the clients meaning they only get 10.8.0.2 or whatever you list there.
In my case my home LAN 10.0.0.0/24 is on Client 1, so I have the following in Allowed IP's...
Endpoint on VPN Server for Client 1: 10.8.0.2/32 + 10.0.0.0/24
-This allows both the Client VPN IP and the Home Network connected too it to be routed.
Endpoint on VPN Server for Cleint 2: 10.8.0.3/32
-This is a mobile and doesn't need to route any additional networks but does need it's own VPN Client IP.
Hope this helps.
Oh, you may also need to manually create Gateways, so for example my home router (Client 1) has the following Gateway...
10.8.0.2
Which is that firewall's VPN IP, you then need to make sure your firewall \ nat rules are setup correctly.
*Mind you I just realised you are using OVPN and not WireGuard so this may not apply quite so well sorry.
VPN Destination Server
Tunnel Address: 10.8.0.1/24
VPN Client 1
Tunnel Address: 10.8.0.2/32
VPN Client 2
Tunnel Address: 10.8.0.3/32
Notice how the subnet is /32 on the clients meaning they only get 10.8.0.2 or whatever you list there.
In my case my home LAN 10.0.0.0/24 is on Client 1, so I have the following in Allowed IP's...
Endpoint on VPN Server for Client 1: 10.8.0.2/32 + 10.0.0.0/24
-This allows both the Client VPN IP and the Home Network connected too it to be routed.
Endpoint on VPN Server for Cleint 2: 10.8.0.3/32
-This is a mobile and doesn't need to route any additional networks but does need it's own VPN Client IP.
Hope this helps.
Oh, you may also need to manually create Gateways, so for example my home router (Client 1) has the following Gateway...
10.8.0.2
Which is that firewall's VPN IP, you then need to make sure your firewall \ nat rules are setup correctly.
*Mind you I just realised you are using OVPN and not WireGuard so this may not apply quite so well sorry.