diff --git a/connect_to_wireguard_with_token.sh b/connect_to_wireguard_with_token.sh index bda0ce1..6c39363 100755 --- a/connect_to_wireguard_with_token.sh +++ b/connect_to_wireguard_with_token.sh @@ -138,7 +138,7 @@ $dnsSettingForVPN [Peer] PersistentKeepalive = 25 PublicKey = $(echo "$wireguard_json" | jq -r '.server_key') -AllowedIPs = 0.0.0.0/0 +AllowedIPs = 0.0.0.0/1, 128.0.0.0/1 Endpoint = ${WG_SERVER_IP}:$(echo "$wireguard_json" | jq -r '.server_port') " > /etc/wireguard/pia.conf || exit 1 echo -e ${GREEN}OK!${NC}