Full disclosure: I make Patronus, a router and firewall OS built on Gentoo. It’s young. Version 0.2.0 came out on October 30.
Most of what I write about it comes out of CI logs, and a green netlab run tells you very little about what a feature is like to use. So on November 8 I took one 0.2.0 feature, per-device time limits, and used it the way a parent would. I set a policy, pushed traffic through the router from a pretend tablet, watched the tablet get cut off, and pressed the buttons.
What this setup is
It’s a lab, not my house. One container with four network namespaces: the router (the real patronus-web and patronus apply built from main, commit 9f5b2361), a LAN client I called kids-tablet, a fake ISP, and a fake internet that uses documentation addresses and *.example.test names. The browser on the “tablet” runs inside the client namespace, so every page it loads really crosses the router.
The clock is the one fake part. I moved the router’s time with PATRONUS_FAKE_TIME_FILE, the knob the tests use, so an evening took half a minute. Bytes, conntrack counters, nft sets and the pages are real. The passing of time isn’t, so this covers one quota day and a few next-day checks, not a month of living with it. That’s also why the screenshots say 2026-11-09.
The policy
120 minutes a day, only between 16:00 and 20:00, a warning 5 minutes before the cut, the day resetting at 06:00, attached to a group called kids. kids-tablet is the only device in that group.

A minute only counts if the device moved more than a byte threshold in it (20000 bytes by default, taken from conntrack counters). The docs say the point is that a tablet sitting idle doesn’t use up the day. Minutes spent blocked don’t count either: the tablet sat at 120 of 120 while I reloaded the blocked page over and over.


At 115 the tablet’s next plain http page was replaced by a “5 minutes left” notice. That’s a one-shot redirect that lasts two minutes.

The clip
This is the tablet’s browser on the left and the router’s admin page on the right, recorded in one take with no cuts and no speed changes. I added the labels and captions afterwards. The 118 minutes of usage before the clip came from real traffic, not from editing the database.
Quota runs out and the tablet gets “Time’s up”. I press +30 min today and access comes back. I press Pause internet now and it’s blocked again 97 ms after the click. Resume and it works again. After each restore I open a different site in the tablet instead of reloading the old tab, and there’s a reason for that further down.

What it does in the kernel
Enforcement is its own nft table, inet patronus_time, hooked at priority -11 so it runs ahead of the isolation table at -10. The docs say each change is one atomic nft -f, so other devices don’t see a blip when one device is toggled. A blocked tablet is three set elements: its IPv4 address in blocked_v4, its MAC in blocked_mac for IPv6, and the warning set for the two minutes after a warning.

nft list table inet patronus_time while the tablet was blocked. The text is the real output. I added the colouring.The router keeps answering ICMP and DNS for a blocked device and serves the page on :8081. I checked that ping and name lookups work, that the admin port times out, and that outbound TCP gets a reset. I did not test DHCP or SSH while blocked. After a simulated reboot (fresh namespaces plus patronus apply, no web UI yet) the tablet was already blocked and its usage was unchanged.
Timings from the lab: with a new TCP connection per probe, pause to first “Time’s up” response took 7 to 20 ms over 8 cycles, and resume to first real page 8 to 14 ms. Parent buttons act immediately. Window and quota changes are picked up by a ticker that runs every 5 seconds by default, so with the real default the page changed 4 to 5 seconds after a window edge.
Tests: 15 firewall unit tests and 2 captive-portal tests cover this code and they pass. The web crate has no time-limit unit tests of its own. There’s also a netlab scenario, lane-s-time.sh, which I did not run this time. No commit has touched the time-limit code since October 30.
What doesn’t work (yet)
The one that annoyed me most is the stuck tab. A tab that was redirected to the time’s-up page keeps its connection to the router’s page server. After +30 min or Resume the old tab reloads, but it lands on the router’s own “You’re all set” page and stays there. In the runs where I kept reloading it, it took anywhere from 16 seconds to over two minutes to recover, and in one run it hadn’t recovered after 80 seconds. A new browser context or a different site works at once. Force-quitting the browser recovers faster than pressing reload. That’s why the clip opens a different site after each restore. I haven’t fixed it.
https gets nothing useful. Only port 80 is redirected, so on an https site the browser shows its own connection error and apps just say there’s no internet. The “Time’s up” page only shows up for plain http.
Identity is the device’s IPv4 address, plus its MAC for IPv6. With the tablet paused I gave the same client another address and the internet worked, because only the old address was in the blocked set. A device that isn’t enrolled isn’t limited at all. The docs admit a phone that rotates its MAC on every connection can’t be bound.
IPv6 is cut but not counted. I got an IPv6 path working and the pause did stop it, but three simulated minutes of IPv6-only downloads left the usage at 4 minutes before and 4 after. The “Time’s up” redirect is IPv4 only too.
Accounting is a byte threshold per whole minute, so it isn’t a screen-time meter. One 47 KB response costs a full minute. Fifteen tiny connections in a minute cost nothing, thirty cost one. If you give a group a policy you get one quota per device, not a shared family pool, and bonus minutes are per device as well.
The enforcer lives in the web process. The ticker runs inside patronus-web. With it stopped and the clock moved 30 minutes past the end of the window, the tablet stayed online for the 10 seconds I watched. With it stopped and an already-blocked tablet, the tablet got connection refused instead of a page, since nothing was serving :8081. It catches up within a fraction of a second when the web process starts again.
A transfer already running when I paused did not fail fast. A 10 second stream delivered about 16 KB before the pause and 20 KB shortly after, then stalled until the client’s own 14 second timeout.
Minor things: in the policy form the seven day checkboxes stack in one tall column, the “who it applies to” form doesn’t preselect the current policy, and the usage table refreshes on a 15 second timer, so the admin page lags the tablet by a few seconds.
Things I haven’t tried at all: a real DoH client or VPN app, the stricter mode that also cuts DNS, a per-device policy overriding a group one, captive-portal probes from a real Android or iPhone, DST or NTP steps, and anything over more than a day of real clock time. DNS stays open while blocked by default, and I didn’t look for anything that stops someone tunnelling through it.
Where it stands
It does the basic job in the lab: a device with a policy gets cut when its quota or window runs out, a parent can add time, pause or resume, and the block survives a reboot. It’s less finished than the changelog suggests. I’d fix the stuck tab first, since parents will think the button failed. I have no fixes for any of the items above yet.
Next: a few days on a real clock with a real phone.
Patronus lives at patronus.errant.solutions.





















