Repository navigation
Devices by name, mr pause, policy route fallback: drop (#15) - #89
Merged
Merged
Conversation
- devices: / groups: (dev module): a device = name + 1–8 MACs (+ fixed IPv4, type, owner). Referenced by name (or group:NAME) in forwards, access control, policy routes, proxy bypass, the guard, WOL and mr pause; resolved at validate / render time (router.yaml is never rewritten; old keys still work). Each device renders one dhcp-host line; a MAC, name or IP lives in dhcp.hosts or devices, not both. - mr pause DEVICE|group:x|MAC 1h / mr unpause / API dev.pause|unpause|paused: nft sets with timeouts loaded with every firewall load (not in the rendered file: no plan, no confirm window), the kernel lifts them; the reload cuts offloaded flows too. Firewall reloads are serialised. - policy_routes[].fallback: drop — the rule's traffic never leaks to another WAN when its WAN is down. - Web UI: 网络 › 设备 (inventory, groups, references, pause), 暂停 on 终端设备, an overview card for active pauses; device pickers in access control, policy routes, proxy bypass and forwards. Tests; CI (tools/ci.d/dev.sh) with real nft in network namespaces: a paused device's offloaded download stops, others keep going, DNS to the router still works, the pause survives a reload and expires; fallback: drop cuts and restores. Closes #15 Claude-Session: https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr
This was referenced Sep 26, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
devices:/groups:(new dev module).group:NAME: forwards, access control, policy routes, proxy bypass, the guard'salways_bypass, WOL andmr pause.dhcp-hostline. A MAC, name or IP lives in eitherdhcp.hostsordevices, never both.mr pause DEVICE|group:x|MAC 1h,mr unpause. API:dev.pause/dev.unpause(operate),dev.paused(read).policy_routes[].fallback: drop: when the rule's WAN is down, its traffic is dropped instead of leaking to another WAN.selected: when a selected MAC belongs to a device, that device's line carries the tag, so there is still a singledhcp-hostline.Not included:
unknown_devices: isolate(private MACs would lock out the owner's own devices) and OUI-based type guessing.Verification
mr/mod_dev_test.go,mr/mode_test.go).tools/ci.d/dev.sh, real nft in network namespaces:fallback: dropcuts the traffic when the WAN has no route and restores it when the route comes back.sh tools/ci.sh: ALL CHECKS PASSED. Cost: +64 KiB binary, nothing resident.Closes #15
https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr