Set up a VPN server on QNAP NAS behind the router


Last modified date: 2023-05-19
Applicable Products:
  • QVPN

Follow the steps to set up a VPN server on a QNAP NAS behind the router.

  1. Install QVPN service in App Center.
    1. Log in to QTS as an administrator.
    2. Open the App center.
    3. Install QVPN service.
  2. Choose a suitable VPN service, see the comparison table.
    • In terms of speed and security, recommend using WireGuard VPN.
      Note: WireGuard VPN is only available on QVPN Service 3.0 running QTS 5.0 on x86 NAS model.
    • In terms of easy-to-setup, recommend using L2TP, almost all modern devices (Windows, macOS, iOS, Android) native supports L2TP without installing an extra VPN Client software.
  3. Setup VPN service on QNAP NAS
    Note: recommend changing the default VPN port at this step to enhance the security.
    • L2TP (500, 4500, 1701/UDP, Note: L2TP default ports can't be modified)
    • OpenVPN (1194/UDP)
    • WireGuard (51820/UDP)
    • QBelt (443/UDP)
  4. Setup Qufirewall rule to allow VPN connections.
  5. Setup VPN client and establish a test VPN connection in a local network.
  6. Setup port forwarding on your NAT router.
    Note: If you need to console the router manufacturer, the question is like How do I set up a VPN service behind a router.
    1. Log in to your NAT router.
    2. Go to Advance settings > Port forwarding/Virtual server
    3. Insert NAS IP, port number, protocol in the setting. (For example: 192.168.1.2, 51820, UDP for a default WireGuard VPN server)
    4. Activate and apply the setting.
  7. Establish the VPN connection.

Choose suitable VPN service

  WireGuard® QBelt (QNAP’s VPN service) L2TP OpenVPN
Main strength Fastest Works with QuWAN (QNAP’s SD-WAN solution) Easiest to use Most secure
Recommended use case Large file transferWhen you are currently managing multiple devices with WireGuard®When using a single smartphone or laptop When building a tunnel to devices in the QuWAN mesh connectionWhen requiring VPN connection between multiple QNAP devicesWhen quick VPN setup is required When building a VPN between QNAP NAS and iOS, Android, and other edge devicesWhen a secondary VPN connection is required When you prefer to use OpenVPN supported third party services (check a row below)When building tunnels to servers in other countriesWhen organizations require critical security rules fulfilled
Which app you should install on the host/client to use this VPN service? [Host] QVPN Service
[Client] WireGuard®, or third-party apps that support WireGuard®
[Host] QVPN Service
[Client] QVPN Device Client
Not required (Modern devices support built-in L2TP connection) [Host] QVPN Service
[Client] QVPN Device Client or third-party apps/services that support OpenVPN (ExpressVPN™, NordVPN®, Surfshark®, Astrill®)
How to verify Public/private keyPSK Can use PSK No verification required (Use PAP/MS-CHAPv2 or PSK additionally) PSKCertificationUsername and password
Encryption Supported DTLSAES Not supported (Can use IPsec) Built-in OpenSSL SSL/TLS
Speed test* FTP Download: 106MB/s Upload: 104.6MB/s HTTP Download: 96.8MB/s Upload: 91MB/s FTP Download: 45.5MB/s Upload: 50.1MB/s HTTP Download: 34.7MB/s Upload: 46.92MB/s FTP Download: 44.8MB/s Upload: 21.6MB/s HTTP Download: 41.4MB/s Upload: 29.5MB/s FTP Download: 62.7MB/s Upload: 91.4MB/s HTTP Download: 61MB/s Upload: 86.6MB/s

Was this article helpful?

39% of people think it helps.
Thank you for your feedback.

Please tell us how this article can be improved:

If you want to provide additional feedback, please include it below.

Choose specification

      Show more Less

      Choose Your Country or Region

      open menu
      back to top