How to install and enable OpenVPN on the QNAP nas (Atom models)
Install: Opware (qpkg, from qnap homepage)
From an SSH run this:
ipkg update ipkg install nano ipkg install openvpn |
Getting it to start on reboot.
edit /etc/config/qpkg.conf, and add: (I use the command "nano /etc/config/qpkg.conf")
|
[OpenVPNStarter] Name = OpenVPNStarter Version = 0.1 Enable = FALSE QPKG_File = Date = 2009-12-06 Shell = /share/MD0_DATA/.qpkg/openvpn/openvpnrun.sh Install_Path = /share/MD0_DATA/.qpkg/openvpn Author = cokeman.dk
|
now we must create the "/share/MD0_DATA/.qpkg/openvpn/openvpnrun.sh":
| mkdir /share/MD0_DATA/.qpkg/openvpn |
use your favorite scp program to transfer the openvpnrun.sh, attached to the guide. into "/share/MD0_DATA/.qpkg/openvpn"
Last but not at least, run the command:
| chmod +x /share/MD0_DATA/.qpkg/openvpn/openvpnrun.sh |
to configure openvpn, just edit the file easy.conf (Sorry, here you are on your own, I have only made a guide to install it on the QNAP, configuration is personal)
| nano /opt/etc/openvpn/easy.conf |
to start openvpn use the webadmin of the QNAP, to start the QPKG, that we have just made.
I hope you can get it to work, and will be as happy as I am. And if you are, please consider donating a beer for me 
|
Comments
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -q -P /opt/ipkg-qYtB5I http://ipkg.nslu2-linux.org/feeds/optware/ts509/cross/unstable/openvpn_2.1.3-2_i686.ipk'
works perfect. Now starting to work on the config file. Doesn't seem to be a job over night
I am wondering. What is the risk if my setup is just a little different. For instance, if i installed it in other directories, will the startup still work>
Hope to hear from you,
Alwin
RSS feed for comments to this post.