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

Revert "Fix client subnet mask"

This commit accidentally breaks IPv6 when several clients are connected at the
same time, and it is more correct to use /24 and /64 subnets as it is used in
WireGuard examples (for example, Basic Usage [1]).

[1]: https://www.wireguard.com/papers/wireguard.pdf.

This reverts commit 0d65a00844.

Signed-off-by: ElXreno <elxreno@gmail.com>
This commit is contained in:
ElXreno 2020-11-16 23:59:00 +03:00
parent a1b1ac2ece
commit 34c0b6a846
No known key found for this signature in database
GPG Key ID: 684214850DBE3423

View File

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