OpenVPN On Synology
In this guide we'll show you how to set up an OpenVPN connection on your Synology.
Setup: Download the OctaneVPN.crt file here
4.Fill in the General Settings as indicated
- Profile name - OctaneVPN
- Server address - gw1.iad1.octanevpn.com (or choose a different gateway)
- User name - Your OctaneVPN username
- Password - Main account password
- Port - 8888
- Protocol - UDP
- Certificate - Browse to the OctaneVPN.crt file that you downloaded
5. Advanced Settings
- Check Use default gateway on remote network
- 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
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 the Miami gateway in this example (gw1.mia2)
sed -i 's/gw1.iad1/gw1.mia2/g' client_o1395162101
c) You can check the IP from the command line of the DS using
curl ipv4.icanhazip.com