add some example files and description how to bring openvpn into boot

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_openvpn@5950 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
segler 2011-01-26 07:21:02 +00:00
parent 8152d4699c
commit 5dfc2cae9c
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,15 @@
Initscripts for openvpn
Server:
copy openvpn-server.conf to /etc/init
Be shure to have server.conf in /etc/sysconfig/net/openvpn
ready.
Client:
copy openserver-client-..servername...conf to /etc/init and replace ..servername.. by the servername
example: cp openserver-client-..servername...conf /etc/init/openserver-client-deepspace.conf
edit the copied file and replace <servername> by the servername.
Be shure to have the config-file
client-<servername>.conf in /etc/sysconfig/net/openvpn
ready.

View File

@ -0,0 +1,20 @@
description "openvpn daemons startup"
author "Michael Freitag <Michael.Freitag@freitag-it.de>"
version 1.1
emits none special
start on (runlevel [2345] and (started rpc))
stop on runlevel [016]
console none
chdir /etc/sysconfig/net/openvpn/
pre-start script
modprobe tun
if [ ! -d /dev/net ]; then
mkdir /dev/net
fi
rm -f /dev/net/tun && mknod /dev/net/tun c 10 200
end script
exec /usr/sbin/openvpn --config client-<SERVERNAME>.conf

View File

@ -0,0 +1,20 @@
description "openvpn daemons startup"
author "Michael Freitag <Michael.Freitag@freitag-it.de>"
version 1.1
emits none special
start on (runlevel [2345] and (started rpc))
stop on runlevel [016]
console none
chdir /etc/sysconfig/net/openvpn
pre-start script
modprobe tun
if [ ! -d /dev/net ]; then
mkdir /dev/net
fi
rm -f /dev/net/tun && mknod /dev/net/tun c 10 200
end script
exec openvpn --config server.conf