WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.46k stars 70 forks source link

EdgeRouter 12P after Update from v2.0.9-hotfix.4 to v2.0.9-hotfix.6 WireGuard configuration lost #149

Open Adi-18 opened 1 year ago

Adi-18 commented 1 year ago

Package version

can not found

Firmware version

2.0.9-hotfix.6

Device

EdgeRouter X (SFP, 10 X, EP-R6) - e50

Issue description

Again Before VPN to pfSense works without any problem. Now after update firmware to v2.0.9-hotfix.6 no more WireGuard connection possible.

There is no any error message shown on display but still no connection. With command "show configuration" In CI there is no any information about wireguard. Also no more nodes entry in "Config Tree" inside of web portal.

It's important for running it as soon as possible because of my work!

Configuration and log output

No response

mdsitton commented 1 year ago

This also happened to me, my whole config is gone for wg same hardware/version

Amoeba00 commented 1 year ago

Remember, that after a firmware upgrade if you don't have a script automatically reinstalling wireguard - it won't be there because it's not part of the base image.

Also, it's worth mentioning there's a wizard you can install that can help with that. https://github.com/vchrizz/ER-wizard-WireGuard

praseodym commented 1 year ago

After rebooting when the firmware has been upgraded, the WireGuard config is still present in the saved configuration but not in the active configuration. Saving the active configuration (e.g. by making changes in the web UI) will cause the WireGuard config to be also removed from the saved configuration.

By rebooting right after the WireGuard installation, the old config should get loaded back including the WireGuard configuration.

Steps that work for me:

  1. Install firmware upgrade
  2. Reboot to activate new firmware
  3. Install WireGuard
  4. Reboot to load back old config
Haarolean commented 2 days ago

I was able to find my previous config (including the WG private key, as it was a part of the config) in /config directory, the file name looks like this: config.boot.2024-09-16-1227.pre-migration.