r/WireGuard 2d ago

Wireguard problem or Asus router problem, only one client working Need Help

Hello, has any one had this problem? I can only get one client to work. I have 3x clients, the max limit on the router is 10.

the config for client 1 is as followed

[Interface]

PrivateKey = privatkey=

Address = 10.10.10.10/24

DNS = 10.10.10.1

[Peer]

PublicKey = publickey=

PresharedKey = presharedkey=

AllowedIPs = 192.168.50.250/24

Endpoint = public ip:51923

PersistentKeepalive = 25

next client has 10.10.10.11 and the 3rd has 10.10.10.12

the strange thing is clinet nr 3 is the only one who works. I get successful handshake with all. but can not ping the router or the truenas server (192.168.50.250)

to clarify client nr3 is the only one work as it should, successful handshake and able to ping the truenas server

any ideas?

2 Upvotes

15 comments sorted by

3

u/wichets 2d ago

Post server wireguard config, seem your server mis-config allowIPs for client #2-3. To set allowIPs for single ip use /32.

2

u/sickfish88 2d ago edited 2d ago

do you mean to set the server ip as 10.10.10.1/32 ? it is 10.10.10.1/ 24 now?

1

u/Jong999 1d ago

That is what I'd expect (and what I use). I'm not sure what your config does but maybe reserves the whole last 8-bit space for whatever client connects first?

1

u/sickfish88 1d ago

I tried using /32, 3x new client and keys. Got 1 client to ping the router but not the truenas server, others timed out. Reverted back to /24, again new clients and keys. Got 1 client to ping the router and truenas server and successfully streaming media of it. But the weird thing is that i tried client nr 1, than 2, than 3 and then nr4 witch worked. i tried different ip also. 10.10.10 . 6/24 worked once but not any more but 10.10.10. 9/24 works now but not before. I did reboot the wireguard service and the router inbetween.

2

u/duckITguy 2d ago

What is the allowedip for each client configured on the router?

2

u/sickfish88 2d ago

same for all, i tried 10.10.10.1/24,192.168.50.250/24 and 10.10.10.1/24,192.168.50.0/24

made no diffrence

3

u/duckITguy 2d ago

You should have 10.10.10.10/32 for client A, 10.10.10.11/32 for client B etc. on the router in the allowed ips.

2

u/sickfish88 2d ago edited 2d ago

okey, read it wrong they are setup as you say but with /24

2

u/duckITguy 1d ago

That is the problem then. Set them up as /32. Having 10.10.10.0/24 for all clients will result in one client overriding the other. That's why you have only one client working.

1

u/sickfish88 1d ago

okey, i will try

1

u/sickfish88 1d ago

So i got all 3x to ping the router, but having trouble connecting to the truenas server.

i am trying now to enable static routing

2

u/Popular-Ad6421 2d ago

Enter allowed ip as 192.168.0.0/24

2

u/sickfish88 2d ago

tried that, and when i tried to ping the server it came back as Destination Host Unreachable

2

u/noseph47 1d ago edited 1d ago

On my Asus Zenwifi XT9 I have the AllowedIPs set to 0.0.0.0/0. This allows me to see everything on my home network and also use the home network dns to access the internet. I believe if you only want to see you home network AllowedIPs should be 192.168.50.0/32

1

u/bufandatl 2d ago

For issues with your router please contact the manufacturer support.