I can reach my NAS when connected to VPN but I cannot access any internet websites.
This is what I did: (Maybe it’s a dumb question but I really don’t understand what i’m doing wrong).
I configured the OpenVPN server on synology and exported the .ovpn config file.
Following the README file I replaced “YOUR_SERVER_IP” with my NAS ip address
I left “redirect-gateway def1” commented as I want a split tunnel configuration
and set these two lines for the DNS
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
And that’s it… I think I’m missing something in the DNS part but I don’t see where.
Thank you in advance and ask me if you need other specific details.
SOLVED!
The main problem was that I forgot to set a firewall rule to allow connections from the vpn subnet. That made me tinker in the config file adding “dhcp-option DNS” lines and made it worse…
removing those lines from the config and adding the firewall rule solved the problem!
I still have to understand why with the firewall set correctly, adding the DNS in the config resulted in no internet access though.
Hey, can you reach 1.1.1.1 when the VPN connection is turned on? If so, it’s very likely a DNS problem. If not, can you check what the default gateway is on your client device, while the connection is on?
When I added the equivalent of your 10.8.0.0/24 subnet as the number 2 rule in LAN 1 everything started working. Of course I had to hit the save button on the firewall page first.
Just moved one of my customers to OpenVPN and this issue has been annoying me for hours, adding this simple line to the config has saved the day 3 years later. Thank you very much sir
don’t the # mean the line is commented? From what I understand if I want a split tunnel configuration I have to leave #redirect-gateway commented. But I’m clearly missing something so correct me if I’m wrong
I had to add a rule on the synology firewall to allow connections from the vpn subnet.
So under the rule to allow connections from your lan subnet (ex.: 192.168.1.0/24), you need to add a similar one with the VPN subnet (ex.: 10.8.0.0/24)
Hey I just want you to know google landed me here and I can’t believe I’ve wasted 2 hours troubleshooting something so simple that not a single other person on the internet has mentioned.