[vpn] add new endpoints
This commit is contained in:
parent
e1785e168b
commit
394ed308c9
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue