Repository navigation
MilkFlint 0.85a
Pre-releaseAn update to 0.84a: a new Device control page for when each person's devices may use the internet, Scheduled tasks kept in the router's own crontab, an Ethernet ports widget, a Smart Queue (CAKE) that does less work per packet, and fixes in the Wi-Fi stack. Still OpenWrt 25.12.6 and still an alpha. The kernel has changed since 0.84a, so kernel modules come from this release's own folder of MilkFlint's kernel module feed.
What's new
Device control
- A new page, Devices → Device control: when each person's devices may use the internet. A person is a name and their devices (or a device on its own). Times off start from presets (Bedtime, School nights, School hours, Weekends), with several windows, always off, or only when paused. Pause (30 minutes, an hour, until the morning, until resumed) and Extra time (15 minutes, 30 minutes, an hour, or until the next block) take effect at once and end by themselves, a restart included.
- The times are plain firewall rules, so the Firewall page and LuCI show the same ones; a window over midnight is two rules, so the days picked are the nights. When a device goes off, its open connections are ended too, and the rules follow summer time when it begins or ends.
- The page shows who's off now and until when, what changes next, each person's week, their devices (online, last seen, a hint when one uses a private address) and their data today, and warns when the router's clock isn't set. A device that comes back on Guest Wi-Fi under the name of one of a person's is pointed out, with Add to them, and Guest Wi-Fi's internet can follow a person's times.
- SafeSearch and YouTube's Restricted Mode per person, with AdGuard Home on. Without it, the DNS page's family servers do it for every device.
- The Firewall page's Block a device opens Device control's sheet and writes the same rules; All devices shows each device's state, and Home has a Device control widget with Pause. It's off in access point mode. There are no daily screen-time limits, per-app limits or mobile-data controls.
Scheduled tasks and Home
- Scheduled tasks are lines of the router's crontab (
/etc/crontabs/root, the file LuCI's Scheduled Tasks and banIP use). The page has two views of the same draft: Tasks (restart the router, Wi-Fi off or on at a time on some days, any other job in words, banIP's update shown read-only) and Crontab (the file itself, every line checked). A save is refused if the file changed on the router since the page read it. Tasks made by an earlier MilkFlint are moved into the crontab once, after the upgrade. - A new Ethernet ports widget for Home: each port's link and speed (half duplex marked), its traffic now and its network when that isn't the usual one, the internet port first.
- The Memory widget and the System overview show buffers on their own beside the cache, and neither counts as in use.
- With no IPv6 address of its own, the router's delegated IPv6 range is shown on the Internet page, Home and the System overview.
- Home's responsiveness card names its figure "Slowest 5%" and adds Peak, the slowest answered ping, which the tile shows.
Smart Queue (CAKE)
- CAKE does less work for each packet, with the same queueing behaviour: the round of bulk flows takes constant time however many flows there are, flows that have gone quiet wait off the dequeue path, NAT mode finds a flow's IPv4 hash without looking the connection up for every packet, the count decay after a long pause is bounded, and the download's restored DSCP is kept for a flow's next packets instead of being looked up for each one. Many smaller savings too.
- A bug in CAKE's own code fixed (it's in upstream Linux too): when the queue memory was full, CAKE could drop from a queue that wasn't the longest.
- A new module parameter,
sparse_ahead_us(off by default), lets a new flow's first packet on a download go ahead of the shaper by that much.
Wi-Fi
- A Wi-Fi queue could hold its frames for too long. When a queue was woken at the moment its frames were being taken, mac80211 could miss the wake, and that device's traffic waited until the driver next came by. Fixed in mac80211.
- The Wi-Fi driver does less work per frame: register lookups, ring cleanup, and the locks it takes for each station and on receive.
- Two leaks in the driver fixed: an EEPROM in flash named without its offset kept its flash device busy, and the firmware's log channel wasn't closed when the device went away.
Fixes and smaller changes
- banIP: turning banIP on at the top of the page after picking Strict (or another preset) under Protection, without saving, now starts that preset instead of Recommended.
- Airtime fairness is off until you turn it on. Measuring every device each second costs some CPU, so on a fresh install no band has it, and the router measures nothing while every band is off; the card says so. A router that already has it on keeps it on.
- MilkFlint's log followers (the radar log, the log keeper) and the airtime service use much less CPU.
Where the changes come from
- MilkFlint's own, with tests: the pages' unit and browser tests, the router side in test VMs (Device control's rules, pauses, restarts and summer time, the crontab and the move of older tasks, AdGuard Home's per-person clients), the CAKE changes in its KUnit suite and test VM and on a Flint 2, and the Wi-Fi changes in the driver's and mac80211's KUnit tests, which now cover nearly all of the driver code the Flint 2 runs.
Known issues
- Device control is new. It has been tested in a test VM, not yet on many routers. If a device stays online after its time off begins, tell us which device and whether flow offloading is on.
- LuCI's Software page still offers upgrades for the pinned packages. Its Upgrade button leaves them as they are: apk keeps the pinned version. They're upgraded by MilkFlint's own releases.
kmod-batman-advisn't available. It doesn't build on this kernel, so it isn't in MilkFlint's kernel module feed and batman-adv mesh networks can't be set up for now. Kernel 6.12.114 renamed a field that the module still chooses by kernel version.- AdGuard Home knows devices by address. Rules for one device in its web interface need the device to keep its address (a reservation on the Clients page); rules by MAC address only work with AdGuard Home's own DHCP server, which stays off. Device control's SafeSearch follows a person's devices' current addresses.
- Hardware offloading (WED) is experimental: it turns Smart Queue off while it's on, and it can only be switched with a restart. Leave it off unless you want the CPU free more than you want low latency under load.
Installing
Already on MilkFlint? Keep your settings. Flashing over an earlier MilkFlint with "Keep settings" ticked keeps your configuration, and the update brings it up to date. From GL.iNet's firmware or OpenWrt, don't keep settings: untick "Keep settings" (from a shell:
sysupgrade -n), as settings from another firmware may not match this one.
- Flash only
milkflint-0.85a-r33311-981c978eff-mediatek-filogic-glinet_gl-mt6000-squashfs-sysupgrade.binbelow. Never a factory, preloader or bl31-uboot image. - From an earlier MilkFlint: System → Upgrade, or in LuCI, System → Backup / Flash Firmware → Flash image, with "Keep settings" ticked.
- From GL.iNet's firmware: System → Upgrade → Local Upgrade at http://192.168.8.1, untick "Keep Settings".
- From OpenWrt: in LuCI, System → Backup / Flash Firmware → Flash image, untick "Keep settings".
- After a fresh install (settings not kept), plug a cable into a LAN port and open http://192.168.1.1. There's no password yet: sign in with it empty and set one. Wi-Fi is off until you set it up on the Wi-Fi page.
To go back, flash GL.iNet's firmware the same way, again without keeping settings.
Source
Branch milkflint-25.12 at 0424e19637. Building it is in the README.