Skip to content

Instantly share code, notes, and snippets.

@nicnocquee
Created August 5, 2014 06:01
Show Gist options
  • Save nicnocquee/18f621f3ba1ebe772129 to your computer and use it in GitHub Desktop.
Save nicnocquee/18f621f3ba1ebe772129 to your computer and use it in GitHub Desktop.
Connect to Witopia openvpn from synology diskstation
Anyway, to have Witopia work on a Synology DSM 4 NAS with OpenVPN/SSL one must manually edit the config file within the Synology NAS.
As an outline, we're going to create an OpenVPN connection by editing the config files Synology DSM 4 makes.
Requires:
- Synology NAS with DSM 4
- Witopia account & download the "Raw" files as a ZIP from Witopia's My Dashboard
- SSH enabled on your Synology DSM
If you don't have the above done, this process will not make sense/will not be valid.
Okay:
1. Create your OpenVPN profile in DSM via Control Panel>VPN the best you can. Use the CNXX.crt file as your certificate from the RAW zip file.(I assume you now have only one profile setup in DSM)
2. SSH into your Synology NAS with root user (password should be the same as admin)
3. Navigate to the OpenVPN config folder:
/usr/syno/etc/synovpnclient/openvpn
4. Use cp to copy your config file to a share location, the config file should look something like client_XX (copy to a share folder your computer can access)
5. Edit the config file on your computer by copying the contents of Witopia's SampleConfig.txt in the RAW zip. Overwrite anything which was in the original file from your DSM.
6. Copy the newly edited file back to the DSM
7. Copy all CRT & KEY files from the Witopia RAW.zip to your Synology's OpenVPN config folder as well
8. Go to the DSM VPN control panel (in your web browser) & click connect. Done!
Note: This may be obvious to some, but not for others; saving the profile in the DSM VPN panel will undo your work to the config file. So if prompted to save, press cancel. You should now only use the connect/disconnect button in that panel.
The above worked for me. Good luck!
http://sunnyshirazian.blogspot.jp/2012/07/synology-dsm-4-openvpn-with-witopia.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment