How to configure Synology 5.1 NAS

This is the tutorial on how to set up your Synology NAS based on DiskStation Manager (DSM) 5.1 version. The instructions were made for connection to the Swedish #3 server. Special thanks to @davmojo for providing these instructions.

1. Login to your Synology NAS control panel.

Página de inicio de sesión del DSM de Synology NAS en el navegador en 192.168.1.1 mostrando el nombre de usuario admin, el campo de contraseña y el botón Sign in

2. Go to Control Panel.

Escritorio del DSM de Synology con una flecha roja apuntando al icono del Panel de control

3. Go to Network.

Panel de control de Synology mostrando la opción Network resaltada en la sección Connectivity

4. Create a new VPN Profile.

Pestaña de interfaz de red de Synology con el menú desplegable Create abierto y la opción 'Create VPN profile' resaltada

5. Choose OpenVPN option.

Diálogo Create Profile de Synology mostrando el método de conexión VPN con la opción OpenVPN seleccionada

6. Download the latest CA certificates from this link and extract the package.

7. Return to your web browser and enter the following details:

Profile Name – choose any name you like;
Server Address – the NordVPN server hostname or IP address;
User name – your NordVPN service username;
Password – your NordVPN service password;

You can find your NordVPN service credentials (service username and service password) in the Nord Account dashboard:

  1. Click Set up NordVPN manually.

    Página Servicios > NordVPN de Nord Account con NordVPN resaltado en la barra lateral y el botón 'Set up NordVPN manually' visible
     
  2. You will receive a verification code in your email that you use for NordVPN services. Type the code in: 

    Pantalla 'Verify your email' de Nord Account con un campo de entrada de código para introducir el código de verificación enviado por correo electrónico
     
  3. Copy the credentials using the “Copy” buttons on the right:

    Página de configuración manual de Nord Account mostrando las credenciales del servicio con los campos Username y Password y los botones de copia resaltados
     
Port – 1194 (recommended);
Protocol – UDP (recommended);
Cerificate – go to the folder where you have extracted the CA certificates and select the corresponding CA certificate to the server you will use.

Click Next.

Formulario de configuración general Create Profile de Synology con el nombre de perfil NordVPN, la dirección del servidor 178.73.210.104, el puerto 1194, el protocolo UDP y el campo de certificado

 

8. On the Advanced settings screen – enable all the options.

Pantalla de configuración avanzada Create Profile de Synology con las cuatro opciones marcadas, incluyendo compresión, puerta de enlace predeterminada y reconexión

9. Click Apply and you will return to the Network Interface list.

Lista de interfaces de red de Synology mostrando el perfil VPN - NordVPN_OpenVPN en estado desconectado

10. If you click the VPN Profile you have just created and click connect you will see the following error in red.

Interfaz de red de Synology mostrando VPN - NordVPN_OpenVPN con un mensaje de error rojo 'Connection failed or certificate expired'

11. You will now need to manually edit the OpenVPN profile on your Synology NAS. To do so you need to SSH as root.
Firstly enable SSH from the Terminal & SNMP option.

Configuración Terminal & SNMP del Panel de control de Synology con la casilla 'Enable SSH service' marcada y el puerto configurado como 22

12. Now open your favorite terminal/ssh program (Mac OSX Terminal shown here) and type:
ssh root@(ip of your synology).

The root password is the password of your administrator user (you may have changed it when initializing your NAS).

Ventana de Terminal de macOS mostrando el inicio de sesión SSH exitoso en el NAS de Synology como root en 192.168.1.1 con el indicador de Synology

13. Now you need to change directories. Type and then press enter at the end of the line:

cd /usr/syno/etc/synovpnclient/openvpn
ls -al

In the screenshot below you see three files:
– ca_.crt is the certificate you have uploaded (ca.crt);
– client_ is the file containing the OpenVPN configuration;
– ovpnclient.conf contains the Synology setup for OpenVPN connections.

Terminal SSH mostrando la salida de ls -al del directorio OpenVPN de Synology con los archivos ca_.crt, client_ y ovpnclient.conf

14. You need to create a new file which contains the tls-auth key.
Using vi is the easiest way to do this. Type: (replace with the actual connection id)
vi tls_auth_.key

Terminal SSH mostrando el listado del directorio actualizado y el comando vi para crear el archivo tls_auth_.key

15. Return to the directory where you have extracted CA certificates. You can also see the TLS-AUTH.key files there. Select the corresponding TLS-AUTH.key file to the server you are setting up the connection with and open it with a text editor program. Copy all the text in the file.

16. Open the terminal window again. Press A and then paste the text you have copied from the TLS-auth.key file. It should look similar to the text below.

Terminal SSH en el editor vi mostrando el contenido de clave estática OpenVPN V1 pegado en el archivo de clave tls-auth

17. Press Escape and then type :wq

Terminal SSH en el editor vi con el comando :wq introducido para guardar y salir del archivo de clave tls-auth

18. If you would list the content of the directory using ls -al command you should see something similar to the image below.

Terminal SSH mostrando la salida de ls -al confirmando que el nuevo archivo tls_auth_o1430912123.key aparece en el directorio

19. Now you need to finish the client_(connection_id) file. Using vi open the file and add the following,  remember to replace the TLS-AUTH.key file with the name of the keyfile you have created earlier:

cipher AES-256-CBC
remote-cert-tls server
auth SHA512
tls-auth tls_auth_o1430912123.key 1
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
log-append /volume1/tmp/NordVPN.log

It should look similar to the image below.

Terminal SSH en el editor vi mostrando el archivo de configuración del cliente OpenVPN con los ajustes cipher, tls-auth y otros de conexión NordVPN añadidos

20. Save the file by pressing Escape, typing :wq

21. Return to your web browser window. Click Connect and you will see the Connecting sign. Please wait for up to 2 minutes.

Interfaz de red de Synology mostrando VPN - NordVPN_OpenVPN con el estado 'Connecting'

22. If everything is done properly you will be connected to VPN.

Interfaz de red de Synology mostrando VPN - NordVPN_OpenVPN con el estado 'Connected', la dirección IP 10.8.8.66 y las estadísticas de transferencia

23. To disconnect simply click on Disconnect button in the Synology Network list.

¿Te ha resultado útil este artículo?

¿Sigues teniendo problemas?

  • Chat en tiempo real

  • Formulario de correo electrónico

Al hacer clic en "Chatear con el equipo de asistencia", aceptas nuestros Términos de servicio y reconoces nuestra Política de privacidad. La funcionalidad del chat se basa en las cookies. Al iniciar el chat, aceptas su uso. Más información en nuestra Política de cookies.