Banner
 
  Home QNAP - QPKG OpenVPN  
 
     
 
 

Like the QPKGs, how about donating me a beer ? Laughing

OpenVPN QPKG
Written by Michael Dahl   

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 Cool

Attachments:
Download this file (openvpnrun.zip)openvpnrun.zip[Here is my openvpnrun.sh]0 Kb
 

Comments  

 
0 #6 Warwick 2011-08-19 00:09
Where can i get some instructions on creating a config file?
Quote
 
 
0 #5 ctino 2011-08-01 21:03
Hi, On our QNAP SS-439 we were running OpenVPN for quite a while. When installing Observium on another host to plot SNMP data from the QNAP, it turned out a Segmentation fault arises when OpenVPN is running. Perhaps it doesn't know how to handle the tun0 interface?
Quote
 
 
0 #4 Reyer 2010-12-02 12:38
I get the following error
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'
Quote
 
 
0 #3 alwin 2010-06-05 22:18
Thx,

works perfect. Now starting to work on the config file. Doesn't seem to be a job over night
Quote
 
 
0 #2 Michael Dahl 2010-06-02 18:38
Yes, you can, just remember to change all paths
Quote
 
 
0 #1 alwin 2010-06-01 21:14
Hi,

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
Quote
 

Add comment


Security code
Refresh

 
  Copyright © 2012 cokeman.dk Website designed by Michael DahlJoomlaWatch 1.2.11 - Joomla Monitor and Live Stats by Matej Koval
Design by handy-shop-augsburg.de/ & go-windows.de/forum/