WireGuard Performance with a Pi Zero (2019)
oct8l.gitlab.io
oct8l.gitlab.io
This setup has been in place about a year now and just works. The Pi can handle about 50 Mbit bidirectional over WireGuard, which is suffient even for a couple of 4K media streams. I am planning to duplicate this setup at some other relatives' homes.
Of course, choose your power supply badly and both those sub 10W machines will be 50W at the wall.
Their free tier is pretty generous because it's basically a way for Tailscale to get homelabbers hooked on the product so they'll recommend a corporate plan at work. They even state as much: https://tailscale.com/blog/free-plan
The Pi 3 was essentially free to me because I already had it on a shelf. When I duplicate this setup at some other relatives' homes, I'm planning on using an Orange Pi Zero 3 ($30 CAD, quad core A53, gig of RAM, gigabit Ethernet).
- You're replying to a thread about someone using a 1GB Pi 3 to stream multiple 4K movies. It's $44 on Amazon including fast shipping. Cheaper on eBay if you can wait 3 days.
- The 8GB Pi 4 is $75 on canakit, not $160.
Anyway if you want more compute (on an edge device? why?), why not grab a AM4 board and CPU for like $80 each? That's 25W at the wall and gives you a ton of flexibility if you later wanna repurpose the machine adding GPUs, NVMe, SAS enclosures, etc
To be fair once you add in shipping, a sd card card, power supply, case/heatsink, and you'll get to around 160.
Why would you need a heatsink unless you use a case? Why would you use a case? That price tag is entirely self inflicted
For some reason, even with ram-only fs and all common tricks, my Sandisk SD cards keep failing. Do you have any tips?
That should be enough for 10 years under a typical Pi workload like writing and compacting logs.
I don't have one of their travel routers, but I have a Flint 2.
Thanks!
("Ext" means it comes with external antennas, version without that suffix has internal antenna if you want it to be even more compact)
[0] https://forum.gl-inet.com/t/tutorial-tailscale-on-gl-sf1200-...
If this is too expensive, you could also go for a NanoPi R4S[3], but I wouldn't. The N6S is worth the additional cost.
If you need wifi, there is the R5C[4].
1: https://www.friendlyelec.com/index.php?route=product/product...
2: https://openwrt.org/toh/views/toh_available_16128
3: https://www.friendlyelec.com/index.php?route=product/product...
4: https://www.friendlyelec.com/index.php?route=product/product...
Runs their fork of OpenWrt with a user-friendly interface (though LuCi is also available) and you can also flash vanilla OpenWrt. They also have smaller travel models.
Of course if you use stuff that needs to run on the CPU (like Cake), then the R6S will be faster.
For traveling I use a Gl.inet Beryl (GL-MT1300), which is nice, but not very powerful. Nowadays I would probably go for a GL-MT3000[1], if there wasn't the NanoPi R5C, which is small, powerful, supports OpenWRT and has Wifi.
As a note: I thought about having Wifi via USB, but the stability and performance of USB-Wifi is nowhere near the integrated / miniPCIe stuff. So if wifi is a requirement, this might be important.
1:
Client devices -> “travel router” with WG -> public AP
My preferred way is to enable WG on-demand for devices and immediately detect if WiFi or Ethernet is not my home internet.
Client devices (phone, laptop) with WG -> public AP
Or is there some other purpose?
I just show up at the hotel and get my router online.
After configuring that singular device, my other stuff all works together: My Chromecast, my laptop, my smart speaker, whatever gaming system I may have, some ESP32 project or other that I've been tinkering with, or whatever -- I just turn stuff on and it simply works.
With a travel router that additionally uses VPN to tie my travel LAN to my home LAN, then: Whatever other network services I have at home are also available to me on the road.
It can be very transparent.
And that all conspires to mean that I can spend more time doing whatever it is that I feel like doing instead of futzing around with networking.
Low power, fairly cheap, x86 based, onboard NIC (sometime 2), NVME/Sata and large memory support for lots of containers/etc. Also, low power draw! :-) I've been loving my H2+'s and I got some H4s in I need to find time to play with...
1.) https://ameridroid.com/products/odroid-h4-h4-h4-ultra
2.) https://ameridroid.com/products/odroid-h3 (dual nic)
I decided to install Ubuntu on a 6 year old Dell XPS computer. I now run Wireguard/PiHole strictly on docker and it is incredibly fast. Changed my settings to auto start the PC after a power loss. I haven't had any downtime for the containers. I'll stick to my custom docker compose file forever.
I even wrote a utility to manage the bunch of Compose files via git and automatically update them when I push changes to the repo: https://harbormaster.readthedocs.io/en/latest/
A zoom meeting on a phone is pretty high throughput...
For less than $200 you can get a used one with 16GB of RAM and a fast SSD.
For home servers I want low power usage and reliability. Mine idle at 5W running proxmox.
My primary home router is a pfSense VM set up as a Wireguard peer for tunneling in from various other devices and locations, and I'm very happy with it.
A table of devices and wg speeds can be found here https://forum.openwrt.org/t/a-wireguard-comparison-db/187586. There are plenty of interesting tiny options, particularly if you don't need a full gig.
>As expected, the speed is around 90 megabits per second, as the Pi Zero has a USB 2.0 OTG port, and I’m using a 100mb ethernet adapter for it.
> depending on the use case for a Pi Zero WireGuard server, it could get the job done with ~30-40 megabits per second speed capabilities.