NAS Codex › QNAP › Can't connect to the QVPN server on a QNAP NAS
Can't connect to the QVPN server on a QNAP NAS
QVPN Service turns a QNAP NAS into a VPN server using L2TP/IPSec, OpenVPN, WireGuard or QNAP's QBelt protocol. When a client cannot connect, the cause is usually one of a few things QNAP documents: the VPN port is not open on the router or in QuFirewall, the connection was never tested on the local network first, or an older QVPN version cannot talk to a newer OpenVPN client.
Written against: QVPN Service on QTS / QuTS hero (QNAP FAQs last modified 2023-05-19, 2024-10-07 and 2025-12-02). 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
Test from inside your own network first. QNAP's setup steps have you establish a test VPN connection on the local network before you configure port forwarding on the router. If the local test works and the remote one fails, the problem is the router or the firewall rule, not the account.
Check that the right port is open
QNAP lists these default ports for QVPN. Each one must be forwarded on your router to the NAS and allowed by QuFirewall:
- L2TP/IPSec: UDP 500, 4500 and 1701. QNAP says these cannot be modified.
- OpenVPN: UDP 1194.
- WireGuard: UDP 51820.
- QBelt: UDP 443.
QNAP notes that the actual ports may be customized, so confirm them in QVPN before setting up the router. It also recommends changing the default VPN ports where the protocol allows it.
Set up the server in the order QNAP gives
- Install QVPN Service from App Center (administrator account required).
- Choose the VPN service. QNAP recommends L2TP for ease of use and compatibility, and WireGuard for speed. WireGuard is only available on QVPN Service 3.0 running QTS 5.0 on x86 models.
- Set up a QuFirewall rule to allow VPN connections.
- Set up a VPN client and establish a test connection on the local network.
- On the router, add a port forwarding (virtual server) rule with the NAS's IP address, the port and the protocol. QNAP's example for default WireGuard is the NAS IP, port 51820, UDP.
- Apply the rule and connect from outside your network.
OpenVPN clients that fail after an update
QNAP says OpenVPN has been updated to version 2.6 and QVPN Service was updated to 3.2 to stay compatible. QVPN Service 3.0.781 and earlier uses OpenVPN 2.4 or earlier, and clients running OpenVPN 2.6 may fail to connect to those servers.
- Recommended: update QVPN Service to version 3.2 or later.
- Older hardware that cannot update: QNAP's temporary workaround is to download the OpenVPN configuration file from QVPN, add
:@SECLEVEL=0to the end of thetls-cipherline, save it and import it into the client again. QNAP warns that this allows older, less secure algorithms and reduces the connection's protection, so it is only a temporary solution.
Open only the VPN port
For access from the internet, QNAP's guidance is to manually open only the VPN port or ports on the router and not to open other NAS service ports. It advises against enabling UPnP on the router, because UPnP can expose additional services; use manual port forwarding instead.
When to stop and get help
If your NAS does not support QVPN, QNAP says you can use a QNAP router (QHora or QMiro) as the VPN server. If the NAS is too old for QVPN, QNAP says you must use an external VPN server.
Questions
Which ports does QNAP QVPN use?
QNAP lists L2TP/IPSec on UDP 500, 4500 and 1701, OpenVPN on UDP 1194, WireGuard on UDP 51820 and QBelt on UDP 443. The L2TP ports cannot be modified; confirm the others in QVPN.
Why can't my OpenVPN client connect to QVPN?
QNAP says QVPN Service 3.0.781 and earlier uses OpenVPN 2.4 or earlier, and OpenVPN 2.6 clients may fail to connect. QNAP recommends updating QVPN Service to 3.2 or later.
Should I enable UPnP for QVPN?
No. QNAP advises against enabling UPnP on the router because it can expose additional services, and recommends manually forwarding only the VPN port.
Sources
Every fact on this page comes from the vendor documents below, opened on 2026-11-17.