aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openconnect/openconnect.confd
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-01-01 10:55:51 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-01-01 10:55:51 +0000
commit1b290936086ad65427e8d3d94de41ea6e4763625 (patch)
tree6128590761ffcc1fa411e6300523266d9f825722 /testing/openconnect/openconnect.confd
parentfb430101360e0014f6b99eb96549709d8fe2361e (diff)
downloadaports-1b290936086ad65427e8d3d94de41ea6e4763625.tar.bz2
aports-1b290936086ad65427e8d3d94de41ea6e4763625.tar.xz
testing/openconnect: added initd, confd and logrotate scripts
Diffstat (limited to 'testing/openconnect/openconnect.confd')
-rw-r--r--testing/openconnect/openconnect.confd26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/openconnect/openconnect.confd b/testing/openconnect/openconnect.confd
new file mode 100644
index 0000000000..53b14e6137
--- /dev/null
+++ b/testing/openconnect/openconnect.confd
@@ -0,0 +1,26 @@
+# Variables to configure vpn tunnels where "vpnname" is the name of your vpn tunnel:
+#
+# server_vpnname
+# password_vpnname
+# vpnopts_vpnname
+#
+# The tunnel will need to be started with a symbolic link to openconnect:
+#
+# ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpnname
+#
+# If you'd like to execute a script on preup, postup, predown and postdown of the vpn tunnel, you
+# need to create executable scripts in a directory with the same name as
+# the vpn tunnel (vpn0 can be replaced with the vpn name):
+#
+# mkdir /etc/openconnect/vpn0
+# cd /etc/openconnect/vpn0"
+# echo '#!/bin/sh' > preup.sh"
+# cp preup.sh predown.sh"
+# cp preup.sh postup.sh"
+# cp preup.sh postdown.sh"
+# chmod 755 /etc/openconnect/vpn0/*"
+
+server_vpn0="vpn.server.tld"
+password_vpn0="YOUR_PASSWORD"
+# Any OPENCONNECT options my go here (see openconnect --help)
+vpnopts_vpn0="-l --passwd-on-stdin --user=YOUR_USERNAME --script=/etc/openconnect/openconnect.sh"