PROJECT // eudormia Active

eudormia

Zero-polling Rust daemon for OpenWrt routers that enforces bedtime network limits with nftables and timerfd.

LANGUAGE: Rust LICENSE: MIT OR Apache-2.0 Source on GitHub ↗
rust openwrt nftables linux timerfd networking

eudormia is a lightweight Rust daemon for OpenWrt routers with a single external crate dependency (libc). It enforces graceful bedtime network limits without background polling loops.

Project homepage: eudormia.org ยท Source: github.com/lugu/eudormia

Key Engineering Choices

  • Arms a single Linux timerfd for the next schedule transition instead of polling in userspace.
  • Installs an atomic, dedicated inet eudormia nftables table using timed sets (5-minute grace period, 10-minute cooldown) without modifying firewall4 rules.
  • Discovers WAN and LAN interfaces from the default route and OpenWrt ubus.
  • Serves an embedded, dependency-free web schedule editor protected by salted SHA-256 PIN authentication.