Skip to content

refactor(network): stop managing forwarding and RA - #21

Merged
LucaLin233 merged 5 commits into
mainfrom
luno/network-optimize-retire-forwarding-ra
Aug 19, 2026
Merged

refactor(network): stop managing forwarding and RA#21
LucaLin233 merged 5 commits into
mainfrom
luno/network-optimize-retire-forwarding-ra

Conversation

@LucaLin233

Copy link
Copy Markdown
Owner

Summary

  • Remove IPv4/IPv6 forwarding and RA assignments, virtual-interface RA normalization, and per-interface forwarding snapshots from network-optimize.sh.
  • Keep forwarding/RA visible as unmanaged, read-only status; preserve legacy config/runtime backups and explicit restore previous rollback behavior.
  • Harden initcwnd ownership markers, BBR persistence, rollback failure reporting, Cloudflare curl reaping, and per-egress qdisc/tcshape detection.
  • Document reboot-time forwarding ownership and migration risk.

Migration

A managed legacy config containing forwarding/RA keys prints one warning during install. New installs replace the managed config without writing retired runtime keys, so current forwarding/RA values remain unchanged until reboot or another manager takes over.

Validation

  • bash -n modules/network-optimize.sh
  • shellcheck --severity=warning modules/network-optimize.sh
  • bash tests/test-network-optimize.sh
  • bash tests/test-network-optimize-entry.sh
  • bash tests/test-network-optimize-verify.sh
  • bash tests/run.sh
  • forwarding/RA assignment and sysctl -w greps return no matches

Risk

After reboot, Docker, NAT, VPN, Tailscale exit-node, WireGuard routing, or IPv6 routing deployments must enable forwarding through their owning component or another sysctl config. This change does not automatically alter current production runtime values.

@LucaLin233
LucaLin233 merged commit 11165a5 into main Aug 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant