NAS Codex › Synology › Can't connect to Synology VPN Server (L2TP/IPSec or OpenVPN)
Can't connect to Synology VPN Server (L2TP/IPSec or OpenVPN)
The VPN Server package lets a Synology NAS accept L2TP/IPSec, OpenVPN and PPTP connections. When a client will not connect, Synology's Knowledge Center gives a set of preliminary checks and a short test sequence that narrows the problem to the client, the router or the NAS itself.
Written against: DSM 7 VPN Server package (Synology KB articles last updated Jul 4, 2022 and Apr 30, 2025, plus the VPN Server help page). Last Updated: November 2026. Vendor menus and wording change between versions; if yours differ, follow the vendor page linked under Sources.
Before anything else: if the data on this NAS is not backed up somewhere else, copy it off first. Do not continue with any step on this page until you have.
Fast Answer
Try connecting from the NAS's own local network using its private IP address. Synology says that if this works, the problem is on the router; if it fails, the issue is likely in the NAS settings.
Preliminary checks
- VPN Server > Overview: the protocol you are using (for example L2TP/IPSec) is enabled.
- VPN Server > General Settings: a port forwarding rule is set up for the selected network interface.
- VPN Server > Privilege: the DSM account has sufficient privileges.
- Client details: the DSM username, password and (for L2TP/IPSec) the pre-shared key match what is set in VPN Server.
- Apple clients on L2TP/IPSec: Synology says iOS 14 and macOS Big Sur or above no longer support Enable SHA2-256 compatible mode (96 bit), so leave it unselected.
Synology's VPN Server help adds that the client's authentication and encryption settings must be identical to those on VPN Server, or the client will not connect.
Ports that must be open
- L2TP/IPSec: UDP 500, 1701 and 4500.
- OpenVPN: UDP 1194 by default (the port and protocol can be changed in VPN Server).
Synology says to check the port forwarding and firewall settings on both the NAS and the router. Some routers have a built-in L2TP or IPSec VPN service that may already occupy ports 1701, 500 or 4500; you might need to disable it in the router's management interface. Synology recommends a router that supports VPN pass-through.
Narrow it down
- Connect from another device, such as a phone.
- Try a different VPN client app.
- Connect from another network, such as a phone's 4G connection.
- Connect from the NAS's local network using its private IP (shown in Control Panel > Network > Network Interface).
If the local connection works: check the router
- Forward UDP 500, 1701 and 4500 to the NAS (for L2TP/IPSec).
- Make sure no firewall rule blocks the client's IP address.
- Make sure no other device has taken the same ports through UPnP.
- Disable DMZ.
- Enable L2TP VPN pass-through if the router supports it, and try enabling or disabling L2TP/IPSec ALG.
If the local connection fails: check the NAS
Go to Control Panel > Security > Firewall > Edit Rules and make sure UDP 500, 1701 and 4500 are not denied and the client's IP is not blocked. For L2TP/IPSec, Synology's help also says the default MTU is 1400; if you keep getting timeouts or an unstable connection, try a smaller MTU.
OpenVPN: re-export after a certificate change
VPN Server uses the certificate shown in Control Panel > Security > Certificate and restarts whenever that certificate changes. Synology says you then need to export the new configuration file (Export Configuration) to all OpenVPN clients.
When to stop and get help
Synology recommends L2TP/IPSec or OpenVPN over PPTP, which it describes as obsolete. If none of the checks help, Synology says to contact its technical support.
Questions
Which ports does Synology VPN Server need?
Synology says L2TP/IPSec needs UDP 500, 1701 and 4500 open, and OpenVPN uses UDP 1194 by default. Check both the NAS firewall and the router's port forwarding.
Why can't my iPhone or Mac connect to Synology L2TP VPN?
Synology says iOS 14 and macOS Big Sur or above don't support SHA2-256 compatible mode (96 bit), so it should be unselected in VPN Server > L2TP/IPSec.
Why did my OpenVPN clients stop connecting to my Synology NAS?
Synology says VPN Server restarts when the certificate in Control Panel > Security > Certificate changes, and you must export the new configuration file to all clients.
Sources
Every fact on this page comes from the vendor documents below, opened on 2026-11-17.