Repository navigation
mode: bypass (side router) and ap (pure AP) (#24, #26) - #85
Merged
Merged
Conversation
…outer, no WAN
`mode:` is core (mode.go): router (default), bypass or ap, with `lan.gateway` and, for bypass,
`bypass: {clients: route-only | all | selected, macs, nat}`. No new program.
- bypass route-only: the main router stays gateway + DHCP, hands out this box as DNS and routes the
proxied ranges here (`mr proxy routes`); replies of proxied connections go back through the main
router (connmark + fwmark + table 301), so its connection tracking sees both directions.
- bypass all / selected: this box serves DHCP (for everyone / bypass.macs) and masquerades forwarded
traffic.
- ap: one bridge, forwarding off, no NAT / DHCP / RA / proxy / flowtable.
- install.sh asks for the mode and keeps the current address.
Tests, CI in network namespaces with a main router that drops invalid packets (route-only works and
breaks without the reply rule; all is masqueraded; ap loads), web UI 工作模式 card, docs.
Closes #24
Closes #26
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
mode:is a new core setting (mr/mode.go):router(default),bypassorap. Both new modes needlan.gateway(the main router).bypassalso takesbypass: {clients: route-only | all | selected, macs, nat}. No new program.route-only(default)allselectedbypass.macs, the main router for everyone else0x2000000in an output route chain and sent via table 301 (default via lan.gateway) back through the main router.mr proxy routes, APIproxy.routes, and the LAN page list the static routes the main router needs.br-lan), so replies come back through this box.lan.gateway;accept_ra=2; the DNS upstream defaults to the main router.wan, igmpproxy,lan.ipv6_ra,edge.open, anddns.upstream: isp.bypassrequiresproxy.ipv4_only.docs/modules/net.md(mode), MODULES.md, skill.Verification
tools/ci.d/mode.sh: network namespaces with a main router that drops invalid packets, a side router, two clients and "the internet".nft -cof the inet route chain passes on a 6.18 kernel.sh tools/ci.sh: ALL CHECKS PASSED.Closes #24
Closes #26
https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr