QNAP Systems, Inc. - Network Attached Storage (NAS)

Language

Support

How to set up a QNAP NAS as a VPN server?

Virtual private networks (VPN) offer secure connections to access network resources and services across a public network. QNAP NAS provides a VPN service for users to access anything on their NAS or other sources via the internet. Layer 2 Tunneling Protocol over IPsec (L2TP/IPsec), Point-to-Point Tunneling Protocol (PPTP), OpenVPN software is also supported, providing advanced certification and encryption to provide the safest connection for QNAP NAS users.

Setting up the VPN service

Follow the instructions below for the first time setup of the VPN service on QNAP NAS.

  1. Preparation.
  2. Enable L2TP/IPsec, PPTP or OpenVPN services
  3. Add a new VPN user.
  4. Enable the Auto Route Configuration function

Appendix. Use VPN software to connect to an internal network.

1. Preparation

  1. The Internet connection is normal.
  2. L2TP/IPsec is supported in QTS version 4.2.0 or above.
  3. In QTS version 4.3, the VPN Server, VPN Client and L2TP/IPSec VPN services have been combined into one application, “QVPN Service”, which can be downloaded to your NAS in App Center. If you are upgrading your NAS to QTS 4.3 from an earlier version, and any VPN services have been configured, the system will automatically install the “QVPN Service” application and keep all your VPN configuration settings during the upgrade.

2. Enable L2TP/IPsec, PPTP or OpenVPN services.

QNAP NAS supports L2TP/IPsec, PPTP and OpenVPN connections and you can select which one to use.

L2TP/IPsec

L2TP (Layer Two Tunneling Protocol) is a combination of the Point-to-Point Tunneling Protocol (PPTP) and Layer 2 Forwarding (L2F). Compared to PPTP, which only establishes a single tunnel between the two end points, L2TP supports the use of multiple tunnels. IPsec is often used to secure L2TP packets by providing confidentiality, authentication and integrity checks. The combination of these two protocols provides a high-security VPN solution which is known as L2TP/IPsec. L2TP/IPsec is supported by most clients, including Windows, Mac, Linux, and mobile devices.
Go to the “App Center”, search for “L2TP/IPsec VPN Service”, and add it to your NAS.
After finishing installation, go to “Control Panel” > “Applications” > “VPN Server” >”VPN Server Settings”, enable L2TP/PPTP VPN Server and select “L2TP/IPsec” and enter the configuration settings:*

  • VPN Client IP pool: Enter the start and end IP addresses to define the IP range for the VPN clients to connect to the VPN server.
  • Preshared key: Enter the Preshared key for the VPN client user to be verified by L2TP/IPsec.
  • Maximum number of clients: Select the maximum number of concurrent client connections supported by the VPN server.
  • Authentication: Select how the VPN clients will be authenticated.
  • Network interface: Choose a network interface.
  • Specify DNS server manually: Specify the DNS server IP for the VPN clients. When disabled, the DNS settings of the NAS will be used. This option is disabled by default.

    * In QTS 4.3, go to “App Center” > “QVPN Service”> “VPN Server Settings” > “L2TP/IPSec”.

PPTP

PPTP (Point-to-Point Tunneling Protocol) enables secure data transfer from a remote location to the NAS by creating a virtual private network (VPN). PPTP is supported by most clients, including Windows, Mac, Linux, and mobile devices.
Go to “Control Panel” > “Applications” > “VPN Server” >”VPN Server Settings”, enable L2TP/PPTP VPN Server and select “PPTP” and enter the configuration settings:*

  • VPN Client IP pool: Enter the start and end IP addresses to define the IP range for the VPN clients to connect to the VPN server.
  • Maximum number of clients: Select the maximum number of concurrent client connections supported by the VPN server.
  • Authentication: Select how the VPN clients will be authenticated.
  • Encryption: Select an encryption method.
  • Network interface: Choose a network interface.
  • Specify DNS server manually: Specify the DNS server IP for the VPN clients. When disabled, the DNS settings of the NAS will be used. This option is disabled by default.

    * In QTS 4.3, go to “App Center” > “QVPN Service” > “VPN Server Settings” > “PPTP”.

OpenVPN

OpenVPN is open-source software that supports encrypted VPN access. You have to install software on your computer to connect to the OpenVPN server. Click “Download Configuration File” to download the VPN client settings, certification/key, and installation instructions and then upload the settings file to the OpenVPN client.
Go to “Control Panel” > “Applications” > “VPN Server” >”VPN Server Settings”, enable OpenVPN Server and enter the configuration settings:*

  • VPN Client IP pool: Enter the start and end IP addresses to define the IP range for the VPN clients to connect to the VPN server.
  • VPN Server Port: Select UDP or TCP as the OpenVPN transport protocol. The OpenVPN server will listen for client connections on port 1194.
  • Maximum number of clients: Select the maximum number of concurrent client connections supported by the VPN server.
  • Authentication: Select how the VPN clients will be authenticated.
  • Network interface: Choose a network interface.
  • Redirect gateway: Selecting this option will cause all IP network traffic originating on client machines to pass through the OpenVPN server.
  • Enable compressed VPN link: Select this option to compress the data before transferring via the VPN. The data transfer speed will increase but more CPU resources of the NAS will be used. This option is enabled by default.
  • Specify DNS server manually: Specify the DNS server IP for the VPN clients. When disabled, the DNS settings of the NAS will be used. This option is disabled by default.

    Please note: If you change your OpenVPN settings, myQNAPcloud name, or security certificate you must your upload settings files again.

    * In QTS 4.3, go to “App Center” > “QVPN Service” > “VPN Server Settings” > “OpenVPN ”.

3. Add a new VPN user.

Go to “Control Panel” > “Applications” > “VPN Service” > “VPN Client Management” > “Add VPN Users”. Administrators can choose the connection type (L2TP/IPSec、PPTP or OpenVPN) for each user.

Note: In QTS version 4.2.2 or below, only local NAS users are allowed to be VPN users. Domain users are allowed to be VPN users after upgrading to QTS 4.3 and installing the “QVPN Service” application.

4. Setup port forwarding on your router

If your QNAP NAS is located behind a NAT router, you need to open the ports on the NAT router and forward these ports to the fixed LAN IP of the NAS. This function is available on most routers and is often known as "Port Forwarding", "NAT Server" or "Virtual Server". The following is the corresponding port number of each protocol; please follow the router provider’s instructions to enable port forwarding.

Protocol Port
L2TP/IPsec UDP 500、UDP 1701、UDP 4500
PPTP 1723
OpenVPN UDP 1194 (Default)

You can also use your WAN IP or myQNAPcloud DDNS to connect to your QNAP NAS. If you want to enable the myQNAPcloud service, please click “myQNAPcloud Service” to open the “myQNAPcloud setting page”. You can get more detailed instructions from: http://www.qnap.com/i/useng/trade_teach/

Appendix. Use VPN software to connect to the internal network.

L2TP/IPsec settings on Windows 8

  1. Go to “Control Panel” > “Network and Internet” > “Network and Sharing Center” and select “Set up a new connection or network”.
  2. Select “Connect to a workplace”.
  3. Select “Use my Internet connection (VPN)”.
  4. Enter your myQNAPcloud name or IP address in “Internet address”. You can also name your connection in “Destination name”.
  5. Go to “Control Panel” > “Network and Sharing Center” > “Change adapter settings”, right click on the VPN connection and select “Properties”.

  6. Go to the “Security” tab, select the “Type of VPN” as L2TP/IPsec then click “Advanced settings”.
  7. Select “Use preshared key for authentication” and enter the same key as the server’s settings.
  8. You can now connect to the VPN.

Please note, if your NAS is behind a NAT router, please follow this configuration: https://support.microsoft.com/zh-tw/kb/926179/

 

Setting L2TP/IPsec on Mac OS X10.10

  1. Go to “System Preferences” > “Network”.
  2. Select “Add new service (+)” and choose “VPN” in “Interface”. Choose “L2TP/IPsec” in “VPN Type”. You can also name your connection in “Service Name”.
  3. Enter your myQNAPcloud name or IP address in “Server Address” and your QNAP NAS user name in “Account Name”. Then click “ Authentication Settings”, and enter the password & preshared key.

  4. Click “Connect” to connect to the VPN.

Setting L2TP/IPsec on Android 5.0

  1. Go to “Settings” > “VPN”. Click “Add VPN profile”.
  2. Enter “Name” and choose the type as “L2TP/IPsec PSK”
  3. Enter “IPsec Pre-shared key”.
  4. Click the VPN profile and enter your username and password to start connection.

Setting L2TP/IPsec on iOS 8

  1. Go to “Settings” > “General” > “VPN”.
  2. Choose “Add VPN Configuration…”.
  3. Choose “L2TP” and name your connection in “Description”, before entering the myQNAPcloud name or IP address in “Server”, and then your QNAP NAS username, password and preshared key.
  4. Go to “Settings” > “General” > “VPN” to connect to the VPN.

PPTP settings on Windows 8

  1. Go to “Control Panel” > “Network and Internet” > “Network and Sharing Center” and select “Set up a new connection or network”.
  2. Select “Connect to a workplace”.
  3. Select “Use my Internet connection (VPN)”.
  4. Enter your myQNAPcloud name or IP address in “Internet address”. You can also name your connection in “Destination name”.
  5. Go to “Control Panel” > “Network and Sharing Center” > “Change adapter settings” and right click this VPN connection then select “properties”.

  6. Enter “Security” page, select the “Type of VPN” as PPTP.
  7. You can now start using the VPN.

Setting PPTP on Mac OS X10.10

  1. Go to “System Preferences” > “Network”.
  2. Select “Add new service (+)” and choose “VPN” in “Interface”. Choose “PPTP” in “VPN Type”. You can also name your connection in “Service Name”.
  3. Enter your myQNAPcloud name or IP address in “Server Address” and your QNAP NAS user name in “Account Name”. Then click “ Authentication Settings”, enter the password and preshared key.
  4. Click “Connect” to start using the VPN.

Setting PPTP on Android 5.0

  1. Go to “Settings” > “VPN”. Click “Add VPN profile”.
  2. Enter “Name” and choose the type as “PPTP”
  3. Click the VPN profile and enter your username and password to start the connection.

Setting L2TP/IPsec on iOS 8

  1. Go to “Settings” > “General” > “VPN”.
  2. Choose “Add VPN Configuration…”.
  3. Choose “PPTP” and name your connection in “Description”, before entering the myQNAPcloud name or IP address in “Server”, and then your QNAP NAS username and  password.
  4. Go to “Settings” > “General” > “VPN” to start the VPN connection.
 

Set up OpenVPN on Mac OS X 10.11

  1. Download and install Tunnelblick from https://tunnelblick.net/
  2. Launch Tunnelblick.
  3. Download the settings files from your QNAP NAS, including the certification file “ca.crt” and the configuration file “openvpn.ovpn”.
  4. Open “openvpn.ovpn” and replace “OPENVPN_SERVER_IP” with your NAS IP address.
  5. Double click on the configuration file (or right click it and import the file with Tunnelblick).
    The certification file will be imported automatically.
  6. Click “Connect”.
  7. Enter your NAS username and password to activate the connection.
 

Set up OpenVPN on iOS 9

  1. Install OpenVPN Connect from https://itunes.apple.com/us/app/openvpn-connect/id590379981?mt=8
  2. Download the settings files from your QNAP NAS, including the certification file “ca.crt” and the configuration file “openvpn.ovpn”.
  3. Open “openvpn.ovpn” and replace “OPENVPN_SERVER_IP” with your NAS IP address.
  4. Open the configuration file with OpenVPN Connect (you can send the file to your email address and open it on your device, or you can send the file to the OpenVPN folder via PC with a third-party application such as “iTools for Windows”) and enter your NAS username and password to activate the connection.
    If you have imported the configuration file to the OpenVPN folder you will see it in OpenVPN Connect.

*Please ensure this option on your iOS device is enabled: “Settings” > ”OpenVPN” > “Advanced Settings” > ”Force AES-CBC cipher suites”.

 

Set up OpenVPN on Android 5.0

  1. Install OpenVPN Connect from https://play.google.com/store/apps/details?id=net.openvpn.openvpn&hl=en
  2. Download the settings files from your QNAP NAS, including the certification file “ca.crt” and the configuration file “openvpn.ovpn”.
  3. Open “openvpn.ovpn” and replace “OPENVPN_SERVER_IP” with your NAS IP address.
  4. Import your settings files to the folder on your Android device.
  5. Launch OpenVPN Connect and select "Import" in the top-right menu. Find and import the configuration file. Then follow the instructions to import the certification file.
  6. Enter your NAS username and password to activate the connection.
 

Set up OpenVPN on Windows

  1. Download and install OpenVPN from http://openvpn.net/index.php/open-source/downloads.html/
    The default folder for the installation is C:\Program Files\OpenVPN
  2. Download the settings files from your QNAP NAS, including the certification file “ca.crt” and the configuration file “openvpn.ovpn”.
  3. Open “openvpn.ovpn” and replace “OPENVPN_SERVER_IP” with your NAS IP address.
  4. Place “ca.crt” and “openvpn.ovpn” in the folder C:\Program Files\OpenVPN\config
  5. Use an administrator's account to launch OpenVPN and activate the connection.
 
Datum vydání: 2013-07-06
Bylo to pro vás to užitečné?
Děkujeme vám za vaši zpětnou vazbu.
Děkujeme vám za vaši zpětnou vazbu. Máte-li nějaké dotazy, kontaktujte prosím adresu support@qnap.com
63% lidí si myslí, že to pomáhá.