1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-06-05 04:50:49 +00:00

Fix client subnet mask

The server configuration has `$CLIENT_WG_IPV4/32,$CLIENT_WG_IPV6/128` and it is inconsistent with the client configuration `$CLIENT_WG_IPV4/24,$CLIENT_WG_IPV6/64`.

We only want 1 IP for the peer, so the fix is changing clients subnets to /32 and /128.
This commit is contained in:
randomshell 2020-07-01 11:27:13 +00:00
parent 59570c786b
commit dc8846f0f1

View File

@ -38,7 +38,7 @@ function addClient() {
# Create client file and add the server as a peer
echo "[Interface]
PrivateKey = $CLIENT_PRIV_KEY
Address = $CLIENT_WG_IPV4/24,$CLIENT_WG_IPV6/64
Address = $CLIENT_WG_IPV4/32,$CLIENT_WG_IPV6/128
DNS = $CLIENT_DNS_1,$CLIENT_DNS_2
[Peer]