UniFi - USG L2TP VPN could not be established

Alex Lowe

Last updated: October 9, 2026

Sometimes with L2TP VPN on a USG, a user who was able to connect before, can't connect again.

If you want fast and reliable UniFi hosting, check out HostiFi with expert support, regular backups, managed updates and prices from $19 per month.

To learn more about our hosting plans, create an account or book a free demo to get started.

A possible cause is that they didn't disconnect properly, for example, by shutting down their PC while still connected to the VPN. That leaves their session open on the USG and they can't reconnect if they are already connected. This can be fixed by restarting the VPN service or rebooting the USG.

This command shows the connected VPN sessions:

show vpn ipsec sa

These commands restart the L2TP IPsec VPN sessions:

sudo service xl2tpd restart

sudo ipsec restart

Video

About HostiFi

HostiFi provides hosting for Ubiquiti software platforms, with servers for UniFi and UISP. We also offer network consulting, with HostiFi Professional Services.

Get the Ubiquiti Top 20

Each month our team sifts through Ubiquiti news and content from around the web and delivers 20 of our favorite links to your inbox.

View recent issues

No spam. Unsubscribe anytime.

🤩

Discovered 3+ things that I did not know and will have a material impact on my business.

Newsletter Subscriber

🤩

All the info I want/need in a single clean thread! Perfect!

Newsletter Subscriber

🤩

Providing super valuable information to keep the community in the know. Awesome links page, Thank You.

Newsletter Subscriber