From 394ed308c91bb88c6872c883af4d9f96d3014ae3 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 25 Jan 2022 14:08:27 +0100 Subject: [PATCH] [vpn] add new endpoints --- openwrt/vpn-add.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/openwrt/vpn-add.sh b/openwrt/vpn-add.sh index e1a79c1..f13b08e 100755 --- a/openwrt/vpn-add.sh +++ b/openwrt/vpn-add.sh @@ -17,7 +17,7 @@ device_name=$1; shift # Whitelisting of enabled networks case $device_name in - *-09??|*-0a??) + *-03??|*-09??|*-0a??) device_id=$(echo $device_name | sed 's/.*-\(....\)$/\1/') vpnserver_id=$(echo $device_id | sed 's/\(..\)..$/\1/') @@ -25,10 +25,16 @@ case $device_name in vpn_endpoint_host=vpn-2a0ae5c1${vpnserver_id}.ungleich.ch case $vpnserver_id in - 09) + 03) # cdist, viirb, linthal + vpn_endpoint_pubkey="ft68G2RID7gZ6PXjFCSCOdJ9yspRg+tUw0YrNK9cTxE=" + ;; + 05) # cdist, vigir, linthal + vpn_endpoint_pubkey="oaFiIVV1NjvDcfdtwJqR4F3k2XIC07npNgj0YjIEem4=" + ;; + 09) # k8s, viwib2 made, linthal vpn_endpoint_pubkey="vnDJHqkAdMs8QkiIQizGGcPlaQfAwVBUvTBrYKfDZmE=" ;; - a0) + a0) # k8s, viwib2 made, diesbach vpn_endpoint_pubkey="Hxb5lV5r90r3hT9/JsMM8zIzrzYfXHCtt1jFtPgDlCQ=" ;; esac