tomeshnet / prototype-cjdns-pi

Prototype system for mesh networks on single board computers
https://chat.tomesh.net/#/room/#software:tomesh.net
GNU General Public License v3.0
218 stars 42 forks source link

Yggdrasill Gateway+Peer workaround #437

Closed darkdrgn2k closed 4 years ago

darkdrgn2k commented 5 years ago

ref #322

Two options to work around bug identified in #322

Options defined in /etc/yggdrasil.iptunnel.conf as "reroutepeers"

[general]
reroutepeers=unroutepeers

Default - empty no workaround

reroutepeers=routepeers

Iterate through peers and add them to the systems default gateway Add default routes over ygg

Pros

Currently works for all listed peers

Cons

When gateway changes tunnel collapses

reroutepeers=unroutepeers

Instead adding default routes progressively add routes but omitting the peer's ip

Pros

When ygg interface collapses routes are removed Since route for peer is never set it always uses the system default (survives roaming wifi etc)

Cons

Currently works for only the first peer Fills up the route table with routes

Additional Notes

darkdrgn2k commented 5 years ago

TESTING