“A Short IPv6 Guide for Home IPv4 Admins” - taught me a bunch of useful things I didn't know that I didn't know about IPv6 in practice. Good stuff! https://gist.github.com/timothyham/dd003dbad5614b425a8325ec820fd785
@timbray I'm... tempted to read this, but conflicted, because I'm not sure that I really want to have more cursed networking knowledge
@timbray
Concept 2 is the one that bites me the most often while trying to use ipv6... I am never sure which one is real and which one is link-local DOH!!!
@timbray Nice, but...
As a typical user with a small home network (NOT a lab), what will happen if I stick my head in the sand and ignore IPv6 completely? Granted that's another article, but it might be useful.
@underlap @timbray You almost certainly have IPv6 on your network whether you know about it or not. Things as simple as finding network printers use it.
But assuming you mean public IPv6: your Internet access will be of higher latency, you'll start to be unable to reach more and more web servers (particularly in Asia Pacific), and you'll have to continue to deal with NAT issues.
@timbray i fundamentaly disagree about using ULA on the lan.
If you have a dual stack network it is compleatly redundant and will never be used. Extra complexity for no reason.
If have ipv6-only lan you have now reintroduced dns views in your #ipv6 world. #Dns views is a workaround for the nat issue, that also is a workaround for the ipv4 shortage issue. Removing dns complexity is a ipv6 killer feature imho. ULA is a workaround for a bad isp. Nobody should need it with a good isp.
@sep @timbray Agree 100%. And even in the case of a bad ISP that keeps changing the #IPv6 prefix, there's a workaround to attain stable, internal-use addresses: buy your own GUA prefix.
Two GUA prefixes can coexist just fine on the same LAN, since the router can only route the ISP's prefix to the Internet. No split-horizon DNS is needed, as it's GUAs everywhere.
A /44 costs about €4, and if that's too expensive, split it with a friend. Or 16 friends: a /48 for each!
@sep @timbray To be absolutely clear, it is unnecessary to set up global routing for the purchased GUA prefix. In fact, that would be counterproductive, if this prefix is meant to displace a ULA prefix like-for-like. You're just buying a set of addresses for your exclusive use.
A GUA prefix used just for local addressing is objectively superior to a ULA prefix, and I've not seen a use-case that would indicate otherwise.
@litchralee_v6 @sep @timbray I've been meaning to go this route (purchased, non-routed GUA for stable LAN addressing). The thing that's tripped me up here is outbound address selection on clients with multiple GUA. I run opnsense at the moment, and from what I've gathered it doesn't support NPTv6 for stateless prefix translation onto your ISP-provided PD prefix. So, what are folks doing here if/when clients select the non-routed GUA prefix for outbound?
Or do you only statically assign addresses from the non-routed GUA range to e.g. fixed devices (local DNS servers), and only add the non-routed GUA as an additional on-link prefix without also doing SLAAC for it for all clients?
@hugo @litchralee_v6 @timbray i use only real routed gua addresses. Since using a different gua internally also mixes up dns views that i despise. I want the same address and only one dns view for a given service.
Access is controlled in the firewall, not by using a non routed ip space.
All isp around here use stable prefixes so the isp gua is reliable. If i was on a unreliable isp i would rather do dynamic dns then use a internal only prefix. imho even a tunneled stable prefix is better.
@sep @hugo @timbray Do I understand the last part to mean you would use DDNS and NPTv6 so that the globally-accessible machine or service always has a consistent address no matter what network it's attached to?
In that case, I agree. My answer with the GUA was more geared towards internal-only services that never get accessed from the Internet. But since NPTv6 can -- IMO, should -- be used with GUA prefixes, I think it's still applicable if you had globally-accessible services and a bad ISP.
@litchralee_v6 @hugo @timbray
Not at all. NAT needs to die, preferably yesterday.
I would have used DDNS to update the dns of the GUA if the prefix changed. Ofcourse change to a proper isp that follows best practice would be prefered.
@sep @litchralee_v6 @timbray yea, so my use case was for "first leg" services, specifically an internal DNS server, where you need to still "bootstrap" into that by IP before other services can be reached over DNS and could be handled by DDNS. I do historically run a local/internal DNS zone (int.), with the intention of providing a stable prefix to reach the internal auth+recursive DNS servers.
But, I do suppose that there isn't anything really pinning me to that, and just shifting to DDNS with a public zone should cover a chunk of the use case.
I don't currently have this running, but I know folks with some other self hosted infra that expects static assignments, e.g. k8s podCIDRs and service addresses and such, that would still benefit from a stable GUA prefix and where NPTv6 would still potentially be helpful.
@sep @litchralee_v6 @hugo @timbray what happens when your network is offline, though? Do you run an internal DDNS provider as local resolver, and update it to point to the link local addresses when the ISP link is down?
@kitten_tech @litchralee_v6 @hugo @timbray
dhcp-pd have a week lifetime. Never had that long an outage. And if i had i would have statically configured the lan addresses so the local dns still would have worked with the normau gua addresses. I have networks like this allready so it is only lazyness for those lans that use the dhcp-pd pool
@sep @litchralee_v6 @hugo @timbray Hrm, OK. One of my networks is mainly offline and just gets Internet access via random public wifis when it can (or mobile data with my phone acting as a wifi provider, most often), which I do on IPv4 with a 192.168 LAN and a NAT router with the wifi interface on, so I'm still not sure what I'd do to IPv6 it. Not that I've been paying attention to whether any of those wifi networks I connect to have IPv6 anyway!
@sep @litchralee_v6 @hugo @timbray guessing I'd have to bridge the wifi rather than route as I doubt any random public wifi will delegate an entire prefix to my router anyway
@kitten_tech @litchralee_v6 @hugo @timbray
Bridging wifi is tricky. A given random hotspot may not support WDS/MESH, only some vendor spesific bridging protocol. Would probably need to use arp/nd proxy since wifi only deal with 1 client mac address by default.
This randomly accessed roaming network is probably a real and valid usecase for #IPv6 ULA and NPTv6. With DDNS you could even update public dns with the current public ip of any services you want accesible via internet.
@hugo @sep @timbray I will admit this is one detail I haven't looked closer at yet. I believe RFC6724 deals with selecting the source address for outgoing traffic, in Section 5. I wonder if really short lifetimes for the non-routed GUA prefix could work. Otherwise, per-system deprecation of the non-routed prefix could also work. But that's almost as much effort as static assignment.
@litchralee_v6 @sep @timbray short lifetimes is an interesting one; you've got me curious now.
@litchralee_v6 Good IPv6 advice from IPv6.social.
Where does one purchase a GUA prefix? I know Arin might give me a block if I buy a bunch more IoT devices.
@jollyrogue @sep @timbray My linked post has a link to someone who is selling /44 subnets.
https://chaos.social/@cr/111805093462604493
I haven't bought it myself yet, but they seem to also issue the LOA necessary to advertise a route on BGP, which could be handy.
There are legitimate use cases for RFC 4193, but they are such special cases that if you are a beginner in IPv6 you shouldn't touch them.
Anyone new to IPv6 are better off pretending RFC 4193 doesn't exist and that NAT64 is the only kind of NAT.
Finally anyone who mistakenly assumed that NAT could be used as a firewall should replace it with an actual firewall without NAT.
@sep
The thing is literally no one in the US at home has a good ISP (one that gives a static /48 or even /56 for example).
ULA is fundamentally necessary for anyone who doesn't have a provider independent allocation. I mean, if a tree takes down your cable modem now you don't have access to your NAS, your PiHole, your managed switches, your wifi access points? Ridiculous. ULA is needed for anyone who isn't a 1000 person corporation or bigger. (In the USA)
@timbray
@sep
Also the thing about dual stack isn't true. The solution is to advertise your private network with only AAAA records. My http proxy, NFS server, samba server, router and all my managed switches have AAAA records only if they support ipv6 (I think some of the 8 port switches don't). The devices have IPv4 on them but the names aren't connected to the IPv4 addresses. But the addresses so advertised are ULA because I can't rely on ATT to give me a static GUA assignment.
@timbray
@dlakelan @timbray not a single stable-predix isp sounds frankly insane. Do ARIN have other recomendations then RIPE perhaps? Is changing prefixes US best practices?
We just have a week dhcp-pd timers so a short internet interuption is basically a non-issue. Have not really considered what to do in a longer outage. But assigning the lan addresses statically would be quick and easy, it is not like i have hundreds of vlans at home. As long as wan requests the PD it would also work after.
@sep
"Best practices" in the US is maximize rent extraction at all costs. Which means anything the customer would potentially want above the absolute bare minimum should cause them to have to buy a crazy expensive higher tier of service. We have whole industries devoted to f*cking the customer here.
@timbray
@tb @timbray NPTv6 is not as bad as NAT. You atleast have an option of end to end connectivity.
But it is a tragedy if all networks will need those extra complexities because ISP's have spent the extra resources into making their #IPv6 offering unstable prefixes somehow. Perhaps to try to cash in on selling "static ip's". It would normally require a long outage for the lease to time out.
@timbray Our ISP is still IPv4 only but it's good to know there is an increasing amount of resources available.