mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-25 08:40:10 +00:00
disable and enable wireguard clients
This commit is contained in:
parent
63733b44a5
commit
9dd67114f8
6 changed files with 272 additions and 15 deletions
|
@ -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//'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue