OpenVPN Tutorial (Mac and Windows)

Opening an OpenVPN channel with NAS Qnap is not so immediate this mini tutorial tries to explain as simply as possible how to open the channel to handle the NAS as if it was a remote disk and use the QSync folder as if it were a dropbox type Cloud disk just that This is privately managed with unlimited space and without having to subscribe to a subscription.

First, you must configure the NAS if you have not already installed the QVPN Service application that you find in AppCenter->Utility

Now open the application and in “Overview” enable OpenVpn if later you want to activate the VPN even on your Android devices or iOS here also activate the L2TP / IPSec connection otherwise you need to download a dedicated application while with this protocol just turn on The system settings

Now open the OpenVpn menu and enable the connection by configuring it as shown

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

NB TheVPN Server Port must be open in the router in the appropriate modem session, the ports to open for the various protocols are as follows:

Apply OpenVpn Connection Settings and click on “Download Certificate”

A file “NomeNas-ovpn.zip” will be saved on your disk, this file will then have to be loaded by the tunneling program you will use. Inside you will find a file “ca.crt” and “openvpn.ovpn

Procedure for Windows

  1. Download and install OpenVPN from openVpn.net
    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.

Procedure for Mac OS X

  1. Download and install Tunnelblick from Tunnelblick
  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.

For MAC OS X

With Tunnelblick just drag the file “openvpn.ovpn” previously downloaded, inside the program, enter the NAS connection credentials and open the Tunnel. At this point, the private address assigned by the home cookie is as if it became public ie by entering the address 192.168.1.XX: the port on the browser connects directly to the NAS. To create a network disk just go to Finder-> Go-> Connect to the server and enter the private router port: smb: //192.168.1.XX. When you connect will ask for the credentials of the user with whom you want to connect at this point, you just have to choose the appropriate folder and the network disk is ready.

QSync configuration

Do you want to use a Dropbox service where you can exchange and share files? With QNap, you must activate the QSync Folder.

Once the tunnel has been established, you must install the QSync client that is located at the following link for both Windows and Mac. Or, by using the “QSync Central” if you do not install it from the App Center

Choose the QSync version to install, also available for mobile devices

At this point, you just have to configure it with your credentials.

This entry was posted in Software.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*