mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
Save client name in server configuration
This commit is contained in:
parent
7426347bcd
commit
52f922fc86
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ Endpoint = $ENDPOINT
|
|||
AllowedIPs = 0.0.0.0/0,::/0" >>"$HOME/$SERVER_WG_NIC-client-$CLIENT_NAME.conf"
|
||||
|
||||
# Add the client as a peer to the server
|
||||
echo -e "\n[Peer]
|
||||
echo -e "\n### Client $CLIENT_NAME
|
||||
[Peer]
|
||||
PublicKey = $CLIENT_PUB_KEY
|
||||
PresharedKey = $CLIENT_PRE_SHARED_KEY
|
||||
AllowedIPs = $CLIENT_WG_IPV4/32,$CLIENT_WG_IPV6/128" >>"/etc/wireguard/$SERVER_WG_NIC.conf"
|
||||
|
|
Loading…
Add table
Reference in a new issue