Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yggdrasill Gateway+Peer workaround #437

Merged
merged 23 commits into from
Oct 30, 2019
Merged

Yggdrasill Gateway+Peer workaround #437

merged 23 commits into from
Oct 30, 2019

Conversation

darkdrgn2k
Copy link
Contributor

@darkdrgn2k darkdrgn2k commented Jul 20, 2019

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

  • when JQ installed on system, it will read the yggdarsill config file for peers.
  • if JQ is not installed uses getPeers which means the peer must already be connected
  • Cant parse hostnames (assumes ips)
  • If/When Hostnames are used, DNS resolve may be an issue (round robin dns)

@darkdrgn2k
Copy link
Contributor Author

TESTING

  • Install yggdarsill
  • Peer TCP to another node
  • Make sure that TCP is the only path to the exit node
  • Configure IPTunnel.client
  • Report success and failures

docs/MODULES.md Outdated Show resolved Hide resolved
docs/MODULES.md Outdated Show resolved Hide resolved
docs/MODULES.md Outdated Show resolved Hide resolved
docs/MODULES.md Outdated

- Does not yet work for IPv6 peers
- When JQ is installed on system, it will read the yggdarsill config file for peers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do a global spell-check of yggdrasil

darkdrgn2k and others added 4 commits October 29, 2019 23:03
Co-Authored-By: Benedict Lau <b@deprecated.systems>
Co-Authored-By: Benedict Lau <b@deprecated.systems>
Co-Authored-By: Benedict Lau <b@deprecated.systems>
@darkdrgn2k darkdrgn2k merged commit d9359d7 into develop Oct 30, 2019
@darkdrgn2k darkdrgn2k deleted the yggtun-peerroute branch October 30, 2019 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants