VPN access to VLAN network different to the network where the openVPN server is.

This forum is for general conversation and user-user networking.
Post Reply
Andres_Lopez
OpenVpn Newbie
Posts: 1
Joined: Tue Apr 02, 2019 10:52 am

VPN access to VLAN network different to the network where the openVPN server is.

Post by Andres_Lopez » Tue Apr 02, 2019 10:55 am

Dear User of OpenVPN.
I have been trying for more than 4 months that the connections made through VPN only have access to a certain VLAN or subnet.
Current scheme.
I have the router of ASUS BRT-AC828 in ip 192.168.1.1, this router has the option to activate an OpenVPN server easily and it works OK. This router also has the option of creating VLANs and separates networks through vlan. This is all OK and both networks have an internet connection.
The router has 2 VLANs created, the 192.168.1.x network that is where the router and the openVPN server are and another VLAN 192.168.3.1, which is where I want the connections made through VPN, to only have access to this network, 192.168.3.x. for this in the server configuration I added the command -> push "route 192.168.3.0 255.255.255.0" on the server. With this I have access when I connect to the VPN I have access to this network 192.168.3.x I see the computers, but I also see the computers in the 192.168.1.x network. And I ONLY want to see the computers on the 192.168.3.x network and I do not want to see the computers on the 192.168.1.x network when I connect to the VPN.
There is some command to add in the server so that the connections made to the VPN alone, alone, only have access to the 192.168.3.x network.

I await your help. Thank you so much.
Greetings.

Post Reply