Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.
Chenyao Lou edited this page Aug 1, 2020 · 20 revisions

Internals

Routing

wg-mesh uses iptables connmark to track the connection originated from the local, so the connections on other non-wireguard devices will not be routed to the wireguard tunnel.

BBR

BBR allows the TCP quickly to bump the speed to the bandwidth limit resulted in the less first loading time when watching videos. BBR also does not prone to throttle in the lossy network. But some websites do not use BBR as the congestion control algorithm. To utilize BBR, iptables redirects all the TCP connections to a userspace proxy, which does useless forwarding but with "side-effecting" that converting the TCP congestion control to the BBR configured in the OS.

TODO

  • 🛎️ Increase the limit of numbers of file descriptors. Should we disable any_proxy by default?
  • 🛎️ Monitor freedns-go and any_proxy and restart them in case of the crash
  • Add a new function lan_to_nat_gateway for the LAN devices whose gateway is a wg-mesh host. So that it can bridge a physical router with the mesh network.
  • Verify the validation/metrics in the mock network.

Known Issues

Clone this wiki locally