Allow internet access but block Server LAN access
Posted: Fri Jul 09, 2021 10:07 pm
Im running truenas with OpenVPN.
I have the VPN setup and works and able to get internet access through the VPN tunnel as well as access to the TrueNas Share that is on a VLAN IP 192.168.168.20/24
Openvpn Server Local LAN 192.168.0.40/24
OpenVPN Client LAN 192.168.168.0/24
Im passing the options
push "route 192.168.168.0 255.255.255.0"
push "redirect-gateway bypass-dhcp"
This gets me access to the internet and the storage share (on same server as OpenVPN server) @ 192.168.168.40
But is also gives access to the OpenVPN servers LAN 192.168.0.0/24 and the machines on it.
Is there a way to allow the client to have internet access through the VPN but not be able to access the openVPN servers LAN ?
I have the VPN setup and works and able to get internet access through the VPN tunnel as well as access to the TrueNas Share that is on a VLAN IP 192.168.168.20/24
Openvpn Server Local LAN 192.168.0.40/24
OpenVPN Client LAN 192.168.168.0/24
Im passing the options
push "route 192.168.168.0 255.255.255.0"
push "redirect-gateway bypass-dhcp"
This gets me access to the internet and the storage share (on same server as OpenVPN server) @ 192.168.168.40
But is also gives access to the OpenVPN servers LAN 192.168.0.0/24 and the machines on it.
Is there a way to allow the client to have internet access through the VPN but not be able to access the openVPN servers LAN ?