8 ms·
Raspberry Pi config for all things Internet
- Kudos 5y agoIs running a speedtest on a regular cadence going to cause some minor impact to your internet quality when it happens?
- deleted 5y ago[deleted]
- smallpipe 5y agoIf you have a good router that does some queue management and doesn’t suffer from buffer bloat, it shouldn’t impact it too much.
- ggregoire 5y agoWhich routers including those features would you recommend? IQRouter? https://www.bufferbloat.net/projects/bloat/wiki/What_can_I_do_about_Bufferbloat https://www.bufferbloat.net/projects/bloat/wiki/What_can_I_d...
- dsissitka 5y agoIt depends on the speed of your connection. The IQrouter is nice but its SQM starts to fall over around 350 Mbps: > Due to traffic management demands, speeds are limited to around 350Mbps, so if on fiber or high-speed cable, that's the measurable limit. https://evenroute.com/iqrouter#:~:text=ensure%20low%20latencies.-,Due,-to%20traffic%20management https://evenroute.com/iqrouter#:~:text=ensure%20low%20latenc... If you don't mind doing a little work a Pi 4 will do cake at gig.
- smallpipe 5y agoSince I'm cheap (and I have a pretty terrible internet connection) I've just installed openwrt on a TP-link wifi router I had laying around.
- dec0dedab0de 5y agoYes, using your connection will always cause an impact. If it's noticeable or not depends on a bunch of factors that are hard to guess about. I wouldn't run it very often if I didn't have some kind of QoS in place.
- tailspin2019 5y agoThis is cool. I've dabbled with Ansible for managing smallish projects like this but have never quite committed fully to it to get the full benefits. I think part of the issue may be that because I'm not using Ansible every day, whenever I come back to it there is a bit of context that I need to reload into my brain to get back up to speed... I guess that could be a sign that the tool is too heavy for my use case perhaps. I have a bunch of provisioning shell scripts that I do seem to find a bit less abstract and easier to manage. In fact I need to use one today to renew my home lab wildcard SSL domain certificate and push it to my various local systems.
- zellyn 5y agoI was checking out Ansible for my Raspberry Pis, but settled on bundlewrap.org eventually: much lower barrier to entry. (Also much simpler, but that's ok with me.)
- tailspin2019 5y agoBundleWrap looks very cool. I have a number of potential uses for that in mind already.
- zellyn 5y agohttps://github.com/zellyn/bundlepi/ https://github.com/zellyn/bundlepi/ if it's helpful to you…
- louwrentius 5y agoIf you plan to use a RPi4 as a router: 1. It can handle up to 650 Mbit if you use firewalling with iptables 2. You only need one (1) interface if you use VLANS.
- 0x426577617265 5y agoI'm having a hard time visualizing how I could use only one interface. How would the rest of the devices connects? Or are you suggesting using as a wifi only router?
- deleted 5y ago[deleted]
- btgeekboy 5y agoIt's the "router on a stick" method. You use a VLAN-capable switch, and connect the upstream connection (cable modem, ONT, etc) to a port on one VLAN, while the rest of your network is on another VLAN.
- louwrentius 5y agoI made a (bit complex) diagram. https://louwrentius.com/my-home-network-setup-based-on-managed-switches-and-vlans.html https://louwrentius.com/my-home-network-setup-based-on-manag...
- fermentation 5y agoI’m not too versed here, does using this project to make the RPi4 handle DNS make it a router? I’d rather not sacrifice nearly half of my gigabit bandwidth…
- louwrentius 5y agoNo, it would if it is in-line with your internet connection, thus forwaring ip-traffic.
- dsissitka 5y ago> 1. It can handle up to 650 Mbit if you use firewalling with iptables Is that at 1.5 GHz? I was surprised by how powerful Pi 4s are. At 2 GHz they'll do cake at gig.
- testmasterflex 5y agoHave you tried it on Pi 0W?
- HappyTypist 5y agoso hard to find stock of this in australia :(
- geerlingguy 5y agoZero uses a very constrained CPU; you'd get max 100 Mbps throughput over wired, much less on WiFi. But if you only used the DNS/Adblock capabilities, it wouldn't be too bad.
- axegon_ 5y agoI have, sort of. At my old job, just as the pandemic started, one of my coworkers didn't have vpn access and the company ran out of cisco licences before he managed to get one so I tunneled him through my pi0, afaik it was tolerable for pulling and pushing code but nothing more than that.
- jrm4 5y agoYooo, if anyone wants to let me know on this. I'm already using an off the shelf load balancer because I didn't have time to figure out on my own -- would it be possible to "tag this on" and determine stats for all my connections? TL-R605 by TP-Link is the router I'm using.
- geerlingguy 5y agoBe sure to check out the accompanying blog post [1] and also another post on integrating AirGradient monitoring [2]. [1] https://www.jeffgeerling.com/blog/2021/monitor-your-internet-raspberry-pi https://www.jeffgeerling.com/blog/2021/monitor-your-internet... [2] https://www.jeffgeerling.com/blog/2021/airgradient-diy-air-quality-monitor-co2-pm25 https://www.jeffgeerling.com/blog/2021/airgradient-diy-air-q...
- doctorhandshake 5y agoThanks for this Jeff. I had built the airgradient and was slowly chipping away at the Prometheus/Grafana config when this popped up on HN a few weeks ago. It was v satisfying to skip the intervening headbanging and get to the air quality monitoring.
- stardenburden 5y agoI feel like nix[1] is better suited than Ansible for this. Just I'm this week, I made an iso for my rpi config, which has everything setup from ssh keys to the services i want to use. All I need to do is flash it and it's good to go. Not to mention that I can easier manage a fleet of this with remote deployment[2]. [1] https://nixos.org https://nixos.org [2] Nixops, deploy-rs or the --target-host flag in nixos-rebuild
- newman314 5y agoDo you have a repo/gist where you can throw up a sanitized rpi config? I don't know much about Nix but what you are describing sounds like a nice use case as I do have to periodically rebuild different RPIs.
- stardenburden 5y agohttps://github.com/LegendOfMiracles/dotnix/tree/master/hosts/pi/configuration.nix https://github.com/LegendOfMiracles/dotnix/tree/master/hosts... (bottom lines describe the remote build logic) this is the actual config of the pi 3b... One other file also gets sourced: the defaults-nixos file in the root of the repo. And the distributed build host nix file describes creating a build user on my main machine. The setup is mostly mirrored from https://sgt.hootr.club/molten-matter/nix-distributed-builds/ https://sgt.hootr.club/molten-matter/nix-distributed-builds/ Be sure to enable binfmt for whatever architecture your pi uses on your main machine for cross compilation. For generating the iso I used nixos-generators.
- jeppesen-io 5y agoI'm not sure what you mean by sanitized, but here's one example. Very simple configuration on my pi4 server-ish. This is not a remote deploy but gives you an idea of a simple-ish configuration https://github.com/NelsonJeppesen/nix-lifestyle/blob/main/nixos/machines/blue.nix https://github.com/NelsonJeppesen/nix-lifestyle/blob/main/ni... After the first hump of learning the Nix ecosystem, the rewards on time are great EDIT: After looking over the repo, I can see how much code would be unneeded over a Nix[os] configuration
- 5y ago
- WaitWaitWha 5y agoWhen I read the title i was hoping it will shorten my path. Alas, not so. Slightly on a tangent, but fits with the "all things"... I have been trying to extricate my family from Google & Apple ecosystems. This requires various servers. At first, I was going to do something like a rackmount server with KVM, Docker, or similar virtualization. Turns out, the cost of a handful of RasPi4B8Gs (~$75 x n, where n is server per service) is less expensive then running a full server (~$1500+). Now just to find the right and stable software packages that are relatively smooth transition. :/ I currently have them set up as my DNS & filtering, & DHCPD, working on calDAV, cardDAV, VPN, and file (& bookmarks) synch.
- m82labs 5y agoI wrote up an article on hosting email in an S3 bucket. It does mean your email is in AWS, so not sure if that is any better. https://markw.dev/aws-free-email/ https://markw.dev/aws-free-email/
- WaitWaitWha 5y agoThat is excellent. Thank you. One of the positive features of both commercial services are the sieve-like behaviors on inbound items. Have you set up a sieve? Maybe this is a way to do it, & then have VPN between my system and my AWS setup, would have to tunnel from my side only (or reverse?)... Thank you!
- m82labs 5y agoI haven’t and haven’t had to. With this setup though I could really do anything I want with the messages.
- ignoramous 5y agoNot sure if they are ready yet, but ref: thehelm.com
- WaitWaitWha 5y ago
- sykseh 5y agowe love you Geerlingguy! :D