How do I connect to Synology's VPN Server via an iOS device?

How do I connect to Synology's VPN Server via an iOS device?

Purpose

This article explains how to connect your iOS device to the VPN Server on a Synology NAS. If you want to connect to the VPN Plus Server on a Synology Router, please refer to this article.

Environment

  • VPN server: the VPN Server package on a Synology NAS.
  • VPN client: iOS devices. We take iOS 13 as an example in this article. The actual steps may vary across OS versions and devices.

Resolution

Before you start

  1. Set up VPN Server on a Synology NAS (refer to this article).
  2. Ensure the Internet connectivity of the Synology NAS. Set up port forwarding rules if needed (refer to this article).

Set up an OpenVPN connection

  1. Go to DSM > VPN Server > OpenVPN via the web browser on a computer.
  2. Click Export configuration to download a .zip file, and extract it to get VPNConfig.ovpn and README.txt.
  3. Open VPNConfig.ovpn with a text editor and replace "YOUR_SERVER_IP" with the public IP address or domain name of your Synology NAS. If you wish to configure the OpenVPN server as the default gateway of your iOS device, remove the hashtag from the line "redirect-gateway def1".
  4. Save the VPNConfig.ovpn file to your iOS device.
  5. On your iOS device, open Apple App Store to download and install OpenVPN Connect.
  6. Open OpenVPN Connect and go to Import Profile > FILE.
  7. Select the VPNConfig.ovpn file and tap IMPORT.
  8. Enter your DSM username in the Username field and tap ADD.
  9. Switch on the toggle to start an OpenVPN connection.
  10. Tap CONTINUE in the pop-up message to proceed with the connection. You don't need to manually import a certificate at this step because the client certificate has been included in the configuration file.
  11. When CONNECTED displays on the Profiles page, you have established the OpenVPN connection through VPN Server on your iOS device.

Set up an L2TP/IPSec VPN connection

  1. On your iOS device, go to Settings > General > VPN.
  2. Tap Add VPN Configuration… to create a VPN profile.
  3. Configure the following settings and tap Save:
    Option Operation
    Type Select L2TP from the drop-down menu.
    Description Enter a name for your VPN profile.
    Server Enter the public IP address or domain name of your Synology NAS.
    Account Enter the username of your DSM account.
    Password Enter the password of your DSM account.
    Secret Enter the IPSec pre-shared key configured in VPN Server (check it at DSM > VPN Server > L2TP/IPSec).
    Send All Traffic Enable this option to send all your traffic via the VPN connection.
  4. Tap the VPN profile you have added.
  5. Toggle on the switch beside Status.
  6. When the status becomes Connected, you have established the L2TP/IPSec VPN connection through VPN Server on your iOS device.

Notes:

  • PPTP VPN does not apply to devices running iOS 10 or above.
Purpose
Environment
Contents
Resolution
Before you start
Set up an OpenVPN connection
Set up an L2TP/IPSec VPN connection
Further reading