tracker icon indicating copy to clipboard operation
tracker copied to clipboard

Wireguard not able to add new client

Open jackmalcom opened this issue 3 years ago • 3 comments

I'm having adding a client on a fresh install:

root@vpn ~# wireguard-addclient jack 0.0.0.0/0
[#] wg showconf wg0
No interface section or no server address specified in /etc/wireguard/wg0.conf

jackmalcom avatar Sep 22 '22 05:09 jackmalcom

Turns out wireguard doesn't like 0.0.0.0/0, fixed it thanks to this issue. The range needs to be split into 0.0.0.0/1,128.0.0.0/1 to work.

Edit: this seems like it works fine, it might help to add a note about this to the setup guide because the error message isn't super obvious.

jackmalcom avatar Sep 22 '22 06:09 jackmalcom

Thanks for the report and bonus points for finding the solution. Perhaps we should consider tweaking wireguard-addclient to give a hint to the workaround? I doubt we'll make any immediate changes, but it could be a nice little improvement to make life easier for people.

JedMeister avatar Sep 22 '22 20:09 JedMeister

I'm going to reopen this as it should at least be noted in the docs.

JedMeister avatar Oct 30 '25 21:10 JedMeister