L2TP VPN to USG connects, but no access to LAN devices

I have followed the guide provided by UniFi for creating a L2TP remote access VPN, and I can connect from external devices to the USG - but when connected I still can’t reach internal devices on the LAN network.

I’ve tried to google and read many posts - most say that it should work without additional settings, other says firewall rules should be added, but I can’t seem to figure what is up and down. Hopefully some can help!

LAN network: 192.168.1.0

VPN network: 192.168.2.0

VPN clients are configured to route all traffic through the VPN.

Guide from UniFi: https://help.ui.com/hc/en-us/articles/115005445768-UniFi-USG-UDM-Configuring-L2TP-Remote-Access-VPN

For any MacOS users out there, once you establish the VPN connection, make sure you “Set Service Order” to put the L2TP interface *above* your Ethernet or WiFi interfaces so that traffic is sent to the VPN first

Change your network from 192.x to 10.x or 172.x

I ran into your issue and that’s how I solved it.

Hello! Thanks for posting on r/Ubiquiti!

This subreddit is here to provide unofficial technical support to people who use or want to dive into the world of Ubiquiti products. If you haven’t already been descriptive in your post, please take the time to edit it and add as many useful details as you can.

Please read and understand the rules in the sidebar, as posts and comments that violate them will be removed. If you see people spreading misinformation, trying to mislead others, or other inappropriate behavior, please report it!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

UniFi by default allows access across VLAN’s/subnets, so unless you have previously created a firewall rule to limit this access, yes it should work fine. It seems as if you have done the right set up, but without seeing your network its tricky to tell what might be the issue.

Can you at least ping a device on the LAN subnet?

You have to create a static route to make it work.

Settings → Routing&Firewall → Static Routes

  • Create a new static route
  • Destination Network: The network of your VPN (192.168.2.0/29)
  • Distance = 1
  • Static Route Type = Next Hop
  • Next Hop: Your network (192.168.1.0/29)

Hope this helps!

I had the exact setup and problem when using my Macbook connecting via my L2TP connection. The solution was to set “Send all traffic over VPN connection” on the L2TP connection on the Macbook. I was then able to ping all local resources.

To do this go to “Open Network Preferences”, click on “VPN (L2TP)”, click the “Advanced…” button, go to the “Options” tab, set/check “Send all traffic over VPN connection”, click “Ok”.

It is not a problem with the UDM pro but a problem with the local L2TP connection.

I have followed all the recommended steps. And on multiple devices. I have even disabled all my firewall rules. I am unable to access LAN devices over VPN. Why is this so hard?

LAN: `192.168.1.0/24`
VPN: `10.10.10.0/24`

All traffic sent over VPN
All firewall block rules disabled
Set service order for VPN to be at the top
Added the static route

I can see myself connected in the client section but can’t access the LAN

This is the weirdest thing I’ve seen. When I first set the VPN up, about a month ago, everything worked as expected. My VPN and LAN IPs were similar: 192.168.x.x. I was using a WireGuard VPN and was happily accessing my local LAN w/out any problems.

Out of the blue, without any updates or any changes whatsoever, it stopped working. I followed all the recommendations on this thread and still no cigar. I even created an L2TP VPN thinking that it would help, but still nothing.

I have a DVR that I normally access from my cell phone and no matter what I do, I can no longer access it - period.

I’ve rebooted the UDM SE, cold booted my phone, removed and re-added the VPN, etc - all to no avail.

THIS IS SO ANNOYING!

This was my problem the whole time, thanks!

Really strange - but yeah, it solved my issue as well :slight_smile:

Many thanks!

I have tried this but still not able to make it work. I am connected, but cannot ping other devices, however I can use RDP to get to a machine on the network.

My current settings are:
LAN: 192.168.1.0/24
VPN: 172.16.1.0/24

Any suggestions on what I should check next? I don’t have any static routes like suggested below, as I was having the same issue where it was asking for a specific IP in the Next Hop.

Change which network – the remote machine’s network, the local main network, or the local VPN network?

Solved my issue. Local lan was set to 10.0.0.x changed VPN from 192.168.2.x to 10.1.1.x and all worked fine. Thank you for the info!

Greetings from the future! This worked for me too! How odd, but hey whatever haha

Just to clarify for others, there’s an option to leave your VPN on auto or manual. Go in to manual and set it to say, 10.10.10.1 and leave at 249 addresses. Then I could get in to other stuff!

3 years later and this is still the answer. :clap::clinking_beer_mugs:

UDM Pro on 2.4.X and setting the VPN to 172.X fixed the issue.

On MacOS, I had to change the connections order in Network Preferences so that the VPN connection was above my Ethernet connection (not using wifi). I had also changed the ip address of the VPN to not be in the 192.168.x.x range of the UDMP networks, but that didn’t help.

Thanks for the input, but weirdly enough it got solved simply by changing the network for the VPN as suggested by others.

This saved me from a lot of head-scratching, thank you!

This unfortunately doesn’t work. I have this setting and cannot access any local devices still.