Qnap’ı VPN Server Olarak Nasıl Konfigre Edebilirsiniz?

I – Qnap’ı VPN Server Olarak Nasıl Konfigre Edebilirsiniz?

.

I – Qnap’ı VPN Server Olarak Nasıl Konfigre Edebilirsiniz?

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.

VPNservice012

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. You must disable active VPN clients. The client and server services cannot be run at the same time.
  3. L2TP/IPsec is supported in QTS version 4.2.0 or above.

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.
    VPNservice032

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.
    VPNservice042

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.
    VPNservice052

3. Add a new VPN user.

Go to “Control Panel” > “Applications” > “VPN Service” > “VPN Client Management” > “Add VPN Users”. Administrators can choose the connection types of other users to each protocol.

VPNservice062

Note: Only local users are currently allowed to use the VPN service.

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”.
    VPNservice074
  2. Select “Connect to a workplace”.
    VPNservice084
  3. Select “Use my Internet connection (VPN)”.
    VPNservice094
  4. Enter your myQNAPcloud name or IP address in “Internet address”. You can also name your connection in “Destination name”.
    VPNservice104
  5. Go to “Control Panel” > “Network and Sharing Center” > “Change adapter settings”, right click on the VPN connection and select “Properties”.
    VPNservice114
    VPNservice124
  6. Go to the “Security” tab, select the “Type of VPN” as L2TP/IPsec then click “Advanced settings”.
    VPNservice132
  7. Select “Use preshared key for authentication” and enter the same key as the server’s settings.
    VPNservice142
  8. You can now connect to the VPN.
    VPNservice154

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

Setting L2TP/IPsec on Mac OS X10.10

  1. Go to “System Preferences” > “Network”.
    VPNservice164
  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”.
    VPNservice172
  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.
    VPNservice182
    VPNservice192
  4. Click “Connect” to connect to the VPN.

Setting L2TP/IPsec on Android 5.0

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

Setting L2TP/IPsec on iOS 8

  1. Go to “Settings” > “General” > “VPN”.
    VPNservice244
  2. Choose “Add VPN Configuration…”.
    VPNservice254
  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.
    VPNservice262
  4. Go to “Settings” > “General” > “VPN” to connect to the VPN.
    VPNservice272

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”.
    VPNservice075
  2. Select “Connect to a workplace”.
    VPNservice085
  3. Select “Use my Internet connection (VPN)”.
    VPNservice095
  4. Enter your myQNAPcloud name or IP address in “Internet address”. You can also name your connection in “Destination name”.
    VPNservice105
  5. Go to “Control Panel” > “Network and Sharing Center” > “Change adapter settings” and right click this VPN connection then select “properties”.
    VPNservice115
    VPNservice125
  6. Enter “Security” page, select the “Type of VPN” as PPTP.
    VPNservice282
  7. You can now start using the VPN.
    VPNservice155

Setting PPTP on Mac OS X10.10

  1. Go to “System Preferences” > “Network”.
    VPNservice165
  2. Select “Add new service (+)” and choose “VPN” in “Interface”. Choose “PPTP” in “VPN Type”. You can also name your connection in “Service Name”.
    VPNservice322
  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.
    VPNservice332
  4. Click “Connect” to start using the VPN.

Setting PPTP on Android 5.0

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

Setting L2TP/IPsec on iOS 8

  1. Go to “Settings” > “General” > “VPN”.
    VPNservice245
  2. Choose “Add VPN Configuration…”.
    VPNservice255
  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.
    VPNservice302
  4. Go to “Settings” > “General” > “VPN” to start the VPN connection.
    VPNservice312

OpenVPN on a Windows PC

  1. Download and install OpenVPN from: http://openvpn.net/index.php/open-source/downloads.html
  2. Using the administrator account, open the OpenVPN client.
  3. Download the settings files from your QNAP NAS (“Control Panel” > “Applications” > “VPN Service” > “VPN Server Setting”.)
  4. Open openvpn.ovpn and change “OPENVPN_SERVER_IP” to “NASIP”.
  5. Move “ca.crt” and “openvpn.ovpn” to the folder “OpenVPNconfig” where you installed OpenVPN.

OpenVPN on Mac

  1. Download and install OpenVPN from: https://code.google.com/p/tunnelblick/
  2. Download the settings files from your QNAP NAS (“Control Panel” > “Applications” > “VPN Service” > “VPN Server Setting”.)
  3. Open openvpn.ovpn and change “OPENVPN_SERVER_IP” to “NASIP”.
  4. Put “ca.crt” and “openvpn.ovpn” under the configuration file.

https://www.qnap.com/i/en/tutorial/con_show.php?op=showone&cid=3

.

VN:F [1.9.22_1171]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
How To Set Up A Qnap Nas As A VPN Server?Qnap’ı VPN Server Olarak Nasıl Konfigre Edebilirsiniz?, 10.0 out of 10 based on 2 ratings

6 Responses to Qnap’ı VPN Server Olarak Nasıl Konfigre Edebilirsiniz?

  1. Samet Dogan says:

    Merhabalar ;
    vpn yapıldığında vpn yapan kullanıcının ınternete kendı baglantısından(kendı modemınden)cıkmasını ıstıyoruz

  2. Gijs says:

    Can you tell me what ip-range to use in the VPN-server settings?
    In your example you use 10.1.0.1 – 10.1.0.254
    Is this because in your local network your pc is at 10.1.0.x? Or should I use always another subnet fot the VPN-connection?

  3. burado51 says:

    You can use whatever you want in your IP Range, 10.1.0.x is just an example

  4. Doc says:

    I had to use the IP address just below the client IP addresses in the VPN setup. Clients were 10.2.0.2-10.2.0.254 so the gateway to connect on the VPN was 10.2.0.1. For Mac to connect, used afp://10.2.0.1 with Apple File Protocol enabled.

    Mac Instructions
    1. Open your VPN connection
    2. Go to the Finder and hit apple-K (Connect to Server)
    3. In the Server Address box enter the IP address of the computer you want to log into with this prefix afp://
    4. Click on the Connect button

    The share should now appear in the Finder window sidebar. Hope this works for you and good luck.

  5. nitrofx says:

    @ Gijs

    that is a good question. I would set the IPs to match your local network in order to have acccess to your local devices.

  6. angelo says:

    Hi all,

    I’m trying to configure OpenVpn server on my QNAP (QTS -453A). I can connect to the server without problem (Client on Windows 7). The problem is that although the user I’m using to connect to the vpn server can only access to its home directory, if I open the VPN IP of the NAS from Explorer , I can browse all the shared directories.
    Where is the mistake? Thank you for any help.

    Angelo

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>