Synology DSM 6

In this guide we'll show you how to set up an OpenVPN connection on your Synology.

Setup: Download the OctaneVPN.crt file here

1. Open the Control Panel and go to Network

 

2. In the Network Interfaces menu and select Create VPN Profile

 

3. Select OpenVPN as the VPN Connection Method

 

4.Fill in the General Settings as indicated

  1. Profile name - OctaneVPN
  2. Server address - gw1.iad1.octanevpn.com (or choose a different gateway)
  3. User name - Your OctaneVPN username
  4. Password - Main account password
  5. Port - 8888
  6. Protocol - UDP
  7. Certificate - Browse to the OctaneVPN.crt file that you downloaded

 

 

 5. Advanced Settings

  1. Check Use default gateway on remote network
  2. Check Reconnect when the VPN connection is lost.

 

 

6. Login to the Synology as Admin user (use the same password as when you login to the web interface)

example: ssh [email protected]

Run the following commands

sudo -i [enter Synology password again]

cd /usr/syno/etc/synovpnclient/openvpn

ls -al

**Note the number attached to the client_oXXXXXXX file. This number will be unique to your Synology and must be used in the next steps

Get the config file from our servers

wget http://www.octanevpn.com/vpn-client/octane.cfg

Run this command, substituting the number from your client file

sed -i 's/OCTANE/**number**/g' octane.cfg
example:
sed -i 's/OCTANE/1395162101/g' octane.cfg

Copy the config to client_oXXXXXXXX. This will leave a backup copy of your configuration in case you have to make any changes in the GUI later.

cp octane.cfg client_oXXXXXXXXX
example:
cp octane.cfg client_o1395162101

7. Go back to the web interface and click Connect

**Notes about this guide

a) Any changes made in the GUI will cause these files to be overwritten. Just re-copy octane.cfg to the client_oXXXXXX file if this happens.

b) The default configuration file is for Washington, DC (gw1.iad1). Change the gateway address by using the following command, substituting the gateway of your choice. We'll use one of the Miami gateways in this example (gw2.mia3)

sed -i 's/gw1.iad1/gw2.mia3/g' client_o1395162101

c) You can check the IP from the command line of the DS using

curl ipv4.icanhazip.com