Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
WireGuard: New endpoints not being written to wg0.conf
« previous
next »
Print
Pages: [
1
]
Author
Topic: WireGuard: New endpoints not being written to wg0.conf (Read 1608 times)
danielsan
Newbie
Posts: 2
Karma: 0
WireGuard: New endpoints not being written to wg0.conf
«
on:
October 28, 2021, 08:44:00 am »
I have a very simple WireGuard setup with 2 endpoints that has been running for a long time. A few months ago I wanted to add another endpoint, but I just couldn't get it to work. The new endpoint didn't show up in the config file wg0.conf no matter with I tried.
I ended up with the hack that I added the endpoint manually and ran /usr/local/etc/rc.d/wireguard restart to make the changes work. If I touch the config via the GUI, or restart via the GUI, wg0.conf is rewritten and my endpoint was lost.
My guess was that this was a bug that would be fixed in another version of OPNsense, so I settled with my hack for the time. But now I am on this again. I have updated to 21.7.3_3 and os-wireguard 1.7 and the problem is still there.
I feel like I have tried everything, adding a new endpoint with another name, other public keys, deleting, re-adding, disaling the endpoint, re-enabling the endpoint, starting/stopping the WG service etc. - I also tried downloading the backup config file as XML and re-ordering the WG endpoints and restoring the backup. The result is that my 3rd endpoint entry is now listed first in the GUI, but it still doesn't show up in wg0.conf
What can be done so solve this?
EDIT: Wrong screenshot attached, the problematic endpoint is the *phone endpoint.
Best regards,
Daniel
«
Last Edit: October 28, 2021, 08:50:19 am by danielsan
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6871
Karma: 577
Re: WireGuard: New endpoints not being written to wg0.conf
«
Reply #1 on:
October 28, 2021, 09:22:30 am »
After adding an endpoint in the "Endpoints" tab, you need to go back to "Local" and check/activate the endpoints that should be active for that particular local interface.
Not quite intuitive but necessary, because you can have n local interfaces with m endpoints, each.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
danielsan
Newbie
Posts: 2
Karma: 0
Re: WireGuard: New endpoints not being written to wg0.conf
«
Reply #2 on:
October 28, 2021, 10:29:46 am »
Haha, how embarrassing.
It works now, of course.
Thank you so much.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
WireGuard: New endpoints not being written to wg0.conf