Lochnair / vyatta-wireguard

GNU General Public License v3.0
704 stars 37 forks source link

Debian repository #99

Open p3lim opened 5 years ago

p3lim commented 5 years ago

Any chance you could set up a debian repository for this package? It was mentioned in the original feature request (link and link), and I've seen other packages manage this (e.g. blacklist).

This would make upgrading a breeze (link), and can make the installation persistent between upgrades (link).

Lochnair commented 5 years ago

This has been on my wish list for a good while now.

Well, upgrading would be easier, but you'd still have to either delete the interfaces or reboot, to be able to load the new module.

There's nothing to stop you from downloading the latest vyatta-wireguard package from the release page and saving it to /config/data/install-packages right now, but britannic's deb install script won't work per his install instructions for this purpose. The reason being, that we need vyatta-wireguard to be installed before the config loads. You could make it work by installing it to /config/scripts/pre-config.d instead which runs before the config loader runs.

Setting up an apt repo is by itself quite feasible, but we have to consider the fact that is not unusual that I'm maintaining multiple branches at a time, like 1.10 and 2.0. And sometimes in a bugfix release, they'll change something in the kernel which means I need to build new wireguard binaries, and that in turn will break vyatta-wireguard for people still on the old version.

A related item on my wish list is to create automated builds of wireguard for each firmware version.

whiskerz007 commented 5 years ago

I've developed a script that will install/update WireGuard, without the need of a reboot, and preserve the package installation after a firmware upgrade. (link)

farmwald commented 5 years ago

One of my EdgeRouters failed with the script (worked fine on an EdgeRouter Infinity):

[INFO] Board type detected: e300

[INFO] Firmware version: v2.0.0.5155284.190104.0701

[INFO] Installed WireGuard version: 0.0.20190702-1

[INFO] Release version: 0.0.20191012-1

[INFO] Debian package URL: https://github.com/Lochnair/vyatta-wireguard/releases/download/0.0.20191012-1/wireguard-v2.0-e300-0.0.20191012-1.deb

Downloading WireGuard package...

Checking WireGuard package integrity...

Backing up running configuration...

Removing running WireGuard configuration...

Commit failed

[ERROR] 1@177 Unknown failure occured.

I haven’t tried to debug it, but will later today.

Mike

From: whiskerz007 [mailto:notifications@github.com] Sent: Friday, October 25, 2019 2:14 AM To: Lochnair/vyatta-wireguard Cc: Subscribed Subject: Re: [Lochnair/vyatta-wireguard] Debian repository (#99)

I've developed a script that will install/update WireGuard, without the need of a reboot, and preserve the package installation after a firmware upgrade. (link https://github.com/whiskerz007/ubnt_get_wireguard)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Lochnair/vyatta-wireguard/issues/99?email_source=notifications&email_token=AJVLHUCJV4PCZAQOL3MZEK3QQK2FJA5CNFSM4G5WIK22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECHXTQY#issuecomment-546273731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJVLHUAFUQF3ZMUKJUFMUX3QQK2FJANCNFSM4G5WIK2Q .

whiskerz007 commented 5 years ago

@farmwald I've updated my repo. If you haven't already, reboot your router before running the new script. The old script has the potential to put the EdgeOS configuration in a broken state.