-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | WireGuard: Enable for RPi ARMv6 via Bullseye repo #2997
Comments
@johnnyt83 Actually WireGuard was never available for ARMv6 systems (RPi 1 and Zero). It is installed from the Debian Sid repository and their armhf branch is only ARMv7 compatible. Only complete source build from scratch would be thinkable. but this would need to be redone after every kernel upgrade. IMO we should wait for a port to Debian Buster (which will then be available on Raspbian Buster as well, short after), before enabling it for ARMv6 RPis. EDIT: Ah wait, just recognised that the wireguard packages are not listed arch-specific but as arch "all": https://packages.debian.org/sid/wireguard So armhf/ARMv6 specific issues should not occur here. However I remember Fourdee disabling it on ARMv6 after facing issues there. But could be retested, there have been some updates meanwhile.If you want to test it, I will guide you through the steps, but no guarantee it will work. |
I would like to retest, just guide me gently :) auch auf deutsch, wenn du magst. |
I already have a working DietPi setup from this morning and Pi-Hole is running just fine. Now I would like to add WireGuard (for dummies). (already followed this tutorial (https://www.reddit.com/r/pihole/comments/bnihyz/guide_how_to_install_wireguard_on_a_raspberry_pi/) on my other Pi Zero and managed to get it working (VPN at least), but no internet access when connected to WG. |
@johnnyt83 Here is the WireGuard server config we use:
The client config look exactly like ours besides, we use netmask /24 on the client as well, not 100% sure currently about the practical difference however: Do you use a mobile client or another server or desktop? |
only "wg" does not return anything on my zero unfortunately. just to make sure I did not screw up that last simple bit, here is my client1.conf: [Interface] [Peer] Update: I use a mobile client and can test local WiFi and external network as well. None works so far. |
Hmm, at least the server values should always show up when running |
this is what it gives me: |
@johnnyt83
|
even the first command did not go through positive: https://abload.de/img/wiregzuovkw6.png so the second command gave me this: |
@johnnyt83 |
of course: |
Ah found it, it's about the PreUp/PostDown scripts. You are indeed on an DietPi system, aren't you? Because user+hostname from your screens look like a Raspbian image. DietPi comes without user On non DietPi, switch the following in wg0.conf: |
my test pi zero is a raspbian (pi hole prebuilt), yes. |
UPDATE: seems to work when testing local WiFi now (speed is of course less than without Wireguard), but it refuses to work on mobile network connection. |
@johnnyt83 For mobile connection you need to assure that UDP port 51820 is forwarded from your router to the Pi. Ah from your posts above it looks like it is, but assure that it is UDP and not (only) TCP. Does |
"Unable to access interface wg0: Operation not permitted" Port is forwarded (UPD and TCP) and is the same as in the config file. |
@johnnyt83 |
looks good for local: https://abload.de/img/wiregzu22jlkcr.png UPDATE: Even works from my neighbors WiFi. so mobile should work, too. guess my reception here is the problem indoors. strange thing: my IP cameras are not showing up in the IP camera app (they use my DDNS). Is this a loopback problem?! |
@johnnyt83
And with Pi-hole you have a webserver installed that can be used to test general access from external network (or generally via DDNS):
|
netmask 24 seems to work fine (dunno what it does though) and DNS is fine, too. Thanks so much. Can I follow the same tutorial on DietPi? |
@johnnyt83 Usually netmasks define the IP range of the network, 32 specifies one specific IP, while 24 specifies all IPs from 10.9.0.1 - 10.9.0.255, 16 would be 10.9.0.1 - 10.9.255.255, so again one variable octet more etc. And ah yes you can do exactly the same on DietPi. There you can leave the |
thanks for the help! whenever I need a secure connection now I can enable this "free" VPN to my home network. astonishingly the pi zero peaks at around 25 mbit/s which is fast enough for my use cases. |
Jep I guess mobile internet will be the bottle neck in most cases. Okay I mark this as closed then. As you proved the source build to work quite well, and as this aside from binaries seem to create systemd unit (service file) and config dirs etc identical to the Debian package, we could actually add this to DietPi-Software as well. |
3 minutes, I guess. would be great to find it in the DietPi software list, soon. |
@johnnyt83 So
worked without error? Ah the steps match official instructions: https://www.wireguard.com/install/
|
will try your mini-tutorial tomorrow on the DietPi. |
@johnnyt83
|
this is what I got in return :( |
and of course all the other things that I wanted to put in "spoiler" tags that I cannot find here:
|
@johnnyt83
Perhaps also some configs have been already created that do not match anymore, so you might need to remove the WireGuard sources and re-download. Otherwise please reassure that you did the mentioned G_AG* commands and a reboot afterwards. |
root@DietPi:~# uname -a But I set it up/ran an update just a few days ago. Everything was up to date. |
when I start from scratch now with dietPi, is wireguard in the software list now? |
The new update was also a few days ago. It is necessary that active kernel and installed headers match and I bet headers are on 4.19.58. Nope it's not yet in the install list. If it works I might be able to add it the next days to dev code. |
I would really like to fix that, but it seems I am up to date: |
Its not about dietpi version but about the kernel version. Please run the commands I mentioned above to update the APT packages which include kernel. |
did it again (all the commands above), one by one was executed OK. and I am stuck on really weird. |
can I install a remote tool on my dietPi so you could login for yourself? |
@johnnyt83
Yeah if you want to grant remote access, SSH would be easiest, as I am not too familiar with remot3.it or such. Send login credentials to [email protected] |
Yes, SSH sounds fine. So I only need to change the password for users root and dietpi and forward a random port to my dietpi, right? |
@johnnyt83 |
Notes to selfOkay compilation from source works well, following the Debian steps: https://www.wireguard.com/install/ Sources should be kept on the machine. Since no DKMS is installed, after kernel updates WireGuard needs to be recompiled:
Another idea:
|
I'm also trying to install WireGuard on a pi2 and while I can follow basic CLI instructions, I'm no expert. Can you just clarify this please:
I guess you mean these steps compiling-the-kernel-module-from-source but what are raspberrypi-kernel + raspberrypi-kernel-headers? |
@pqhf5kd
These are the APT packages for the RPi kernel and it's sources/headers. required to build kernel modules, like WireGuard is one. The official build instructions assume those be named like |
Using this working great in my RPI 1, thanks. |
@johnnyt83 Another minor enhancement: Now, when kernel packages are upgraded on RPi, the WireGuard kernel module is rebuild automatically as well: 5789594 Changelog: eeb81e0 |
Dear Michalng,
I am missing Wireguard on my new DietPi (Pi Zero). How can I install that package? PiHole installation was simple and easy, but now I want to add WireGuard to use my PiHole on the go.
Best wishes.
The text was updated successfully, but these errors were encountered: