Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
WireGuard doesn't start with activated peer without Public Key
« previous
next »
Print
Pages: [
1
]
Author
Topic: WireGuard doesn't start with activated peer without Public Key (Read 2279 times)
Hektor
Newbie
Posts: 18
Karma: 2
WireGuard doesn't start with activated peer without Public Key
«
on:
February 07, 2020, 12:19:59 am »
OPNsense 19.7.10 + 20.1 - just updated.
WireGuard crashes and doesn't start anymore when you add a peer without a public key.
Steps to reproduce:
- Set up WireGuard
- Create a WireGuard peer -> leave the Public Key empty
- Add the peer to the configured WireGuard instance
- Save -> WireGuard seems to crash and will not start anymore until you remove the "empty" peer
Probably it's a WireGuard issue but since I didn't find any logs I'm not sure.
Solution:
- Check if it's a WireGuard issue
- Allow adding valid peers only
- If available: check the WireGuard configuration before applying them and cancel if there's an error
Logged
alfrisch
Newbie
Posts: 9
Karma: 0
Re: WireGuard doesn't start with activated peer without Public Key
«
Reply #1 on:
April 29, 2020, 06:06:01 pm »
I see the same problem running wireguard on OPNsense 20.1.5
As Hektor mentioned there are no Log entries and thus this problem is very difficult to debug.
Running `wireguard-go wg0` on the command line eventually reveals the problem in the wg0.config!
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: WireGuard doesn't start with activated peer without Public Key
«
Reply #2 on:
April 29, 2020, 09:10:05 pm »
WireGuard doesnt log anything, no matter what the problem is. Can you open a Bug Report in GitHub so i dont forget to fix this?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
alfrisch
Newbie
Posts: 9
Karma: 0
Re: WireGuard doesn't start with activated peer without Public Key
«
Reply #3 on:
May 25, 2020, 02:08:59 pm »
I have opened an issue here
https://github.com/opnsense/plugins/issues/1850
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
WireGuard doesn't start with activated peer without Public Key