Hey you!
As said in the part 1 of this article, I will be covering here:
- How to create a openconnect init script
So, concerning the init script I will be posting parts of the script first, and then will put a link for download at the end.
First of all, we need the shebang (#!/bin/bash) and then global variables that will be used along the script:
# Path variables PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # VPN Variables IFACE="sslvpn" VPN_USER="vpn_user" VPN_HOST="sslvpn.yourdomain.com" VPN_PASS="vpn_password" PID="/var/run/openconnect.pid" TEMP_LOG="/tmp/status.txt" INFO="Usage: $(basename "$0") (start|stop|status|restart)"
You can also define most of these options in a …
[Read more]