OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: neggard on March 06, 2017, 04:14:01 pm

Title: VPN and IP's
Post by: neggard on March 06, 2017, 04:14:01 pm
I have a synology nas that I open some port on so I could connect from outside firewall.
It work perfect.

Then I installed a VPN on my NAS, when I am connected to the VPN I cant access the NAS from outside.

On local side it's no problem to connect to nas with local IP but outside I cant reach the NAS.
It is possible to fix this so I can be connected to VPN and still access the NAs outside firewall?
Title: Re: VPN and IP's
Post by: abalsam on March 06, 2017, 11:26:48 pm
Depending on how the VPN is set up, the machine in VPN can communicate with other machines on the same subnet directly but everything else ends up routed through the VPN.  If that is the case with your configuration, you may need to set up a NAT from the internet to the NAS so that the NAS thinks it is communicating with a local IP address.

Hope this helps.
Title: Re: VPN and IP's
Post by: ivoruetsche on March 07, 2017, 07:57:17 am
Salü Neggard

Why you install on the NAS when you have an OPNsense Firewall. Terminate the VPN on the Firewall and you can access to the whole subnet in the LAN side - NAS inclusive.

gruss ivo