Add wireguard aliases for homeserver

This commit is contained in:
Adam Goldsmith 2023-05-03 22:30:30 -04:00
parent 645710c31d
commit d14b4ebee9

View File

@ -1,2 +1,5 @@
alias wgcms="sudo systemctl restart wg-quick@wg-cms"
alias wgcmsD="sudo systemctl stop wg-quick@wg-cms"
for interface in cms homeserver
do
alias wg${interface}="sudo systemctl restart wg-quick@wg-${interface}"
alias wg${interface}D="sudo systemctl stop wg-quick@wg-${interface}"
done