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

Implement IPv6 support #8

Closed
wants to merge 3 commits into from
Closed

Conversation

lilioid
Copy link
Contributor

@lilioid lilioid commented Oct 7, 2021

This is my approach to implementing IPv6 support.

It is fairly minimal at the moment and I will try to keep the following checklist up to date on what is already implemented:

  • Set the interfaces own address as IPv6
  • Specify the IPv6 adresses prefix length in TunBuilder
  • Retrieving IPv6 addresses from Tun instances.
    This is requires changing the currently used syscall from ioctl to getifaddrs because ioctl will only ever return IPv4 addresses.

Known inconveniences:

  • When the user specifies an IPv6 address as well as a netmask, an EADDRNOTAVAIL: Cannot assign requested address gets thrown upon building the TUN device.
    We should think about whether we want to just keep it that way or return our own error that then explicitly tells the user what they did wrong.

As always, feel free to give feedback :)

closes #6

@kriomant
Copy link

Hello. I'm interested in IPv6 support. What prevents this PR from being merged?

@yaa110
Copy link
Owner

yaa110 commented Dec 14, 2021

Hello. I'm interested in IPv6 support. What prevents this PR from being merged?

This pull request is still a work in progress.

@lilioid
Copy link
Contributor Author

lilioid commented Dec 14, 2021

I'm using it on my service currently and it works fine. I'm not sure when I will get around to implement the missing task (see checkboxes in PR description).

@kriomant If you are willing to use the work-in-progress version, feel free to do so, it works for me.

@xtexx
Copy link

xtexx commented Sep 17, 2022

Is this PR still working?

@Handsome1080P
Copy link

Handsome1080P commented Sep 24, 2022

Is this PR still working? After 1 year, still has issues?

@yaa110 yaa110 deleted the branch yaa110:master April 6, 2024 23:56
@yaa110 yaa110 closed this Apr 6, 2024
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.

Add IPv6 support
5 participants