-
Notifications
You must be signed in to change notification settings - Fork 642
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
opnsense-wireguard will not stop or restart properly #866
Comments
Can you use the latest master code? I had this too some time ago but wasn't able to reproduce again.
Seems you run an old version since with 0.4 you can't use Wireguard with multiple endpoints :) |
Actually I was using
I get the same problem. It still does not work after a |
Can you post your wg.conf please? |
Peers B and C can successfully ping A. |
So, after you fixed it, you can start the service via CLI and it works until you hit save via UI, then you again have only group wg in ifconfig, correct? |
No, after I delete the interface and restart the service, I get this:
which works. The problem seems to be with what happens once the "Save" button is pressed. I don't know enough about how OPNsense works to really diagnose the issue. |
Would you mind letting me again on your system with the previous password? I'd need to do a bit more testing. |
Excuse me? I'm not sure what you mean, or what you imply. |
Sorry, meant you were the guy offering me access |
I have this same issue. Basically anytime I push "Save" the service dies(but looks like doesn't report that properly), and does not restart at all. How can I help debug this? |
I'd need access to your system if possible |
That's not possible, but if you tell me where I need to look or what information you need I can do my best. |
Check after save via |
When WireGuard is working and I've done the instructions above to delete the interface and restart the service I get this:
I can fix the above by simply running Let me know if I can provide any other information. |
I think I found it, @fichtner when is deadline for .5? |
Friday, probably 18.7.5 on Monday next week. |
@ChromoX you are at latest version of wireguard plugin? |
|
Can you post a screenshot of the configured server and endpoints and how it looks in wgX.conf? I can't reproduce here. On every tab I hit save and check via ifconfig, the PID opened the process changes .. |
Changing just a name on an Endpoint and pushing save ended up with an interface that looks like this:
Which doesn't work because of the lack of tun from groups I think. After deleting the interface manually and then running stop, start service I can get WireGuard back up again.
|
@fichtner reconfigure API call does a stop, template reload and start, correct? |
This is still an issue for me even with 0.7_1. I attempted to add an endpoint. After clicking save... This is what the interface looks like when it's not working. Not working = No connections, No list configuration output, No handshakes output.
The only way I can fix this is by stopping the service, removing the interface, and then restarting.
That is what it looks like after restarting the service. I noticed that when I run LATER: |
This is a known problem of Wireguard itself, will be fixed in a few days hopefully. We will have to wait. |
@mimugmail Have you found anyway to make things work as is? |
No, the developer of Wireguard has to fix this. The plugin itself works fine .. |
@mimugmail Is my problem of the endpoints not being written to the wg0.conf file the same Wireguard problem? I noticed there was a new snapshot as well on the 18th. It included a fix "tun: only call .Fd() once" which sounds like it could describe what's been going on with at least the not restarting properly. |
Yes, the Fd call is the issue, but I cant find it anymore in Git :/ |
Ah, yes checked my IRC backlog, it was in wireguard-go, thanks :) |
Versions:
Example output:
Problem description:
I have set up a server using NAT with two endpoints (which should actually be called "peers"). One for my computer and one for my Android phone. The service did not seem to work so I enabled only one of the peers and rebooted the firewall. After rebooting, the service is working properly and I can ping it from my computer. The tunnel is working and the
wg0
interface on the firewall has the following configuration:The "List Configuration" and "Handshakes" tabs work properly and show the correct information.
Upon clicking the "Save" button in any page (with or without making changes), the service stops working. The new configuration for the
wg0
interface is the same with the exception that thegroups
line is nowgroups: wg
(tun
is missing):To fix this I tried to restart the service through ssh, but the following error occurs:
which I can fix by manually deleting the interface and restarting the service:
Now everything is back to normal, except that the saved changes haven't been committed.
The text was updated successfully, but these errors were encountered: