Repository navigation
Conversation
This was referenced Nov 13, 2026
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.
Why
On an IPv6-only mobile network, the box uses CLAT (a translator that lets IPv4-only software use an IPv6-only mobile network). For that translated path to work, Linux's reverse-path check has to accept its packets while the link's output fence (a firewall rule) still lets traffic leave only through its own device. Packet sizes and address changes also have to be exact. This PR adds that and proves it with real packets in an isolated test network.
What
force_forwardingset in both directions. The box never writes global forwarding and never falls back to it.How: The data path routes each link's packets through CLAT and the carrier's NAT64 (its gateway from IPv6 to the IPv4 internet), and the translator's UDP checksum handling is pinned.
Sits on #23 (native cellular host effects and required sender binding). #25 builds on this PR. Part of the parked cellular stack that starts at #14, which explains the whole stack. It's on hold while the simpler NetworkManager-driven modem path is proven first.
How to verify
Run the tests this PR adds or changes, for example
cellular-forwarding-admission.test.ts,cellular-indexed-ip-state.test.ts,cellular-indexed-ip.test.ts,cellular-packet-fence.test.ts,cellular-route-plan.test.ts. They use synthetic modems and fakes, so no hardware is needed. A test in two isolated network namespaces sends traffic through CLAT and NAT64 (the carrier's gateway from IPv6 to the IPv4 internet) at the minimum MTU.Testing and limits
Risks
None for running boxes yet: the cellular stack is held outside the integration branch, so nothing here reaches a box until the stack is picked up again.
Checklist