rootlesskit icon indicating copy to clipboard operation
rootlesskit copied to clipboard

Support IPv6 in address assignment and gateway

Open AlexeyPerevalov opened this issue 11 months ago • 5 comments

Rootlesskit assigns ipv4 address and routes for ipv4, but not for ipv6, this PR address IPv6 issue.

Some tools like slirp4netns could assign ip address, routes, but rootlesskit doesn't request them to do it.

Couple clues:

  1. Interface address and gateway should be received from e.g. slirp4netns. There is already a comment on it in code. Need to fix slirp4netns and others.
  2. Setting static IPv6 address fd00::1 to tap0 looks weired, since e.g. slirp4netns already could give dynamic address from fd00::/64 network, but there is a race. Rootlesskit can't set default route via fd00::2 unless IPv6 address and route from fd00::/64 is set to tap0.

AlexeyPerevalov avatar Apr 01 '25 09:04 AlexeyPerevalov

Can we have a test?

AkihiroSuda avatar Apr 12 '25 12:04 AkihiroSuda

Can we have a test?

yes, I'll add test. Did you mean these tests in hack/*

AlexeyPerevalov avatar Apr 15 '25 14:04 AlexeyPerevalov

Can we have a test?

yes, I'll add test. Did you mean these tests in hack/*

Yes, thanks

AkihiroSuda avatar Apr 16 '25 03:04 AkihiroSuda

What's the current status of this?

AkihiroSuda avatar Jun 12 '25 18:06 AkihiroSuda

Hi, sorry for late response, I would like to pause this.

AlexeyPerevalov avatar Aug 22 '25 09:08 AlexeyPerevalov