vpn.sh: update w/ new targets

This commit is contained in:
Nico Schottelius 2022-12-13 14:59:22 +01:00
parent 56af05b9f3
commit f38f2adb38

23
vpn.sh
View file

@ -15,6 +15,29 @@ case "$1" in
cd ~/Nextcloud/luxembourg/nico/
sudo openvpn --config nico.ovpn
;;
rm)
case $(hostname) in
bridge)
sudo wg-quick up rmr1n2
sudo wg-quick up rmr3n2
sudo wg-quick up rmr5n2
;;
nb3)
sudo wg-quick up rmr1n1
sudo wg-quick up rmr3n1
sudo wg-quick up rmr5n1
;;
blind)
sudo wg-quick up rmr2n1
sudo wg-quick up rmr4n1
sudo wg-quick up rmr6n1
;;
*)
echo "Host does not have VPN assigned" >&2
exit 1
;;
esac
;;
*)
echo "$0 lf lx"
;;