Wireguard missing from list?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
naddel81
Posts: 31
Joined: Sun Jul 21, 2019 12:54 pm

Wireguard missing from list?

Post by naddel81 »

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!
DarrenHill
Posts: 28
Joined: Wed May 08, 2019 3:00 pm

Re: Wireguard missing from list?

Post by DarrenHill »

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
naddel81
Posts: 31
Joined: Sun Jul 21, 2019 12:54 pm

Re: Wireguard missing from list?

Post by naddel81 »

DarrenHill
Posts: 28
Joined: Wed May 08, 2019 3:00 pm

Re: Wireguard missing from list?

Post by DarrenHill »

Glad to hear it's fixed :)

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.
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Wireguard missing from list?

Post by MichaIng »

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/issu ... -513595547
4. Creating key pairs:

Code: Select all

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
5. Server config: https://github.com/MichaIng/DietPi/issu ... -513587615
6. Client config: https://github.com/MichaIng/DietPi/blob ... 034-L10060
7. systemctl enable --now wg-quick@wg0
8. 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.
Post Reply