From f38f2adb389cea8fdc2b2ffc4f73a5d4cd48e4ae Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 13 Dec 2022 14:59:22 +0100 Subject: [PATCH] vpn.sh: update w/ new targets --- vpn.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/vpn.sh b/vpn.sh index a4e8594..2b98cc9 100755 --- a/vpn.sh +++ b/vpn.sh @@ -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" ;;