add optional IPv6 egress via NAT66 (NETWORK_IPV6=nat)#12
Open
brett wants to merge 1 commit into
Open
Conversation
Add an opt-in IPv6 path for VMs. By default a migrant VM still has no routable IPv6 (dropped at the FORWARD chain); setting NETWORK_IPV6=nat in a Migrantfile gives the guest a ULA and masquerades it to the host's IPv6 uplink, mirroring the IPv4 NAT. Network isolation still blocks the host and LAN over IPv6. - migrant ip -6 and migrant status surface the VM's IPv6 (ULA) address - refused alongside WireGuard (fwmark routing is IPv4-only, so IPv6 would bypass the tunnel) - NETWORK_IPV6 is validated to nat/off; sample Migrantfiles set off
NETWORK_IPV6=nat)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NETWORK_IPV6=natin aMigrantfileto give the VM a ULA that the host masquerades to its own IPv6 uplink, mirroring the existing IPv4 NAT.NETWORK_IPV6=natthe VM's IPv6 is still dropped at theFORWARDchain, so nothing changes for existing VMs.NETWORK_ISOLATIONon (the default), the VM reaches the internet but not the host or LAN.virbr-migrantso neighbor discovery to the ULA gateway works; without it NAT66 reply traffic dies on host firewalls that accept ICMPv6 only fromfe80::/10.migrant ip -6andmigrant statussurface the VM's IPv6 (ULA) address, read best-effort from the DHCPv6 lease.migrantnetwork to gain the IPv6 subnet — documented in the README with a migration walkthrough.