vpn.sh: update w/ new targets
This commit is contained in:
parent
56af05b9f3
commit
f38f2adb38
1 changed files with 23 additions and 0 deletions
23
vpn.sh
23
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"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue