News for hackers. Stuff that matters.
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Monday May 27, 2024 @06:29PM (#40495379)
It’s interesting because much of the “better” has eroded away in the current IPv6 landscape:

- “You don’t need NAT”: well, you still need a stable address space for your LAN that survives your ISP randomly changing your prefix (which has happened to me at least a half dozen times over the past year), and the best option for that is ULA, which erodes many of the benefits of “no NAT” because my IP’s are not routable.

- “No DHCP”, well you can’t reliably know the IP address of anything on your network without it: SLAAC with EUI-64 was supposed to make addresses stable and derived from your MAC address, but oops, that’s a privacy nightmare, so we end up randomly generating them (and rotating them!) IMO this is more complicated than DHCP, not less. Oh and DHCP lets you assign dynamic DNS names to every lease you hand out, and you lose that too with SLAAC. You can do mDNS but that doesn’t help with public hosts that you want to access from the internet, you’re left with static IPs there, and god help you if you get re-prefixed (see point #1) because now your static IP won’t route because your ISP changed the prefix.

I’m really rooting for ipv6, trust me, but it feels like all the greenfield rearchitecting they did ultimately doesn’t seem much better than the IPv4 equivalent standards. NAT is here to stay, unfortunately, and so is DHCP.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by dmm on Monday May 27, 2024 @08:01PM (#40496006)
> you still need a stable address space for your LAN that survives your ISP randomly changing your prefix

The randomly changing prefix is really annoying. There's no reason for your ISP to do this other than to try and upsell you on expensive commercial services.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by convolvatron on Monday May 27, 2024 @08:38PM (#40496231)
This was done so that networks could actually be renumbered to increase aggregation and routing efficacy. In todays work once you give out a number you cant take it back, and that leads to fragmentation (i.e. the swamp)
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Tuesday May 28, 2024 @02:26AM (#40497919)
> In todays work once you give out a number you cant take it back

This isn't true. If it were, then home ISPs would never renumber client networks.

You're probably thinking about the larger allocations handed to folks who have ASNs, rather than the small allocations handed small ISP customer sites... and even then, those can totally be reclaimed.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by dagenix on Monday May 27, 2024 @08:00PM (#40496001)
ULAs aren't the same as a NAT setup. You can assign all of your local devices stable ULAs _and_ also reputable addresses that randomly change. If you do that, there is no need for NAT.
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Monday May 27, 2024 @08:53PM (#40496305)
Right, I picked the word “eroded” because it’s not like the benefit is completely gone, but it’s not what was originally envisioned.

I do ULA+global unicast too, but it would be far simpler if I actually had a reliable stable prefix and could just use that. I put my ULA addresses in local DNS (because that’s why I need ULA, I need to not worry about rewriting my zone file whenever my cable modem reboots), but that means I have to do split horizon DNS. I wish I didn’t have to. (Yes I do mDNS too but I need real DNS for lots of use cases.)

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Tuesday May 28, 2024 @02:22AM (#40497904)
> Right, I picked the word “eroded” because it’s not like the benefit is completely gone, but it’s not what was originally envisioned.

You also said

> NAT is here to stay

Which, uh, it sure sounds like you're not using IPv6 NAT. In fact, it looks like aside from probably being confused about what "split horizon DNS" is [0] your setup is exactly like mine. Address autoconfig for both a annoyingly-frequently-changing global prefix, and a constant ULA prefix with DNS entries for the ULA addresses.

[0] Does your DNS server serve LAN _and_ WAN clients? If it doesn't, and it only serves LAN clients, you're almost certainly confused.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simiones on Tuesday May 28, 2024 @06:19AM (#40499186)
They pretty clearly talk about public hosts, so it seems quite likely that they are in fact doing split-horizon DNS (i.e. machine1.site.com will be resolved to an ULA address if the query is coming from the same subnet, or to the public address otherwise).
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Tuesday May 28, 2024 @07:02AM (#40499456)
IF homie is serving public-facing DNS for the site with the same server that's serving local DNS, then yeah, sure, split-horizon DNS is probably the thing that you'd do. But:

> They pretty clearly talk about public hosts

Thing is, I ALSO have public hosts on my LAN. And they're in both the public DNS and in the DNS on my LAN. But public DNS is not served from my local DNS, so I don't have a split-horizon setup.

The mere act of maintaining (in two entirely unrelated DNS servers) records for the same resource but with different data doesn't make a split-horizon setup. If it did, then I could reasonably claim "I'm running a split-horizon setup for mit.com!" just by adding an A record for "mit.com" to my local DNS server, despite being neither connected to any MIT internal networks, nor in a position to serve any data to MIT's Internet clients.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Tuesday May 28, 2024 @09:18AM (#40500459)
"homie" here.

I do DNS such that the same hostname, which I control, resolves to the ULA address if asking locally, but the public address if asking from an external machine. But it's not literally the same server, I use DNSimple for my public DNS and unbound on my local DNS. You can split hairs about whether split horizon means "the same DNS server serving both views" or not, but that's a needlessly pedantic snipe. But to cut off this argument: Sure, you're right. You score one internet point, I used the word "split horizon" incorrectly. You're very smart.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Tuesday May 28, 2024 @07:54PM (#40506803)
> You're very smart.

No, I'm really rock-stupid.

I also happen to be correct about the terminology.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Tuesday May 28, 2024 @09:10AM (#40500401)
> You also said

> > NAT is here to stay

It's not generally good form to cherry-pick things I said from other threads and put them out of context. "NAT is here to stay" can for the purposes of this discussion mean "Thinking about global vs local addresses is here to stay", even if it's not NAT per se that is happening (ie. if you're using a ULA + global unicast, like I do.)

> you're almost certainly confused

I'm not confused. I do split horizon DNS. I serve WAN and LAN clients (not currently from the same DNS server, although that's what I'd prefer to do. The same hostnames are currently configured in different DNS systems depending on who's asking, hence "split horizon".)

To be clear, here's my setup. It's not unique or interesting compared to any other "home lab" setup:

- I have multiple machines that I want to be able to access by DNS name externally.

- I also want to be able to use those same DNS names for local configuration, to keep things sane.

To do this, I have two options:

1) Use the publicly-routable global unicast addresses in my DNS, and make a system to keep them updated in a reprefix

2) Use a ULA prefix for local DNS, and the global unicast equivalent addresses for public DNS, and make a system to update only the public DNS when I get reprefixed

I chose option (2) because I want to mitigate the damage that happens when my ISP reprefixes me. (It's happened 6 times over the past year, it's not uncommon.)

When I get reprefixed, any local traffic that's using DNS to lookup the address keeps working as usual, because the ULA address doesn't change. I have to worry about reconfiguring public DNS, but that's the lesser of two evils IMO:

Because if I picked option (1), I'd have to reconfigure public DNS and my local traffic would all be disrupted while the reprefix happened: My hosts would all be trying to communicate with one another via their old prefixes, and failing until DNS reconfigures.

And this is all not to mention that I have to do the exact same reconfiguration dance with my firewall config: When I get reprefixed, my pf.conf is now referencing invalid IP's. I disable-by-default so it's not a security issue, but it's something that I had to solve with automation (in my case, by templatizing my pf.conf and writing dhcpcd hooks that reconfigure it when the prefix changes. It wasn't trivial.)

Now, to get back to my original argument: IPv6's simplicity benefits "erode" when you consider that worrying about internal vs external addresses is still something you have to deal with in the real world, at least in residential deployments where you don't own your own prefix. Granted: These issues are inherent to any system where your ISP is dynamically assigning you IP's, but it's important to understand: Yes you can have real endpoints for all of your hosts simultaneously without dealing with NAT, but you still have complexity to deal with to make this work, due to it being the real world.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Tuesday May 28, 2024 @07:53PM (#40506794)
> It's not generally good form to cherry-pick things I said from other threads...

What? Press "parent" on the comment of yours that I'm quoting from right now four times. You'll find the comment of yours where you say "NAT is here to stay" right here in this comment tree.

> To be clear, here's my setup.

Yep, that's my setup as well, except I don't screw around with applying per-host inbound traffic firewall rules at my router. Either traffic is worth blocking to an entire subnet, or it gets blocked at the host that cares about it. Saves a ton of maintenance.

> Yes you can have real endpoints for all of your hosts simultaneously without dealing with NAT, but you still have complexity to deal with to make this work...

Yep. It's less complexity than with NAT. Substantially so. That's like the entire point. The additional complexity you keep pointing at is because of a feature that you can't have with typical end-user NAT... the ability for each host on your LAN to have a globally-accessible IP address. And you can get rid of most of what you're complaining about by paying for a static prefix and getting it tunneled to your site, as folks elsewhere in this sprawling conversation tree have mentioned (or getting friendly with a local clued-in ISP and having them statically-assign you one).

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Monday May 27, 2024 @07:43PM (#40495891)
> ...the best option for that is ULA...

I have both globally-routable and ULA addresses assigned to the hosts on my LAN. The ULA addresses are in my local DNS, and I update global DNS whenever the site's global prefix changes. Aside from the fact that the global prefix changes way too frequently (like once a quarter) it works great for me.

> ...so we end up randomly generating them (and rotating them!)...

Yeah, I turn this shit off whenever I have the power to. This was a fucking stupid-ass thing to have on by default. Hella buncha ways you can be tracked that give zero shits about what your IP address is. (This is one time when I wish the Net Heads would have consulted with the Web Heads and learned about how trackers actually work.)

> NAT is here to stay, unfortunately, and so is DHCP.

Nothing wrong with doing DHCPv6 and SLAAC, or just DHCPv6. My network just uses SLAAC, but folks who need more features than that provides have another tool they can deploy. This is a good thing.

And you __can__ use NAT if you choose to, but if you're being assigned a publicly-routable prefix, there's no real reason to. Set up your border firewall to deny inbound unsolicited traffic, and set up uPNP (or similar) to hole-punch and you end up with the same security guarantees.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Monday May 27, 2024 @08:58PM (#40496331)
I think you’re making my point for me quite nicely…

Originally it was “IPv6 is great, you don’t need dhcp”, but then it became “well you may need DHCP anyway so here’s DHCPv6”, and then that becomes necessary often enough that you can’t really point to that as a benefit of IPv6 any more.

You don’t need NAT but you need a lot of the systems complexity that NAT requires, because you have to manage two sets of addresses in various configurations. Split DNS, etc.

You’re fine if you own the address range and it isn’t provided to you dynamically with DHCP-PD, but that isn’t the case with basically 100% of residential deployments. You need to multihome to even apply as a RIR to get your own prefix.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Monday May 27, 2024 @09:19PM (#40496455)
Thinking aloud: there needs to be a rethinking of how prefixes work in the next ::/3 we allocate for global unicast: it should be possible for individuals to get their own /48 for basically the same price as a domain name today. Hell, they could make cash as people rush to buy the memorable ones. Make personal route announcement a basic part of ISP service as defined by the FCC. We’d have a fighting chance of actually having a decentralized internet again. But I’m basically wishing for a pony at this point.
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by icedchai on Monday May 27, 2024 @10:12PM (#40496728)
You can basically do this today. There are RIPE LIRs that will allocate you a /48 pretty cheaply. There are tunneling services that will route it to you.
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by sgjohnson on Monday May 27, 2024 @10:45PM (#40496871)
It’s not actually expensive or difficult for an individual to get an ASN and IPv6 space.

https://lagrange.cloud/products/lir £15 one-off for an ASN and £7/y for a /48.

Then you just need to find someone to give you a BGP session. https://bgp.services

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Tuesday May 28, 2024 @09:26AM (#40500528)
I can't get any of that to my house. Comcast doesn't support BGP advertising a custom /48, and I can't even get one in the first place unless I'm dual-homed. The product you linked to has no details but it seems like you can get a /48 for their services, ie. if they're hosting my machines, they'll give me a /48. That doesn't help me.
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by icedchai on Tuesday May 28, 2024 @12:32PM (#40502553)
It helps you if you set up a tunnel back to your location. I have a /48 tunneled back to my home network over wireguard. There are several RIPE LIRs that will guide you through this, even if you're in the US. (You'll need a VPS in the EU to satisfy the contractual requirements. Your other VPSes can be closer to you.)
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by lmz on Tuesday May 28, 2024 @12:48PM (#40502726)
That 7£ /48 is a PA assignment, you can't take it home with you. https://en.m.wikipedia.org/wiki/Provider-aggregatable_addres...
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by icedchai on Tuesday May 28, 2024 @03:45PM (#40504797)
You can. I have some PA address space, assigned by an LIR, that I announce out of my own AS. All "PA" means is it comes out of their parent block and, if you stop paying, they'll probably want it back.
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by sgjohnson on Tuesday May 28, 2024 @04:59PM (#40505553)
Exactly. I have a PA /32 of IPv6 that I can sub-allocate and announce however I want. Or even lease to other people. It's my space, as long as I'm paying my LIR for it.
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by sgjohnson on Tuesday May 28, 2024 @04:58PM (#40505539)
You can do whatever you want with that PA assignment. PA means that it's the provider's address space, not yours. You can announce it wherever you want though.

The Wikipedia explanation is flat-out wrong.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by lmz on Thursday May 30, 2024 @11:09PM (#40531114)
How would announcing it elsewhere help with the "Aggregatable" part? Are people accepting advertisements for small PA subnets?
Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by sgjohnson on Saturday June 01, 2024 @01:26AM (#40543127)
Yes. A /48 of v6 is perfectly announcable.

There is no functional difference between PA and PI.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Monday May 27, 2024 @10:28PM (#40496801)
> I think you’re making my point for me quite nicely

Sorry, what's your point? That having both address autoconfiguration and DHCP is too complex? If so, that's has been the standardized state of the art in IPv4 since 2005 with RFC 3927, and has been non-standard actual practice with Windows and Mac since like 1998.

> ...you need a lot of the systems complexity that NAT requires...

No, all you need is a router that can do IPv6. It doesn't even have to have a firewall, which is absolutely mandatory for consumer-grade border-router NAT.

> ...Split DNS...

I don't run that. My DNS answers local queries for LAN hostnames it knows about and forwards global queries upstream. Just like nearly every consumer edge-router DNS server.

> ...DHCP-PD...

Yep. My ISP runs that on the WAN side of the router. I just do RAs on the LAN side of the router.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by tsimionescu on Tuesday May 28, 2024 @01:54AM (#40497748)
> Sorry, what's your point? That having both address autoconfiguration and DHCP is too complex? If so, that's has been the standardized state of the art in IPv4 since 2005 with RFC 3927, and has been non-standard actual practice with Windows and Mac since like 1998.

I don't think I've ever seen two computers communicate over a 169.254 address. Also, OS network stacks normally don't even try to get a link-local IPv4 address if they can get to a DHCP server or have a static address assigned. The RFC even recommends not using the link-local address if any other address is available. It's quite different from the way IPv6 works (as usual).

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Tuesday May 28, 2024 @02:13AM (#40497843)
> I don't think I've ever seen two computers communicate over a 169.254 address.

I have. Used to do it often in the dorms when the uni's DHCP server was on the fritz. Zeroconf/Avahi wasn't really a thing, so we'd use Network Neighborhood to get people's IP addresses to browse files or play on servers they were hosting or whatever. I have also (as the RFC envisions) done it when connected to ad-hoc WiFi networks, and also while directly connecting two Windows PCs. In those scenarios, I asked my peer what their IP address was, rather than bothering with going to Network Neighborhood.

> Also, OS network stacks normally don't even try to get a link-local IPv4 address if they can get to a DHCP server or have a static address assigned.

Correct. From the second paragraph of the Abstract of RFC 3927: [0]

> IPv4 Link-Local addresses are not suitable for communication with devices not directly connected to the same physical (or logical) link, and are only used where stable, routable addresses are not available (such as on ad hoc or isolated networks).

> The RFC even recommends not using the link-local address if any other address is available. It's quite different from the way IPv6 works (as usual).

No, it's also recommended when using IPv6 to not use link-local addresses if any other address is available. (Both because those addresses are only link-local, and because one usually needs to put an outbound interface specifier on the address when you go to contact another host, which is pretty obnoxious.) It just happens that IPv6's address autoconfiguration has been upgraded to be useful for globally-routable addressing, too.

So, yeah, a usual mode of both IPv4 and IPv6 networks is to have autoconfigured addresses, as well as DHCP-assigned addresses. It just so happens that most of the time IPv4 addresses are not autoconfigured, and most of the time IPv6 addresses are not assigned by DHCP.

That's equivalent complexity.

[0] <https://www.rfc-editor.org/rfc/rfc3927>

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by tsimionescu on Tuesday May 28, 2024 @05:49AM (#40499054)
> No, it's also recommended when using IPv6 to not use link-local addresses if any other address is available. (Both because those addresses are only link-local, and because one usually needs to put an outbound interface specifier on the address when you go to contact another host, which is pretty obnoxious.) It just happens that IPv6's address autoconfiguration has been upgraded to be useful for globally-routable addressing, too.

With what seems to be the recommended IPv6 setup at least for client machines, the Link-local address is the only stable identifier of that machine, as the actual reputable address changes all the time. So, the machine has both a link-local and a routable IPv6 at the same time, and both are going to be used. This is still different from IPv4, where link-local addresses are, again, an obscure feature that almost no one uses.

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Tuesday May 28, 2024 @07:38AM (#40499686)
> With what seems to be the recommended IPv6 setup at least for client machines, the Link-local address is the only stable identifier of that machine...

What? ULA space is the IPv6 equivalent of RFC 1918 space. If you want a prefix you know will not change, then you go generate you a /48 and use that on your internal network(s).

Why on earth would people expect ISPs that have a "We won't give you a guaranteed-static IPv4 address." policy to have a "We will give you a guaranteed-static IPv6 prefix" policy? Thinking that way is madness.

Perhaps you're confused because you're looking at guidance for client machines, when you should be looking at guidance for customer edge routers? Check out RFC 7084, and in particular section 3 and its subsections, and section 4.3 and its subsections. [0]

> ...as the actual reputable address changes all the time

Are you talking about IPv6 address randomization? (AKA "privacy" addresses?) IF you are, then know that it's

a) Controlled by the operator of the computer, rather than the operator of the network it's connected to.

b) Optional, and SHOULD be able to be turned off by the computer operator.

c) RECOMMENDED that a stable address be generated for the machine, in addition to the random ones.

Thing c) is in part to deal with "But what if I want to put a AAAA into the local DNS?" problem, and in part to give expected-to-be-long-lived connections an address that the system knows will hang around for at least as long as the interface is up.

After all, unless you want to tear down the connections associated with it, you can't remove an address from an interface until those connections have closed. More addresses allocated to a host means more multicast groups joined for that host, which eats up resources on the local networking infrastructure... so (if you're using "privacy" addresses) you really, really wanna steer ephemeral connections to addresses that are temporary, and long-lived ones to ones that are not.

[0] <https://datatracker.ietf.org/doc/html/rfc7084>

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by ninkendo on Tuesday May 28, 2024 @06:45AM (#40499336)
> Sorry, what's your point? That having both address autoconfiguration and DHCP is too complex?

My point is very simple: you can’t say “IPv6 is simpler because there’s no DHCP” if there’s DHCP. It’s pretty obvious right?

Re:Reclaiming IPv4 Class E's 240.0.0.0/4 by simoncion on Saturday June 01, 2024 @11:54AM (#40546769)
> My point is very simple: you can’t say “IPv6 is simpler because there’s no DHCP” if there’s DHCP.

DHCP is orthogonal to IPv6.

IPv6 deployment is simpler for many reasons. One being that at the typical end-user site you have neither v6 NAT nor v6 DHCP. Another being that you have enough address space (and we have collectively learned from the IPv4 allocation lessons how bad things can get) to have a good chance of setting things up so that routers need not do quite so much work to route v6 packets.