For those interested in Wireguard on Ubiquiti devices, be aware that the Lochnair repo is basically dead (see issue #140).
You might be interested in https://github.com/FossoresLP/vyatta-wireguard (no associaton, just a repo that I've found has the newer releases).
Did not know, installed it awhile ago and given the effort needed haven't touched it since.
There seems to be a installer script (https://github.com/mafredri/vyatta-wireguard-installer) that will persist the deb between updates. This issue https://github.com/mafredri/vyatta-wireguard-installer/issue... will switch it to the port you suggest.
Perhaps I'll set that up. Given recent global events I've got some time, but not much need for a remote access solution right now!
I did, however, make it harder for myself by setting it up on a Unifi gateway. Where every push of an invalid config would put the gateway in a boot loop, bricking my internet connection for a few minutes.
For the interested: https://github.com/Lochnair/vyatta-wireguard