mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-22 04:35:09 +00:00
parent
21d1950c00
commit
b70cba9f73
@ -112,7 +112,7 @@ AllowedIPs = $CLIENT_WG_IPV4/32,$CLIENT_WG_IPV6/128" >> "/etc/wireguard/$SERVER_
|
|||||||
# Create client file with interface
|
# Create client file with interface
|
||||||
echo "[Interface]
|
echo "[Interface]
|
||||||
PrivateKey = $CLIENT_PRIV_KEY
|
PrivateKey = $CLIENT_PRIV_KEY
|
||||||
Address = $CLIENT_IPV4/24,$CLIENT_IPV6/64
|
Address = $CLIENT_WG_IPV4/24,$CLIENT_WG_IPV4/64
|
||||||
DNS = $CLIENT_DNS_1,$CLIENT_DNS_2" > "$HOME/$SERVER_WG_NIC-client.conf"
|
DNS = $CLIENT_DNS_1,$CLIENT_DNS_2" > "$HOME/$SERVER_WG_NIC-client.conf"
|
||||||
|
|
||||||
# Add the server as a peer to the client
|
# Add the server as a peer to the client
|
||||||
|
Loading…
Reference in New Issue
Block a user