Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireguard doesn't populate allowed ips for endpoints after the first #1419

Closed
lethargynavigator opened this issue Jul 18, 2019 · 10 comments
Closed

Comments

@lethargynavigator
Copy link

Wireguard works fine with one endpoint configured for the server. Any endpoint after the first will not populate the "allowed ips" field.

I can disable any two of these endpoints in the server config and the remaining endpoint will populate the allowed ips field and the tunnel will operate.

Screenshot_20190718_150221
Screenshot_20190718_150621

@mimugmail
Copy link
Member

You should set a fixed IP with subnet, not a whole network with ending 0

@lethargynavigator
Copy link
Author

I haven't configured that .0/27 anywhere. my three endpoints are .2/27 .3/27 .4/27 and the server is .1/27

@mimugmail
Copy link
Member

You configure the endpoints on server and link them in local or not? Isnt there a field for Tunnel address in every endpoint dialog?

@lethargynavigator
Copy link
Author

Yeah the endpoints are linked in the local server.

I'm not sure what you're asking in the 2nd question. There's allowed IPs and endpoint address. I'm configuring this tunnel the way I've configured it in Linux, which has always worked.

@lethargynavigator
Copy link
Author

To clarify: it seems like a problem in the gui configuration.

the allowed IPs i've configured in each endpoint are not showing in the allowed IPs of the output in 'list configuration'.

the endpoint that shows .0/27 as the allowed ips is actually configured as .2/27

@mimugmail
Copy link
Member

Hm, this is strange. It also doesn't work when using WG without the GUI/plugin.
I need to do some more testing and maybe check with the Wireguard devs.

@mimugmail
Copy link
Member

Solved it, on wireguard server, as tunnel address in enpoints use /32

@lethargynavigator
Copy link
Author

apologies for my mistake, I think the help text threw me off

@mimugmail
Copy link
Member

Nö worries, I already updated the docs as they are not clear enough, will also go througj the helptext again https://github.com/opnsense/docs/blob/master/source/manual/how-tos/wireguard-client.rst

@Write
Copy link

Write commented Jul 7, 2021

Solved it, on wireguard server, as tunnel address in enpoints use /32

omg. Finally solved. Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants