Wireguard missing from list?

Hi at all,

I am new to DietPi and wondered why Wireguard is nowhere to be seen on my Pi Zero?
I would like to install it in order to make PiHole usable from anywhere.

Best wishes!

It doesn’t work on the Pi Zero. It needs a Pi2/3/4 (Arm V7 or higher).

See https://github.com/MichaIng/DietPi/issues/2474

works beautifully :wink:

see here:

Glad to hear it’s fixed :slight_smile:

But it still probably explains why it’s missing at the moment, if that fix hasn’t been included in the current release.

I can confirm it’s there when running on a later Pi - I’ve had it happily working on a Pi3 DietPi installation for a while now.

Yeah guys, check out the issue linked by naddel81, basically:

  1. G_AGUP && G_AGUG
  2. reboot # to load new kernel, if it was updated
  3. Compiling WireGuard from source: https://github.com/MichaIng/DietPi/issues/2997#issuecomment-513595547
  4. Creating key pairs:
cd /etc/wireguard
wg genkey > server_private.key
wg pubkey < server_private.key > server_public.key
wg genkey > client_private.key
wg pubkey < client_private.key > client_public.key
  1. Server config: https://github.com/MichaIng/DietPi/issues/2997#issuecomment-513587615
  2. Client config: https://github.com/MichaIng/DietPi/blob/master/dietpi/dietpi-software#L10034-L10060
  3. systemctl enable --now wg-quick@wg0
  4. To print a QR code that can be scanned from mobile WireGuard client:
    grep -v ‘^#’ /etc/wireguard/wg0-client.conf | qrencode -t ansiutf8

To check server and client connection state: wg

I hope I find time to implement this option into DietPi-Software soon as well.