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:
parent
8152d4699c
commit
5dfc2cae9c
15
usr/share/doc/openvpn/Viitor/init/README.txt
Normal file
15
usr/share/doc/openvpn/Viitor/init/README.txt
Normal 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.
|
||||
|
|
@ -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
|
20
usr/share/doc/openvpn/Viitor/init/openvpn-server.conf
Normal file
20
usr/share/doc/openvpn/Viitor/init/openvpn-server.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user