mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
Update wireguard-install.sh
This commit is contained in:
parent
a4c46edae6
commit
a72bfae905
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ Address = $CLIENT_WG_IPV4/24,$CLIENT_WG_IPV6/64
|
|||
DNS = $CLIENT_DNS_1,$CLIENT_DNS_2" > "$HOME/$SERVER_WG_NIC-client.conf"
|
||||
|
||||
# Add the server as a peer to the client
|
||||
echo "[Peer]
|
||||
echo "
|
||||
[Peer]
|
||||
PublicKey = $SERVER_PUB_KEY
|
||||
Endpoint = $ENDPOINT
|
||||
AllowedIPs = 0.0.0.0/0,::/0" >> "$HOME/$SERVER_WG_NIC-client.conf"
|
||||
|
|
Loading…
Add table
Reference in a new issue