angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.52k stars 1.26k forks source link

Script no add ip route for new client (peer), OS Ubuntu, solved #367

Closed michalachim closed 1 year ago

michalachim commented 1 year ago

Hi, I use this script to add clients. My server is on a VPS. Everything works correctly. I currently have 10 clients. I can't add more clients 11 and above. The script creates an account, but the client does not have access to the Internet and it is not possible to ping from the VPS to the client. I can see the handshake on the VPS ok. I have Ubuntu 20.04 on my VPS. I've been using the script for over a year and never had a problem. I can only add up to 10 clients, it works fine. Why is client number 11 and above not working? Is the number limited to 10? Please can you help?

SOLVED: add client (peer) over this script not add ip route in OS Ubuntu ! It is necessary to manually add this commmand, for example: ip route add 10.66.66.10 dev wg0 scope link For each client :((

michalachim commented 1 year ago

add client (peer) over this script not add ip route in OS Ubuntu ! It is necessary to manually add this commmand: ip route add 10.66.66.10 dev wg0 scope link For each client :((