frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

My home network observes bedtime with OpenBSD and pf

https://ratfactor.com/openbsd/pf-gateway-bedtime
46•ibobev•3d ago

Comments

pak9rabid•1h ago
Cool post, I love a good firewall story.

One suggestion though: rather than doing this all on a single LAN network and having to deal with adding exceptions for devices that still need access to the Internet during 'bedtime' periods, I suggest creating a separate VLAN for devices that need 'bedtime' enforcement and put those devices there, while leaving your 'always online' devices in your main VLAN where access to the Internet is always available. This way all you have to do is simply change your firewall rules for that VLAN to enforce bedtime, which removes the extra rules needed for exceptions.

giobox•1h ago
This is also the approach I would have used - I was surprised the author didn't end up here. I used a separate VLAN to achieve same thing as author to shutdown internet access on the VLAN my kids devices use at bedtime, as well as another VLAN with no internet access at all for IoT devices, security cameras etc.

Blocking all UDP traffic by default is something I would never have even attempted for a domestic setup either. As the author discovers with Discord and Roblox, a great many common applications and games rely upon it. A UDP block on my kid's VLAN would last about 5 seconds before they attacked me for breaking their online Minecraft games.

mtlmtlmtlmtl•20m ago
The next(I think? It's in -CURRENT now anyway.) version of OpenBSD will be adding VLAN awareness to veb(4). Should make my OpenBSD home router experience much easier.
deanputney•1h ago
Love your watercolors! What a fun addition to a technical article :)
freedomben•23m ago
Me too! It was a fantastic addition that I would not have expected. I wish I was artistic enough to do something like that. It had the interesting technical content, with the coziness of a children's book. Really a great piece that the author should be proud of
panavinsingh•1h ago
The anchor-based approach for time-dependent rules is elegant. Most people would reach for a cron job that rewrites firewall rules on a schedule, but using pf anchors keeps the state management inside the packet filter where it belongs. The key advantage of pf over iptables for this kind of use case is that rule evaluation is deterministic and the syntax stays readable enough to audit six months later without documentation archaeology. Nice to see OpenBSD used for practical home network management instead of just theoretical security posturing.
toast0•4m ago
> The key advantage of pf over iptables for this kind of use case is that rule evaluation is deterministic and the syntax stays readable enough to audit six months later without documentation archaeology.

Is iptables not deterministic? Don't the packets look at each rule in numerical order until something matches? If you have two rules with the same number, shame on you.

Re archaeology, OpenBSD changed the rules syntax for some reason and the other platforms with pf kept the existing syntax, so that's always a fun game to play.

toast0•41m ago
> However, I ran into trouble with the RealTek ethernet hardware support in OpenBSD, which had been running fine with Linux for years.

I've run into problems with realtek gigE nics on Linux, FreeBSD, and Windows. I'm convinced their hardware/firmware has a timing issue where if the wrong things happen, the descriptor indexes get unsyncronized. This can lead to network stalls, but also wild writes. IIRC, reset behavior is weird too; vague because it's been a while since I looked, but I think if you get a network stall and do a reset, the card may receive and DMA a packet into RAM in the process ... something like that anyway.

I have systems where the FreeBSD base driver consistently stalls, but the realtek provided driver works mostly ok; but the realtek driver is full of undocumented flag setting, so who knows what it's doing... it also sets the NIC to emit pause frames when it runs out of RX buffers which I never want; things will be much better if packets are dropped when RX buffers are full.

I would love to have the equipment and time to figure out what's going on, but a) realtek probably should be the ones to do it, b) switching drivers usually works at no cost, and swapping to intel almost always works but you need slots and cards (ebay gets you multiport 1g for $10, 10g for $20-$30 though). I've heard realtek is good at 2.5g and intel isn't; but I haven't run enough realtek 2.5g to know.

foobarian•32m ago
Only allowing TCP will break a lot of stuff. I was wondering why even bother with the transport layer, instead of just focusing on IP directly
OGWhales•14m ago
Fun article! I like your watercolors too, especially the one of them going into the pufferfish's mouth :D
proteal•9m ago
Thank you for sharing! What are your thoughts on intentionally degrading service over the course of an hour instead of a hard cutoff? Like implementing an increasingly restrictive cap on download speeds/intentionally dropping a % of packets over the hour. Might be a little less jarring than a hard stop.

Moving from GitHub to Codeberg, for lazy people

https://unterwaditzer.net/2025/codeberg.html
290•jslakro•3h ago•135 comments

My minute-by-minute response to the LiteLLM malware attack

https://futuresearch.ai/blog/litellm-attack-transcript/
59•Fibonar•1h ago•21 comments

OpenTelemetry Profiles Enters Public Alpha

https://opentelemetry.io/blog/2026/profiles-alpha/
19•tanelpoder•46m ago•2 comments

Personal Encyclopedias

https://whoami.wiki/blog/personal-encyclopedias
634•jrmyphlmn•21h ago•129 comments

European Parliament decided that Chat Control 1.0 must stop

https://bsky.app/profile/tuta.com/post/3mhxkfowv322c
511•lemoncookiechip•4h ago•118 comments

Cory Doctorow: Interoperability Can Save the Open Web

https://spectrum.ieee.org/doctorow-interoperability
118•janandonly•2h ago•25 comments

From zero to a RAG system: successes and failures

https://en.andros.dev/blog/aa31d744/from-zero-to-a-rag-system-successes-and-failures/
200•andros•2d ago•60 comments

End of "Chat Control": EU Parliament Stops Mass Surveillance in Voting Thriller

https://www.patrick-breyer.de/en/end-of-chat-control-eu-parliament-stops-mass-surveillance-in-vot...
292•amarcheschi•4h ago•82 comments

My home network observes bedtime with OpenBSD and pf

https://ratfactor.com/openbsd/pf-gateway-bedtime
46•ibobev•3d ago•12 comments

Show HN: Claude skill that evaluates B2B vendors by talking to their AI agents

https://github.com/salespeak-ai/buyer-eval-skill
13•ogotlieb•1h ago•0 comments

Swift 6.3

https://www.swift.org/blog/swift-6.3-released/
248•ingve•9h ago•151 comments

Running Tesla Model 3's computer on my desk using parts from crashed cars

https://bugs.xdavidhu.me/tesla/2026/03/23/running-tesla-model-3s-computer-on-my-desk-using-parts-...
777•driesdep•19h ago•263 comments

Obsolete Sounds

https://citiesandmemory.com/obsolete-sounds/
148•benbreen•13h ago•31 comments

Newly purchased Vizio TVs now require Walmart accounts to use smart features

https://arstechnica.com/gadgets/2026/03/newly-purchased-vizio-tvs-now-require-walmart-accounts-to...
131•vidyesh•2h ago•127 comments

French e, è, é, ê, ë – what's the difference?

https://jakubmarian.com/french-e-e-e-e-e-whats-the-difference/
60•kerblang•1h ago•35 comments

Light on Glass: Why do you start making a game engine?

https://analogdreamdev.substack.com/p/light-on-glass
11•atan2•3d ago•0 comments

Shell Tricks That Make Life Easier (and Save Your Sanity)

https://blog.hofstede.it/shell-tricks-that-actually-make-life-easier-and-save-your-sanity/
364•zdw•16h ago•166 comments

Intel Announces Arc Pro B70 and Arc Pro B65 GPUs

https://www.techpowerup.com/347703/intel-announces-arc-pro-b70-and-arc-pro-b65-gpus-maxes-out-xe2...
63•throwaway270925•2h ago•23 comments

SpaceStarCarz KoolWheelz Paper Models

https://davesdesigns.ca/dcc/html/spacestarcarz_.html
13•exvi•2d ago•3 comments

Niche Museums

https://www.niche-museums.com/
76•bookofjoe•2d ago•37 comments

ARC-AGI-3

https://arcprize.org/arc-agi/3
469•lairv•22h ago•301 comments

Meta and YouTube Found Negligent in Social-Media Addiction Trial

https://www.wsj.com/tech/personal-tech/meta-and-youtube-found-negligent-in-social-media-addiction...
59•1vuio0pswjnm7•2h ago•9 comments

What came after the 486?

https://dfarq.homeip.net/what-came-after-486/
123•jnord•3d ago•99 comments

Ashby (YC W19) Is Hiring Engineers Who Make Product Decisions

https://www.ashbyhq.com/careers?ashby_jid=c3c7125d-7883-4dff-a2bf-f5a55de4a364&utm_source=hn
1•abhikp•10h ago

Earthquake scientists reveal how overplowing weakens soil at experimental farm

https://www.washington.edu/news/2026/03/19/earthquake-scientists-reveal-how-overplowing-weakens-s...
200•Brajeshwar•1d ago•106 comments

Optimization lessons from a Minecraft structure locator

https://purplesyringa.moe/blog/optimization-lessons-from-a-minecraft-structure-locator/
43•ftk_•5d ago•4 comments

LibreOffice and the Art of Overreacting

https://blog.documentfoundation.org/blog/2026/03/25/libreoffice-and-the-art-of-overreacting/
170•bundie•6h ago•106 comments

My DIY FPGA board can run Quake II

https://blog.mikhe.ch/quake2-on-fpga/part4.html
207•sznio•3d ago•61 comments

More precise elevation data for GraphHopper routing engine

https://www.graphhopper.com/blog/2026/03/23/more-precise-elevation-data-for-graphhopper/
74•karussell•3d ago•12 comments

The EU still wants to scan your private messages and photos

https://fightchatcontrol.eu/?foo=bar
1374•MrBruh•20h ago•367 comments