mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03: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:
parent
59570c786b
commit
dc8846f0f1
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue