This guide was produced using QTS v4.2.3
- The first step is to download the OpenVPN configuration files to any folder on your desktop.
- Extract the zip and choose a server configuration file based on the location of the server you would
like to connect to (one of the *.conf files, eg.
- Copy the selected .conf file and the following files from the downloaded zip to any of the shared
folders on your NAS. Eg:
- Now we need to enable SSH access in QTS. Open QTS, navigate to Control Panel -> Network Services -> Telnet / SSH.
- Check the box Enable SSH service and click Apply. You can disable SSH access once the steps are complete. Alternatively you can enable the Telnet service and use a telnet client to connect to the NAS instead of SSH.
- Now we setup the OpenVPN connection. In QTS, go to Control Panel -> Applications -> VPN Client.
- Select Add -> OpenVPN.
Complete the next window with the server information (defined in each *.conf files download in
step 1) and your IVPN credentials:
- Server address is the address of the server which is in the .conf file you have previously
- The first item next to Port is the protocol which is dependent on the configuration you have chosen to use, TCP versions have their own config files (either UDP or TCP). If you're not sure what to select see what are TCP connections.
- Port is the port of the connection which is in the .conf file you have previously decided to
- User name is your IVPN user name (starts with 'ivpn', not your email address).
- Password is your IVPN password (by default the password you entered during signup).
- Encryption - Select High (AES 256 bit)
- Certificate - Select the certificate file
ca.crtfrom where you downloaded the configuration files to earlier.
- Check all the boxes except 'Specify the subnet mask'
- Select Create.
- Server address is the address of the server which is in the .conf file you have previously chosen. eg.
- You'll now have a VPN connection defined in the VPN Client section section. Attempting to connect will fail though. The QTS configuration file will need to be updated and some extra files copied to the NAS drive.
- Now we need to SSH into the QNAP. Open an SSH client and connect to QTS using the admin account. Password will be the same as the 'admin' account password for QTS (you can change this password by logging into QTS using any account that is in the administrator group and going to Control panel -> Privilege Settings -> Users).
- Navigate to /etc/config/openvpn/clients/
- Check directory contents as shown below. Each new VPN connection is saved as a file in the format clientN. If this is the first VPN client ever configured on this NAS, you will only have one file named client1. The file that will need to be modified is the last created.
- Open this file using either a command line editor such as vi or copy this file to a shared folder on the NAS (eg. cp client1 /share/Public) and open it with your editor of choice. The file will look similar to that shown below with differences depending on your VPN profile setup.
- Open the *.conf configuration file you chose earlier in a text editor. Copy and paste the following
lines into your new openvpn configuration file
persist-tun persist-key persist-remote-ip key-direction 1 ns-cert-type server
- You also need to copy and paste the contents of the ta.key that you downloaded earlier. Add its content in-between two new lines: eg. <tls-auth> and </tls-auth>
- If you copied the config file to a shared folder copy the new version of the file to the openvpn directory, eg. cp /share/Public/client1 client1
- Open QTS and go back to Control Panel -> Applications -> VPN Client. Click connect on the VPN profile you created earlier.
Was this answer helpful?