You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-vpn/openconnect/files
Calculate Linux 394aaaba58
Sync with portage [Thu Dec 24 08:28:53 MSK 2020].
3 years ago
..
8.09-gnutls-buffer-overflow.patch Sync with portage [Tue May 12 23:37:23 MSK 2020]. 4 years ago
README.OpenRC Sync with portage [Mon Nov 23 09:03:59 MSK 2020]. 4 years ago
README.OpenRC.txt Sync with portage [Fri Apr 3 08:43:31 MSK 2020]. 4 years ago
openconnect.conf.in Sync with portage [Fri Mar 17 23:06:03 MSK 2017]. 7 years ago
openconnect.init.in-r4 Sync with portage [Fri Mar 17 23:06:03 MSK 2017]. 7 years ago
openconnect.initd.8.10 Sync with portage [Thu Dec 24 08:28:53 MSK 2020]. 3 years ago
openconnect.logrotate Sync with portage [Fri Mar 17 23:06:03 MSK 2017]. 7 years ago

README.OpenRC.txt

The init script for openconnect supports multiple vpn tunnels.


You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
instead of calling it directly:

ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0

You can then start the vpn tunnel like this:

/etc/init.d/openconnect.vpn0 start

If you would like to run preup, postup, predown, and/or postdown scripts,
You need to create a directory in /etc/openconnect with the name of the vpn:

mkdir /etc/openconnect/vpn0

Then add executable shell files:

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/*