MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 430 forks source link

IPv6 stack support #2463

Closed SoniEx2 closed 7 years ago

SoniEx2 commented 7 years ago

Every computer should have its own IPv6 address. We live in a world of docker, virtualization, UPnP, etc so it makes sense to have a full IPv6 stack. And with IPv6 this is fine because we have more IPv6 IPs than we know what to do with.

Benefits:

magik6k commented 7 years ago

There is IP stack for plan9k(oppm:plan9k-ip) and I have another unpublished IP stack for OpenOS. Both currently only support IPv4/UDP. Adding IPv6 should be trival, TCP would be hard. Public routability can be archieved via external go server. I don't think this needs be implemented directly by the mod. Other than that you can't implement this without requiring special privileges making it even more out of scope of the mod.

TL;DR can't be easily done in mod, was done in lua.

SoniEx2 commented 7 years ago

Working on getting userspace IPv6-only switches into linux. Should be possible in the near future.

I have a /64 might aswell use it, right? Each computer with its own public IPv6 address (because IPv6 can do that) and being able to bind to ports < 1024 without root privileges (if you have a whole IP all for yourself you don't need to worry about port conflicts).