From 33400eb5fe8d0e6d0eafbde8b140ea08dd929875 Mon Sep 17 00:00:00 2001 From: Romanoidz <78933901+Romanoidz@users.noreply.github.com> Date: Sun, 1 May 2022 21:29:17 +0300 Subject: [PATCH] AllowedIPs --- wireguard-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index de9a9ea..bfeb4a0 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -312,7 +312,8 @@ DNS = ${CLIENT_DNS_1},${CLIENT_DNS_2} PublicKey = ${SERVER_PUB_KEY} PresharedKey = ${CLIENT_PRE_SHARED_KEY} Endpoint = ${ENDPOINT} -AllowedIPs = 0.0.0.0/0,::/0" >>"${HOME_DIR}/${SERVER_WG_NIC}-${SERVER_PUB_IP}-client-${CLIENT_NAME}.conf" +AllowedIPs = 0.0.0.1/5, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, 16.0.0.0/4, 32.0.0.0/3, 65.0.0.0/2, 128.0.0.0/1 +" >>"${HOME_DIR}/${SERVER_WG_NIC}-${SERVER_PUB_IP}-client-${CLIENT_NAME}.conf" # Добавьте клиента в качестве однорангового узла к серверу echo -e "\n### Client ${CLIENT_NAME}