What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Cannot get VPN Server to allow me to access internal devices

remsta

Regular Contributor
This is absolutely doing my head in and I have spent hours trying to solve it but am getting no where. I see that there are a number of threads on this, but none seem to solve my issue.

I have the latest Merlin firmware
- ISP Modem: 192.168.1.1 with DMZ setup for the Asus Router
- Asus RT-AX88U Pro: 192.168.177.1

VPN Server: OpenVPN
I have created a user

I export the OpenVPN file, open it in text editor, change the IP to my public ISP IP.
Save the file - Airdrop to my iPhone - install in OpenVPN and Connect

When I connect, I can access the routers IP 192.168.177.1 but cannot access any other devices on my LAN - i.e. my RaspberryPi at 192.168.177.225 does not work.

When I connect I get this: 10.8.0.2 ( 178.xxx.xxx.xxx:32708 )

It is not activated at the moment but I also have PiHole on my network but I have deactivated it and set the standard DNS servers in the Asus router to try and solve the issue

Can anyone help?

Thank you

Screenshot 2025-12-17 at 15.02.55.png
 
Last edited:
How are your trying to "access" the LAN devices? HTTP/S, SSH, FTP, etc?

What type of devices have you tried accessing other than the Pi? (e.g. NAS, Windows PC, network printer)

Can you ping any devices on the LAN?
 
Have you set the OpenVPN Server option "Client will use VPN to access" to Both?

OPenVPN Server.jpg


If that option is set to Both then perhaps give more detail about your router configuration including any changes you've made to it. Are you running Pi-Hole or anything like it on the local network? Is the router acting as the DHCP server or some other device on the local network?
 
How are your trying to "access" the LAN devices? HTTP/S, SSH, FTP, etc?

What type of devices have you tried accessing other than the Pi? (e.g. NAS, Windows PC, network printer)

Can you ping any devices on the LAN?
Trying to access a RaspberryPi with VNC, cameras over Chrome and their native apps etc... When connected to my Wifi I can access it via my iPhone and the VNC app. When connected via OpenVPN, I cannot access it. Same with HomeAssistant running on the Pi on port 8123.

PiHole is running and the DNS under LAN is normally set to the IP of the RaspberryPi but I have removed that for the moment because I am going overseas tomorrow and last time the Pi died while I was away and I wasn't able to get to anything anymore
 
Last edited:
Update: I have tried setting up IPSEC - again, I can connect, access the router IP but cannot access any LAN devices
 
I'd suggest trying WireGuard, there's a simple "Access Intranet" switch option in the settings for it that allows you to access your local network devices and it's also a lot faster than OpenVPN.

That said, you are aware that your devices that you connect to your router end up on a different subnet, right?
For example, my devices are on 10.x.x.x, whereas when I connect over VPN, those devices end up on 10.y.x.x.
 
And the answer to benmor's question? That is critical.
 
Have you set the OpenVPN Server option "Client will use VPN to access" to Both?

View attachment 69587

If that option is set to Both then perhaps give more detail about your router configuration including any changes you've made to it. Are you running Pi-Hole or anything like it on the local network? Is the router acting as the DHCP server or some other device on the local network?
It should be able to be set to either LAN only or Both in order to reach devices on LAN.
 
Not sure why this is still a problem after 4 years! But the following solution solved my problem - added the code via SSH and problem solved.

Does anyone understand what it actually does and why is it not in Merlin by default?

 
Not sure why this is still a problem after 4 years! But the following solution solved my problem - added the code via SSH and problem solved.

Does anyone understand what it actually does and why is it not in Merlin by default?

What that command does is change the source address of the incoming traffic from 10.8.0.x to that of the router itself (192.168.177.1). This is the issue mentioned in post #6. You wouldn't normally want to do this for security reasons which is why it doesn't do it by default. The "proper" solution is to change the firewall or access control lists on your LAN devices so that they accept connections from 10.8.0.x.
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top