Add wireguard aliases for homeserver

This commit is contained in:
Adam Goldsmith 2023-05-03 22:30:30 -04:00
parent 645710c31d
commit d14b4ebee9
1 changed files with 5 additions and 2 deletions

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
alias wg${interface}="sudo systemctl restart wg-quick@wg-${interface}"
alias wg${interface}D="sudo systemctl stop wg-quick@wg-${interface}"