Chain two VPN subnets via Nethserver VPS

Hi guys, I need to chain two subnets via Nethserver installed on a VPS according to this schema:

192.168.1.0/24 -> VPN client -> VPS <- VPN client <- 192.168.2.0/24

So I want to reach, for example, 192.168.2.2 from 192.168.1.0/24 and viceversa. I created two OpenVPN tunnels such that 192.168.1.0/24 is connected to the first tunnel and 192.168.2.0/24 is connected to the second tunnel. Of course I setted up static routes adding 192.168.2.0/24 to local networks of the first tunnel and 192.168.1.0/24 to local networks of the second tunnel.

The problem is that I can’t ping anything from the clients.

Hi Cricco95,

Try to add the DNS of the green interface to the config of the network card of the station. It has to be the primary DNS of the station. Take the previous primary DNS and make it the secondary DNS.

Michel-André

Why DNS? The point is that I can’t reach one subnet from the other one and viceversa.

Can you connect to the server?

Michel-André

Yes, my two OpenVPN clients are succesfully connected to port 1194 and 1195 of the same VPS but I can’t reach 192.168.1.0/24 from 192.168.2.0/24 and viceversa. Also pinging 10.8.1.1 or 10.8.2.1 (OpenVPN NICs) doesn’t work.

You checked both of them?

image

Also, can you ping the IP address?

Michel-André

This is the road warrior configuration page which doesn’t allow each subnet reach others but only one client to reach the subnet.