vpn: add new vpn

This commit is contained in:
Nico Schottelius 2023-09-14 12:32:07 +02:00
parent c4d8d7b403
commit 19f8b867c8
1 changed files with 14 additions and 0 deletions

14
vpn.sh
View File

@ -7,6 +7,20 @@ case "$1" in
uzh|uzhsplit)
vpnc --no-detach "$1"
;;
runa)
pass git checkout nico-privat
pass tws/runa/vpn-endpoint > /dev/null
endpoint=$(pass tws/runa/vpn-endpoint)
authgroup=$(pass tws/runa/vpn-authgroup)
vpn_user=$(pass tws/runa/vpn-user)
echo "Use: pass -c tws/runa/vpn-password"
sudo openconnect \
--protocol=gp ${endpoint} \
--user ${vpn_user} \
--authgroup=${authgroup} \
--allow-insecure-crypto \
;;
tws)
# Ensure we are on the right branch and pass has been unlocked
pass git checkout nico-privat