240vpn
Hi community
I've dowloaded the openvpnas virtual machine and intend to use it to access my network storage on the road.
The setup through the web gui works well, however there is a show stopper I don't know how to deal with.
I connect from a private LAN 192.168.1.0/24 to my home LAN 192.168.1.0/24 and try to access my NAS at 192.168.1.2. Understandably this doesn't work since my client looks for the 192.168.1.2 in the local network instead of the VPN network.
Now I would like to create a static NAT entry for this particular host at 192.168.1.2. From what I understand, connecting clients are assigned an address from the pool 172.27.224.0/20 (configured in VPN Settings -> Dynamic IP Address Network), so I guess the NAT has to look something like 172.27.224.1 -> 192.168.1.2.
Is there a way to do this?
Alternatively I would have to reconfigure the whole home network to a different private subnet....
Thank you very much and best regards
The Johan
In our experience the better solution is to ensure that the network behind the Access Server has a fairly unique IP address range. You may be able to use NAT trickery to get things working but it is a hack. 192.168.0.0/24 and 192.168.1.0/24 as well as 192.168.2.0/24 are pretty much the standard range, so subnet collissions are pretty much a guarantee. Best to move your network to something like 172.16.30.0/24 or so.
Good luck.