-
Notifications
You must be signed in to change notification settings - Fork 72
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
Unable to configure Wireguard on EdgeOS 2.0.9-hotfix6 #144
Comments
Same issue |
+1 Seeing the same |
Same package version, same firmware version but on EdgeRouter-X (e50). |
Identical Wireguard and hotfix6 on my ER-X (e50) router, shows wg interfaces just fine. I'm still fighting off distractions to my time to finish configuring my tunnels on both ends, but it looks OK to me. Trimmed config follows:
|
@prettyyellowdog - You did re-install wireguard after the update didn't you? If you saw the error message before the re-install you may want to go into configuration mode then issue the command "load config.boot" then "compare" (to display what hasn't been committed yet) and then "commit" and if there are no errors "save" if you are still seeing an error from the CLI try "sudo modinfo wirequard" to make sure the wireguard kernel module is loaded. Not that it helps, but my ER4's wireguard is working fine. I have the latest version of the package in the firstboot directory which means that it is installed automatically when you update the firmware before the configuration is loaded so I don't get any error messages. In my case running on my EdgeRouter 4 with firmware v2.0.9-hotfix.6
|
I have the same issues on an e1000 with hotfix6. It was working fine until I upgraded to hotfix6. |
I got wg0 working again by moving to old edge router firmware, old wireguard deb, and an old config file. |
Could it be that the wg0 interface needs to be added manually to the config? |
It is generally a good idea to reset to factory defaults after upgrading the firmware of any device, then reload the saved configuration. This eliminates the possibility that a config setting got corrupted during the firmware upgrade or if the upgraded firmware relies on a new parameter or one which had its name changed. At least it provides a known starting point and eliminates this as possibility if you reset it, then you can look elsewhere for the problem. |
Fine but in my case I only installed the packages way after the upgrade. |
These steps from @dc361 fixed this issue on 1x EdgeRouter Pro and 6x EdgeRouter X for me. |
For what it's worth - after the hotfix-6 update (on an e300 / ER-12P) my
The issue was that for some reason the endpoint address for the peer went missing. Added it back in and worked fine again 👍🏻 |
I found that when I used a DNS name in the endpoint definition it would disappear later. When I used a numeric i.p. address it stuck. I think they discovered that it's trying to resolve the DNS name before the network interface is fully up at boot time, so it fails and just gives up. No idea why it would remove it from the config, that makes no sense. |
That makes sense, my configuration contained a hostname as well (I actually also assumed it would also periodically update that somehow, which is not the case, not even on e.g. Debian with wg-quick) |
It can't periodically update the endpoint by re-resolving the endpoint hostname, because the specified endpoint is only used to bring the tunnel up. Once the tunnel is up, according to the wireguard spec, it will return packets to the most recent address/port from which a valid packet was received. There's no room in that to re-use the pre-specified endpoint until/unless the wireguard interface goes down. If you want it to retry the pre-specified endpoint you'd need to bounce the interface, at which time it ought to re-resolve it. This is unrelated to anything regarding the procedure EdgeOS is using to bring up the interface initially. If EdgeOS is trying to bring it up too soon and then not retrying later that would be less than ideal, and in theory fixable. |
Maybe we could add a cron or other daemon to check if the endpoint has changed and bounce the interface |
Package version
1.0.22020627
Firmware version
2.0.9-hotfix6
Device
EdgeRouter 4 / 6P / 12 - e300
Issue description
Wireguard interface appears in "show interfaces". Attempting to configure results in:
ubnt@router# commit
[ interfaces wireguard wg0 ]
Unable to access interface: Not supported
Downgrading to 2.0.9-hotfix4 resolves the issue.
Configuration and log output
No response
The text was updated successfully, but these errors were encountered: