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

support ipv6 #364

Open
scareything opened this issue May 26, 2022 · 3 comments
Open

support ipv6 #364

scareything opened this issue May 26, 2022 · 3 comments

Comments

@scareything
Copy link
Member

Support ipv6 addresses, for both intercept and host service configurations.

@qrkourier
Copy link
Member

I believed it already worked for host configurations. I haven't tested it since the tunneler SDK became available, but did test it successfully with early dayz Ziti when we had a need to host services that were IPv6 only.

@scareything
Copy link
Member Author

Thanks for the note! I thought it might already work for host configurations (since we only pass the address to libuv when connecting to the hosting server), but I didn't know that we had already tried it.

I don't think we'll have much to do on the intercept side either, as we mostly use the lwip ip_addr_t type which can be either ip4 or ip6. I expect most of the work to be in the dns server, where we currently do not handle AAAA requests.

@scareything
Copy link
Member Author

scareything commented Jun 17, 2024

#869 was enough to get ipv6 intercept working on Linux. More work is needed for macOS (and probably Windows). At least for macOS the next obvious issues are:

  • utun_add_route needs to parse out the prefix from the supplied route and pass it to the route command's -prefixlen option
  • Adding ipv6 routes to the utun will not be possible until there is an ipv6 address assigned to the interface. Ideally this address would come from autoconfiguration / slaac, but it isn't immediately clear how to enable autoconf for utun devices.

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

No branches or pull requests

2 participants