Skip to content

MilkFlint 0.81a

Pre-release
Pre-release

Choose a tag to compare

@OddBlueDog OddBlueDog released this 15 Nov 18:34
· 41 commits to milkflint-25.12 since this release

An update to 0.7a: AdGuard Home and banIP come with the image, each off until you turn it on, hardware offloading with Wireless Ethernet Dispatch (WED) is a setting, off by default, and the kernel is compiled for the router's Cortex-A53 cores. Still OpenWrt 25.12.6 and still an alpha. (0.8a was tagged but never released: this is it, with the kernel change.)

What's new

AdGuard Home

  • Ad and tracker blocking for every device, with the lists and rules you choose in AdGuard Home's own web interface. It's on a page of its own, Security → AdGuard Home: turn it on with a user name and password for its web interface, and MilkFlint writes its first settings, so its setup wizard never runs. No lists come with it: you pick them in it.
  • Your devices change nothing. They keep asking the router for names. The router hands their lookups to AdGuard Home with each device's own address, so it shows and filters each device, guest networks' and Remote access's included, over IPv4 and IPv6. What it doesn't block goes on to the router's own DNS, with the DNS page's servers, encryption, cache and rebinding protection, and the names on your network (name.lan) as before. AdGuard Home keeps a cache of its own in front, so a repeated lookup doesn't wait for that round trip. The DNS page's "Catch devices with their own DNS" sends those devices to AdGuard Home too.
  • The household keeps DNS if it fails. If AdGuard Home stops answering, crashes, or won't start, the router answers lookups itself, unfiltered, almost at once, and sends them back to AdGuard Home once it answers again. The page and the Dashboard say so while it lasts. It also starts after a reboot without leaving anyone without DNS while it loads its lists.
  • Settings that break the chain are spotted. If something changed in AdGuard Home's web interface (or by hand) breaks how the router uses it, such as its upstream servers, its DNS port, its listening addresses or its DHCP server, the page and the Dashboard say what, with a button to put it back.
  • Devices sent through a VPN (Send through a VPN) have their lookups sent through the tunnel too, to the DNS page's servers, while AdGuard Home is on and the DNS page uses servers of its own.
  • Its web interface is on your home network's address, port 3000, and nowhere else: not on guest networks, not from the internet, and from Remote access only when Remote access may open the router's pages.
  • Updates come from MilkFlint's own package feed (signed, as the kernel modules are), built from AdGuard Home's source; the page shows the installed and newest versions and can go back to an earlier one. AdGuard Home's own updater is off.
  • Its settings are kept when you upgrade with "Keep settings" and are in backups; its lists, statistics and query log aren't (the lists download again). A factory reset clears it.
  • In access point mode it's off: the main router answers DNS there.

banIP

  • Blocks known-bad addresses before they reach your network or leave it, from banIP's feed catalogue: lists of attackers, scanners, botnet controllers, countries or networks (ASNs), or your own. It's on a page of its own, Security → banIP, which does everything luci-app-banip does: Off, Recommended, Strict or Custom, with the memory and downloads each choice costs and how likely each list is to block something you want.
  • Your own lists: an allowlist and a blocklist, checked line by line as you type and applied to the loaded lists at once; import and export; an allowlist-only mode, with a confirmation.
  • Activity: what was blocked, when, which way, by which list and for which device, with Unblock, Always allow and a Who is it? lookup (only when you ask); the top sources, devices, ports and lists; banIP's own log. Look up any address, network or host name to see whether a list has it.
  • Advanced: every other banIP option, with what it does and its default; its custom feed file; email reports (msmtp is installed from OpenWrt's feed when you turn them on).
  • The router can't lock itself out: its own networks are always allowed, an entry that would block its gateway, DNS, time or package servers or the browser you're using is refused, and Remote access's WireGuard port stays open. Lists update daily at a random time in the night.
  • Nothing runs until you turn it on: no downloads, no tables, no scheduled job. Off in access point mode. The Logs page has a banIP tab.

Hardware offloading (WED)

  • A new setting, off by default: Performance Tuning → Flow offloading → "Hardware offloading (Wireless Ethernet Dispatch)". With it on, the router's chip forwards established connections by itself, Wi-Fi included, and the CPU no longer sees their packets.
  • What it costs is spelled out: those connections also pass by Smart Queue, which keeps latency low under load, so turning WED on turns Smart Queue's queues off (the internet port's and the guest networks' speed limits; the VPN's stays) and the firewall's flow offloading on. Before the save, the page lists what changes. Turning it off puts everything back as it was.
  • It takes effect at a restart: the Wi-Fi driver picks the setting up as it loads, and the save offers the restart. Smart Queue, Guest Wi-Fi, the Wi-Fi page and the Firewall page say while it's on what it changed.
  • Fixes for WED itself: four from upstream Linux for the Ethernet driver's WED (a larger WDMA reserve on the MT7986, a receive reset that resets the right rings, rings freed when the Wi-Fi driver lets go, buffers unmapped with their mapped size), and two in the Wi-Fi driver (no flow handed over while the host still holds its tokens; a station's counters with WED attached). sqm-scripts won't start a queue while WED is on, and the airtime fairness service reads the devices right with it.
  • Not in access point mode.

Elsewhere

  • Charts: new series colours that stay apart, for colour-blind eyes too, picked separately for the light and dark themes; Network Quality's latency and route charts scale to the lines shown instead of always starting at 0.

  • SNR beside the signal on Clients, the Dashboard's Clients card, the Wi-Fi page and Guest Wi-Fi.

  • Test Bench counts connections forwarded in hardware as offloaded.

  • Kernel: compiled for the Cortex-A53 cores of the MT7986 and MT7981 (-mcpu=cortex-a53), as OpenWrt already compiles their packages; OpenWrt's kernel is compiled for any 64-bit Arm core.

  • DNS page: says when AdGuard Home filters in front of its servers, and warns that it doesn't filter the home network's devices while they're told to use another DNS server.

  • Send through a VPN: says which way the devices' DNS lookups go with AdGuard Home on.

  • Test Bench: the router's own lookups go the way your devices' do, through AdGuard Home while it filters.

  • Logs: AdGuard Home's messages are in the system log, and its errors and the router's switching to and from it are in the DNS log.

Licenses

AdGuard Home is free software under the GNU GPL version 3, built here from its own source, unchanged. Its license, and a notices file with the license of every Go module and npm package built into it, are in the image and linked from its page. Its source is AdGuard's own at the version's tag on GitHub (linked from its page), built by the branch's package/milkflint/adguardhome/ at this release's tag; a copy of the source tarball, with the Makefile, is kept at https://milkflint-packages.pages.dev/sources/adguardhome/0.107.80-r1/SOURCE.txt. MilkFlint is not made or endorsed by AdGuard; "AdGuard" is their trademark.

banIP (by Dirk Brenken) and GNU awk are free software under the GNU GPL version 3 or later, from OpenWrt's packages feed (banIP unchanged; gawk built as gawk only, not as the system's awk); their licenses are in the image and their source is OpenWrt's packages feed at the version the branch pins.

Where the changes come from

  • AdGuard Home v0.107.80 by AdGuard (packaging from OpenWrt's packages feed, net/adguardhome).
  • Go 1.27.4, as OpenWrt's 25.12 packages branch has it.
  • banIP 1.9.1 by Dirk Brenken, and GNU awk 5.3.2, from OpenWrt's packages feed.
  • Linux (Wireless Ethernet Dispatch): c0ef04232f9f by Shiji Yang; 7180a42d8e61 and 5b8d12512cbd by Zhi-Jun You; ff5a2a7acec1 by Thomas Fourier. Each keeps its author and sign-offs in target/linux/mediatek/patches-6.12/995-*.
  • MilkFlint's own: the rest, with tests: the pages', and the router side in test VMs (the DNS chain, guest networks, IPv6, the VPN, a crash, access point mode, an upgrade; banIP's lists, lockout checks and log; WED's setting and the rule it holds). The Wi-Fi driver's WED fixes have KUnit tests.

Known issues

  • kmod-batman-adv isn'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.
  • Very large lists use a lot of memory while AdGuard Home updates them; the page shows how much it uses. The same goes for banIP's: its page shows what each choice needs and refuses one the router can't hold.
  • Hardware offloading (WED) is experimental: it's new, 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.81a-r33311-981c978eff-mediatek-filogic-glinet_gl-mt6000-squashfs-sysupgrade.bin below. 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 212e5bbe13. Building it is in the README.