WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.45k stars 68 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 12 months 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