amnezia-vpn / amneziawg-go

AmneziaWG VPN protocol
MIT License
602 stars 73 forks source link

Debian package #44

Closed marek22k closed 2 months ago

marek22k commented 2 months ago

Hello,

it would be nice if there could be a Debian package for AmeziaWG Go, so that you can simply install it on a server without a container.

Related: https://github.com/amnezia-vpn/amneziawg-tools/issues/19

leninalive commented 2 months ago

Hi,

Debian packages are available for kernel module and tools in Launchpad's PPA - https://launchpad.net/~amnezia/+archive/ubuntu/ppa

For Go version we have no plans to build DEB/RPM packages as it is out of Go ideology.

marek22k commented 2 months ago

Thanks for the response. Great that there is a deb repo.

However, the packages there all seem to be Ubuntu specific. Could perhaps packages for Debian be added? Do the packages conflict if you use both vanilla WireGuard and AmneziaWG on the server?

leninalive commented 2 months ago

You may use Ubuntu packages on Debian as well, all instructions are available in readme here.

Vanilla WG and AmneziaWG could be used together without any conflicts.

marek22k commented 1 month ago

Hi, I have another question and a comment about the Debian package: It is installed after README in sources.list. This should not be, as the file only contains official Debian package sources. Third party software should be in an extra file like /etc/apt/sources.list.d/amnezia.list. Furthermore, it is no longer up-to-date to use a global keyring for all packages (Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).). Instead, the key should be stored in a separate file deb [signed-by=/usr/share/keyrings/amnezia.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main.

Furthermore, I cannot find your key: https://keyserver.ubuntu.com/pks/lookup?search=57290828&fingerprint=on&op=index returns Not Found. Furthermore, I would recommend not to only provide the key ID, but also the fingerprint to enable verification of the key.

Furthermore, is there a reason why a GUI package (software-properties-common) have to be installed? This should be unnecessary on a server. python3-launchpadlib seems to be a library. Does Amnezia need this? If so, it should be defined as a dependency of the Amnezia package.

I installed it the following way:

$ wget "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x75c9dd72c799870e310542e24166f2c257290828" -O amnezia.asc
$ gpg --import amnezia.asc
$ gpg --export 0x75c9dd72c799870e310542e24166f2c257290828 > /usr/share/keyrings/amnezia.gpg
$ cat /etc/apt/sources.list.d/amnezia.list
deb [signed-by=/usr/share/keyrings/amnezia.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main
deb-src [signed-by=/usr/share/keyrings/amnezia.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main