disable and enable wireguard clients

This commit is contained in:
shelleycat485 2020-10-21 22:35:29 +01:00
parent 63733b44a5
commit 9dd67114f8
6 changed files with 272 additions and 15 deletions

View file

@ -25,4 +25,9 @@ while read -r LINE; do
echo -e "$CLIENT_NAME \t $PUBLIC_KEY \t $CD_FORMAT"
done < clients.txt
} | column -t -s $'\t'
} | column -t -s $'\t'
cd /etc/wireguard || return
echo "::: Disabled clients :::"
grep 'disabled### begin client' wg0.conf | sed 's/#//g; s/begin//'