News for hackers. Stuff that matters.
Re:I spent a week without IPv4 to understand IPv6 transition... by thesuitonym on Monday March 06, 2023 @10:51AM (#35042454)
Everyone always goes with the "You don't need NAT, everything is globally routable!" argument, as if that's something that anybody wants. Everything on my network is going to go through my firewall anyway. I don't want anything on my network to be globally routable.

Of course, this is not a good reason to not use IPv6, don't get me wrong. It's a problem that's easy to overcome, I just think it's not a good way to get people excited about the transition.

Re:I spent a week without IPv4 to understand IPv6 transition... by lxgr on Monday March 06, 2023 @11:12AM (#35042735)
> Everything on my network is going to go through my firewall anyway.

Yes, and that's a very reasonable configuration.

But UDP hole punching (very widely used for VoIP, online gaming etc.) works orders of magnitude better with IPv6 than with IPv4, since there is no address and port translation to worry about.

With IPv4, it's very hit or miss, since it depends on both sides' NATs and also requires additional infrastructure (i.e. STUN discovery servers).

Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @01:02PM (#35044846)
> With IPv4, it's very hit or miss […]

It's also probably impossible if you're with an ISP that does CG NAT.

Re:I spent a week without IPv4 to understand IPv6 transition... by alyandon on Monday March 06, 2023 @03:13PM (#35046929)
I've actually run into this helping a friend host a game server on their residential internet in a more rural part of Texas. They had to call their ISP and request a static IP address at an extra cost of something like $5/mo.
Re:I spent a week without IPv4 to understand IPv6 transition... by philjohn on Monday March 06, 2023 @04:09PM (#35047623)
At that point, would a cheap VPS not work instead?
Re:I spent a week without IPv4 to understand IPv6 transition... by birdman3131 on Monday March 06, 2023 @04:55PM (#35048237)
No. Game servers usually want high clock speed.
Re:I spent a week without IPv4 to understand IPv6 transition... by op00to on Monday March 06, 2023 @05:08PM (#35048423)
You’d just use the VPS as a proxy with a publicly accessible IP, and tunnel the connection back to your home. That would add latency that might be undesirable for a game, but maybe not.
Re:I spent a week without IPv4 to understand IPv6 transition... by throitallaway on Monday March 06, 2023 @05:55PM (#35048978)
Unless you're playing something like a turn based game, adding latency/hops is almost never desirable. Every multi-player game that I play is latency sensitive (and I don't play FPS games.)
Re:I spent a week without IPv4 to understand IPv6 transition... by alyandon on Monday March 06, 2023 @05:38PM (#35048777)
The server in this case was the PC version of ARK which nom nom noms all the CPU/RAM.
Re:I spent a week without IPv4 to understand IPv6 transition... by birdman3131 on Tuesday March 07, 2023 @04:12PM (#35061309)
Run a cluster of 12 Ark servers. Can confirm.
Re:I spent a week without IPv4 to understand IPv6 transition... by ghshephard on Monday March 06, 2023 @08:25PM (#35050289)
IPv6 Networks have Prefix Translation - but that's pretty mechanistic and not prone to the types of failures you see with PAT on IPv4.
Re:I spent a week without IPv4 to understand IPv6 transition... by jcalvinowens on Monday March 06, 2023 @11:40AM (#35043091)
There is no downside to everything to be globally routable. It's completely orthogonal to firewalling.

What is the risk you're picturing here? I'm really curious. Features like RFC4941/8981 mean nobody can infer anything about your network from the source addresses they see making requests out if it.

If you want to use link-local V6 addresses and NAT to a global one, you can do that. But IMHO that's sacrificing one of the greatest advantages of IPv6 for no tangible benefit.

Re:I spent a week without IPv4 to understand IPv6 transition... by thesuitonym on Monday March 06, 2023 @11:55AM (#35043312)
I'm not saying there's any downside, I'm just saying it's not the magic bullet "this is why you should use ipv6" that everyone seems to think it is. It's a complete non-issue that nobody really cares about.
Re:I spent a week without IPv4 to understand IPv6 transition... by jcalvinowens on Monday March 06, 2023 @12:31PM (#35044144)
> It's a complete non-issue that nobody really cares about.

Huh. IMHO it's the single most desirable feature, and the only reason I care about it at all.

If you're approaching this from the home networking point of view, than I suppose I agree: even the most complex home network is just too simple for anything like this to matter much.

As the network gets bigger, that sweet sweet global routability starts to make a lot of things a lot simpler... I'm lucky to have worked on an enormous deployment of V6-only servers, and it's downright magical in comparison to anything of comparable scale I've seen before or since.

But yes, my home network is three NAT'd /24's because I'm too lazy to figure out how to make prefix delegation work...

Re:I spent a week without IPv4 to understand IPv6 transition... by kazen44 on Monday March 06, 2023 @03:53PM (#35047421)
Also, IPV6 has far more scalable systems for dynamic address allocation compared to IPv4.

SLAAC scales really, really well, and is fairly stateless compared to DHCPv4 or V6.

Also, slaac allows one to easily change the global prefix of a vm/host if it lives on another layer 3 network.

A good example of this:

you have two seperate datacenter networks based on an EVPN-VXLAN solution, and you do no want to stretch layer 2 across both datacenters because stretching layer 2 is a terrible, terrible idea[0].

Before IPv6, moving VM;s across datacenters which have different public ip space was a major pain for two reasons:

- IPV4 has no concept of using multiple addresses per interface without it having unexpected bahaviour on a host. - address management at scale is a major PITA because DHCP is not scalable.

How to solve this with IPv6? It's fairly easy:

- Use slaac + prefix delegation of your globally unique address space (which is different per Datacenter). - Use a different (site local) address to reach the VM for management purposes. Because this address is not globally routable, you are sure it will never leak into the greater internet and be reachable from the outside world. - If you are using anycast, you can easily announce this prefix to upstream BGP neighbours because you can use BGP Neighbour Autodiscovery[1].

Trying to do this with Ipv4 will result in a mess of administration, not to mention have to do some clever technical hacks to make it work on some operating systems.

With IPv6 solving these issues becomes quite manageable.

[0] https://blog.ipspace.net/2021/06/stretched-vlan-define-probl... [1] https://www.juniper.net/documentation/us/en/software/junos/b...

Re:I spent a week without IPv4 to understand IPv6 transition... by JohnFen on Tuesday March 07, 2023 @01:29PM (#35059108)
> IMHO it's the single most desirable feature, and the only reason I care about it at all.

Fair enough. For me, this is a thing I literally could not care less about.

Re:I spent a week without IPv4 to understand IPv6 transition... by growse on Monday March 06, 2023 @12:06PM (#35043485)
The point is that it gives you options. You might not want to have anything on a network reachable from the internet today, but next year you suddenly need that capability and it's useful to be able to take advantage of that, rather than wading through the buggy mess of NAT.

> It's a complete non-issue that nobody really cares about.

A significant number of people spend a significant amount of time trying to carve out and re-use address space in their existing IPv4 allocations and RFC1918 space. This becomes nightmarish the moment you start thinking about networks of any significant size and complexity. All of these problems go away with IPv6, and we care about that a lot.

Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @04:49PM (#35048160)
> It's a complete non-issue that nobody really cares about.

The availability of IPv4 addresses is something that more people will care about, and getting IPv6 going may help folks. From another comment in this sub-thread:

> I've actually run into this [CG NAT] helping a friend host a game server on their residential internet in a more rural part of Texas. They had to call their ISP and request a static IP address at an extra cost of something like $5/mo.

* https://news.ycombinator.com/item?id=35046929

Re:I spent a week without IPv4 to understand IPv6 transition... by lmm on Monday March 06, 2023 @06:22PM (#35049298)
People care as soon as it bites them. If I can't stream my music when I'm on my work VPN because the IPs are the same, that's a pain. If my wife and I can't game together online because we "have the same IP" that's a pain. There are all these little irritations that come from not having a global address, and they add up.
Re:I spent a week without IPv4 to understand IPv6 transition... by adriancr on Monday March 06, 2023 @12:13PM (#35043619)
> nobody can infer anything about your network

They can infer that one IPV6 address matches to exactly one device. (reverse is not true, one device may have multiple addresses per privacy extensions)

Once device is identified all its past traffic is discernible.

Changing addresses means identification needs to be done again but once done it can be associated with past addresses and again, all its history is visible.

Identification might just mean querying a data broker with HTTP headers.

NAT does not have this issue.

Re:I spent a week without IPv4 to understand IPv6 transition... by jcalvinowens on Monday March 06, 2023 @12:17PM (#35043706)
> They can infer that an address matches to a single device

No they can't: the whole point of RFC4941/8981 is to prevent that. The source address for external connections is effectively randomized.

All that can be inferred is that it came from your network, but even with NAT you know that anyway.

Re:I spent a week without IPv4 to understand IPv6 transition... by adriancr on Monday March 06, 2023 @12:22PM (#35043844)
> The source address for external connections is effectively randomized

It's still unique to one device right?, even if random my argument still holds.

Or do you mean to say multiple devices can use the same address?

note: I've read the RFCs and they just mean - initial address is random but unique to a device. Each day the address will likely change but new address is still unique to the device (otherwise how would routing work).

This is what I structured my inital argument on. Do you see any fallacy in logic?

Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Monday March 06, 2023 @12:46PM (#35044498)
You literally wrote "Once device is identified all its past traffic is discernible." How is that compatible with devices changing their address every day?
Re:I spent a week without IPv4 to understand IPv6 transition... by adriancr on Monday March 06, 2023 @01:10PM (#35044985)
you identify device each day, identity is X, daughter of Y on iPad. Once identified via data broker all its traffic is identifiable including torrents for example and porn websites, etc (say X goes to facebook with new address it now has real name)

Once identity is known for address X you know its traffic for the day, including past traffic for the day.

once address changes you do the whole identification again.

All these logs where address is identified goes to bucket X.

On addresses where you couldnt identify that day you put them in unknown bucket.

Once you have a profile of the network, you can do exclusion (Only 4 people in household, 3 active with known addresses, not X, one unknown address, you can assume its X)

Re:I spent a week without IPv4 to understand IPv6 transition... by jiggawatts on Monday March 06, 2023 @02:36PM (#35046455)
Nobody bothers to do this kind of tracking because web browsers leak 100x more information by default anyway.

The “I don’t care if they track my household but it’s critical that Daddy’s activity not get disambiguated from my dealing daughter” is just not a valid reason to abandon the benefits of IPv6.

Please stop with this line of argument.

If you’re really desperate to ensure that the ads shown to your daughter are based on your porn viewing habits, then just set up IPv6 NAT.

Re:I spent a week without IPv4 to understand IPv6 transition... by adriancr on Monday March 06, 2023 @02:52PM (#35046674)
> Nobody bothers to do this kind of tracking because web browsers leak 100x more information by default anyway.

That's a broad assumption, and I can assure you they will due to lower costs (no need to pay data broker if you already know target, no need for extra traffic, load, etc). Also due to better targetting you get better prices per ads served.

> just not a valid reason to abandon the benefits of IPv6

What are the benefits to allow each device its own address if I'm going to firewall them anyway?

> Please stop with this line of argument.

Why?, my concern is valid, all you've said so far is nobody cares. I disagree.

> If you’re really desperate to ensure that the ads shown to your daughter are based on your porn viewing habits, then just set up IPv6 NAT

That says a lot about yourself if you resort to this sort of snarky comments, I have no wish to continue this conversation.

Note: I said in another comment I have set up IPv6 NAT and it works great.

Re:I spent a week without IPv4 to understand IPv6 transition... by wankle on Monday March 06, 2023 @04:44PM (#35048097)
Thank you adriancr, barkingcat and flangola7 for making the salient points about IPv6. When I've tried to make the same points over the years, it didn't work out well. I see there's a new topic today, someone "outraged" that Roku devices don't use IPv6. It's always like that, people who seem to want to heavily push IPv6 are so outraged. All that does is confirm my view of IPv6 is right.
Re:I spent a week without IPv4 to understand IPv6 transition... by barkingcat on Monday March 06, 2023 @03:31PM (#35047151)
wait ... when you say nobody bothers ... that's a high bar. Most likely a ton of adtech companies are just drooling to use (or already are using) this type of correlation even if browsers leak more info.
Re:I spent a week without IPv4 to understand IPv6 transition... by jiggawatts on Tuesday March 07, 2023 @02:51AM (#35052723)
Re:I spent a week without IPv4 to understand IPv6 transition... by flangola7 on Monday March 06, 2023 @04:17PM (#35047740)
> Nobody bothers to do this kind of tracking because web browsers leak 100x more information by default anyway.

If I told my security information officer "We don't protect against foreseeable threat X because we assume no one will bother to try X" she would not be very happy with me.

When a valid data concern has been expressed and described, putting your head in the sand is the incorrect response. I want IPv4 to die as much as the next person but at a minimum organizations such as hospitals and government installations will not accept that sort of outside visibility into their network.

Re:I spent a week without IPv4 to understand IPv6 transition... by jiggawatts on Tuesday March 07, 2023 @02:51AM (#35052725)
Re:I spent a week without IPv4 to understand IPv6 transition... by Hackbraten on Tuesday March 07, 2023 @06:35AM (#35054196)
> because web browsers leak 100x more information by default anyway.

I don’t quite feel convinced yet by this argument.

For example, one essential difference is that while it’s true that my web browser does have those leaks, I can be reasonably sure that it’s only leaking to specific hosts, i.e. the one I’m visiting and its embedded resources.

Tracking on the IP source address level, however, would be a whole other thing: that means that whoever happens to see the byte stream can now track who is visiting what. That includes, for example, my ISP, all large Internet exchanges, and anyone tapping into those.

Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @01:07PM (#35044926)
> Each day the address will likely change but new address is still unique to the device (otherwise how would routing work).

If you set up your device to spin up a new IPv6 address every hour (or even every minute), how will they track you using IPs?

On macOS it's 24h, but it doesn't have to be:

    $ sysctl -a | grep temppltime              
    net.inet6.ip6.temppltime: 86400
Re:I spent a week without IPv4 to understand IPv6 transition... by adriancr on Monday March 06, 2023 @01:16PM (#35045096)
I mean, it's the same point, single address to single node, just more often, so need to identify more often.

Minutes or less I guess would defeat tracking, but then what's the point?, it's almost equivalent to NAT it still breaks reverse connectivity? and does it actually work?

It also feels like a workaround for an oversight.

Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @04:40PM (#35048046)
> I mean, it's the same point, single address to single node, just more often, so need to identify more often.

But how would they know it is to the same node?

I have my DSL router-modem reboot every night, and I get all sorts of crazy results for ads: I'm in southern Ontario, as is my ISP, but they service folks in Quebec, and so sometimes I get Youtube ads in French since (per my IP) I'm "in" Quebec.

Similarly with the reboot I get a new /64 prefix delegation (actually /56), so I would hazard to guess if IPv6 starts getting tracked, I'd get the same crazy results.

Re:I spent a week without IPv4 to understand IPv6 transition... by mqus on Monday March 06, 2023 @07:05PM (#35049715)
ipv4 with NAT gets you a new "adress"(meaning port) on every single new connection. I don't see IPv6 doing the same thing(it has no clue about connections)
Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @07:44PM (#35050012)
> ipv4 with NAT gets you a new "adress"(meaning port) on every single new connection.

No one cares about tracking by port. You are tracking by IPv4 address.

I know this first hand because I have my DSL router-modem auto-reboot every night (built-in Asus functionality), and I get all sorts of crazy results for ads: I'm in southern Ontario, as is my ISP, but they service folks in Quebec, and so sometimes I get Youtube ads in French since (per my IP) I'm "in" Quebec.

And given that I have IPv6, most OSes generally use that as a first preference for connectivity, and so my IPv6 address/prefix is "in" Quebec.

And this is even with cookies enabled, which should make tracking by browsing easier (esp. since I get decently-accurate recommendations based on viewing history), but yet I still get French ads because my IPv4/IPv6 address is "in" Quebec.

So I have no idea what people are talking about when they say IPv6 will make tracking easier than IPv4. With RFC 4941 it's a solved problem IMHO and no worse under dual-stack than it is under single-stack.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:14AM (#35055547)
That's not tracking to you specifically, that's geo location so they're just trying to identify the general area for purposes of showing ads.

With IPv6 chances are your ISP has a single large address block, and then they split out parts of that address space to users in ontario and quebec. Unless the ISP publishes details of where they've allocated those blocks, any external site is just guessing.

With legacy IP chances are they have multiple small fragmented blocks, some of which are routed to ontario and some of which are routed to quebec so they're a bit easier to keep track of unless the ISP decides to move them.

Also when you address changes, the legacy address space is probably quite close to full so your previous address is released and probably taken by another customer fairly quickly. The IPv6 space will be much larger, and so recycling occurs far more slowly.

Either way youtube is just guessing, it only knows that the address space belongs to a canadian isp and it has to use the behaviour of whoever used those addresses last. If the previous user set their browser language to french and searched for french sites, youtube will remember that and is more likely to serve you french ads.

Re:I spent a week without IPv4 to understand IPv6 transition... by otabdeveloper4 on Tuesday March 07, 2023 @03:38AM (#35053054)
> There is no downside to everything to be globally routable.

Yes there is. I sure as fuck don't want random people from the Internet to know how many devices and what kind populate my home LAN.

Re:I spent a week without IPv4 to understand IPv6 transition... by rixthefox on Tuesday March 07, 2023 @05:28AM (#35053744)
If an adversary knowing your IP address scheme it’s so bad to you, you’re not doing it right.

Security through obsecurity is not security.

Re:I spent a week without IPv4 to understand IPv6 transition... by jddj on Tuesday March 07, 2023 @06:28AM (#35054149)
I wonder if whoever coined that phrase knew that it would be used so often in contexts where people want both obscurity and security based on their own respective merits.
Re:I spent a week without IPv4 to understand IPv6 transition... by otabdeveloper4 on Wednesday March 08, 2023 @12:45PM (#35072191)
> Security through obsecurity is not security.

Yes, let's just flash a giant "welcome, nobody is home right now" sign to burglars whenever you leave the house unlocked.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:18AM (#35055592)
How is anyone going to discover that?

You're going to have a minimum of a /64, noone is going to scan that looking for devices.

Even if they do, your firewall is not going to allow the traffic unless you've explicitly configured it to do so.

The only way someone will discover devices, is by analysing outbound traffic you make. Outbound IPv6 traffic will come from randomised addresses so the addressing information is useless. Other things disclosed by the devices (eg user-agent headers on web browsers and other fingerprintable data) are protocol agnostic.

Re:I spent a week without IPv4 to understand IPv6 transition... by sgjohnson on Thursday March 09, 2023 @05:20AM (#35079895)
nobody in our lifetimes is going to scan a single /64 of IPv6.
Re:I spent a week without IPv4 to understand IPv6 transition... by ArchOversight on Monday March 06, 2023 @10:52AM (#35042461)
That's what a firewall is for, NAT does nothing here.
Re:I spent a week without IPv4 to understand IPv6 transition... by thesuitonym on Monday March 06, 2023 @10:53AM (#35042482)
I know, did you read my whole post?
Re:I spent a week without IPv4 to understand IPv6 transition... by dale_glass on Monday March 06, 2023 @11:03AM (#35042634)
It just makes little sense.

With IPv6 instead of NAT deciding that port 2000 maps to 192.168.1.3 port 22, you have a firewall that may or not choose to route to xx:yy:zz or not, and to allow an incoming connection over port 22 to that host or not.

If you don't want to accept incoming connections to a given machine or network on IPv6 without NAT that's very easy to have.

Re:I spent a week without IPv4 to understand IPv6 transition... by AnonymousPlanet on Monday March 06, 2023 @11:09AM (#35042697)
Maybe people don't want to disclose the number and purposes of interior machines?
Re:I spent a week without IPv4 to understand IPv6 transition... by temp2022account on Monday March 06, 2023 @11:37AM (#35043057)
To be fair that info is already available w/ port sequence analysis, the same machine will pick from the same set of ephemeral ports for outgoing connections. I'd say the time for vanity privacy arguments is over, I'm all-in for team globally routable addresses w/ firewalls just saying "yes" or "no" to connections instead of routers guessing at port mappings.
Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @12:06PM (#35043501)
Port sequence analysis is stifled by SNAT though.
Re:I spent a week without IPv4 to understand IPv6 transition... by adriancr on Monday March 06, 2023 @12:09PM (#35043553)
> the same machine will pick from the same set of ephemeral ports for outgoing connections.

Ports on router are allocated by it and not client machines. So far my experience has been they're usually sequential without any preferrence.

Re:I spent a week without IPv4 to understand IPv6 transition... by petertodd on Monday March 06, 2023 @11:34AM (#35043005)
IPv6 has so many addresses that the default is for /64 subnets to be the minimum network size, allowing devices to choose their addresses randomly within that range. If they do that, 2^64 is big enough that it's not practical to enumerate all devices on a given network. Attempting to do so would be a bandwidth DoS attack: attempting to ping 2^64 devices requires 2^64 * 64 bytes = 1024EiB, roughly equal to total global internet traffic per year.

Now, sometimes NAT is needed anyway: QubesOS supports IPv6 using NAT because it splits things up into many different VMs on one computer. But that's a pretty rare case.

Re:I spent a week without IPv4 to understand IPv6 transition... by drbawb on Monday March 06, 2023 @04:44PM (#35048091)
EUI64 means that random space is effectively reduced to just 48-bits of real entropy, <40 bits if you start making assumptions about device vendors. For example maybe the attacker has a VMWare exploit: enumerating that OUI (00:50:56) leaves them with just 24-bits of address space to scan, a measly 1GiB of traffic.

It's security through obscurity at best, i.e: not security. You shouldn't be relying on size of address space to protect you from anything. An IDS/IPS that alerts on abnormal ICMP behavior will be useful whether an attack is 1GiB of traffic in size or 1024EiB of traffic in size. (Also you don't even need automated scanning to find some juicy targets: I've seen a lot of routers on the edge of a prefix configured at ::1/64 and ::2/64 for instance.)

Re:I spent a week without IPv4 to understand IPv6 transition... by CaliforniaKarl on Monday March 06, 2023 @06:35PM (#35049417)
Most systems aren't using EUI64. Within a subnet, they're using random addresses per RFC 4941. So, if I've got a /64 IPv6 allocation (which I do right now), that means I've got 64 bits of randomness to play with. Right now, my macOS system has four publicly-routable IPv6 IPs, all of which were randomly-generated, and which regularly regenerate.

I did not have to do anything to get this. My macOS system has IPv6 set to Automatic. My home ASUS router picks up the /64 allocation from my ISP, passes the info on to things on the LAN, and acts as a firewall for IPv6 (while continuing to act as a NAT for IPv4).

According to https://www.internetsociety.org/resources/deploy360/2014/pri..., this has been common for some time.

Re:I spent a week without IPv4 to understand IPv6 transition... by hot_gril on Tuesday March 14, 2023 @05:14PM (#35158781)
I don't see what's wrong with the outside knowing your local IP addresses. But I absolutely wouldn't want EUI64 encoding my device vendors in the addrs.
Re:I spent a week without IPv4 to understand IPv6 transition... by silon42 on Monday March 06, 2023 @11:22AM (#35042858)
Yeah, I had an idea to have an IP for each container (which means almost every "containerized" application soon, possibly even every browser window).
Re:I spent a week without IPv4 to understand IPv6 transition... by dale_glass on Monday March 06, 2023 @11:45AM (#35043171)
That's what the privacy extensions are for. You can have a regularly changing, randomly generated IP address on each machine.
Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Monday March 06, 2023 @11:47AM (#35043190)
Your machines could change their IPs for every second of every day and you wouldn't come close to exhausting your /64 subnet for the next billion years.
Re:I spent a week without IPv4 to understand IPv6 transition... by TheLoafOfBread on Monday March 06, 2023 @03:06PM (#35046836)
Why do network stuff easy, when you can do it hard.
Re:I spent a week without IPv4 to understand IPv6 transition... by mqus on Monday March 06, 2023 @07:13PM (#35049778)
Won't this break your TCP connections? NAT won't, because it's connection-aware by its nature. And you also get a new "address"(=port) on each new connection, regardless of any setting.
Re:I spent a week without IPv4 to understand IPv6 transition... by yrro on Tuesday March 07, 2023 @02:48PM (#35060232)
Deprecated addresses still work, they just aren't removed from an interface until there are no more sockets using them.

(Hand waving a bit here with terminology don't shoot me)

Re:I spent a week without IPv4 to understand IPv6 transition... by stephen_g on Monday March 06, 2023 @10:42PM (#35051267)
My network would look like it has dozens of machines, since everything is periodically rotating its IP randomly around the subnet, and often have multiple IP addresses at once with privacy extensions…
Re:I spent a week without IPv4 to understand IPv6 transition... by IshKebab on Monday March 06, 2023 @11:17AM (#35042802)
In theory, sure. In practice firewalls can be misconfigured. NAT doesn't have that problem.
Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Monday March 06, 2023 @11:45AM (#35043163)
NAT cannot be misconfigured? Really?
Re:I spent a week without IPv4 to understand IPv6 transition... by joshspankit on Monday March 06, 2023 @12:29PM (#35044073)
Not without being entirely broken. I think you might be bringing in uPnP, DNZ, and other such features. NAT itself is more basic.
Re:I spent a week without IPv4 to understand IPv6 transition... by buzer on Monday March 06, 2023 @04:12PM (#35047672)
One could argue that if e.g. FTP is not working behind the NAT then the NAT is misconfigured. NAT needs to aware of certain protocols so that it can modify the application layer data.

Of course, if the protocol added workaround for NAT and NAT is modifying that application layer data then it can cause another set of issues.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:28AM (#35055705)
IP networking was designed with separate layers, NAT breaks this by having to span multiple layers. Generally NAT gateways only support TCP/UDP, other protocols are simply not supported, which has basically stifled protocol innovation (eg look at SCTP, it has some neat features but is hardly ever used because of NAT).

It gets even worse with higher level protocols like FTP. There is such a thing as FTPS (FTP over SSL) but it's rarely used because if you encrypt the traffic then the NAT gateway can't inspect and rewrite the traffic.

The same is true of IPSEC/ESP, if you have an encrypted TCP packet encapsulated with ESP the NAT gateway can't keep track of which internal host to forward it to because it can't see the source and destination ports.

A normal router does not need to care about anything further up the stack than IP. A firewall does, but even when a firewall doesn't explicitly support a particular protocol you could write a rule allowing any traffic with a particular protocol number between specific hosts is allowed, and anything else denied.

Re:I spent a week without IPv4 to understand IPv6 transition... by lxgr on Monday March 06, 2023 @12:11PM (#35043582)
Unconfigured/not activated firewalls usually fail reachable; without explicit port forwarding or exposed hosts, NATs fail unreachable.
Re:I spent a week without IPv4 to understand IPv6 transition... by wolrah on Monday March 06, 2023 @12:29PM (#35044085)
> Unconfigured/not activated firewalls usually fail reachable

Local firewalls on devices, maybe, but network firewalls generally are default-deny on untrusted interfaces, and between 0 and 1 interfaces are trusted by default.

Back in 2007 Apple's Airport Extreme Base Station shipped with a firmware that defaulted to allowing all IPv6 traffic, which was quickly pointed out in the tech media and fixed in a patch a few months later. A few of the garbage pile combo modem/router devices distributed by ISPs have had similar issues over the years as well. That's not normal behavior though, when it's observed it's rightfully considered a security flaw and tends to get the kind of attention vendors don't want.

If you know of a mainstream device that would "fail reachable" as you claim here, name and shame please.

> without explicit port forwarding or exposed hosts, NATs fail unreachable.

I work in VoIP and can say from plenty of direct experience this is not true. In the modern work from home era I've had to deal with a lot of the aforementioned garbage pile consumer devices and a recurring issue with some of our clients who had older phones is that their users' home routers did the laziest NAT possible and literally just opened a two way hole on port 5060 (SIP) so as long as the phone was communicating with our server and keeping the pinhole open *ANY* other traffic that hit port 5060 was also sent to the phone, which meant they got all kinds of "phantom calls" from bots looking for unprotected SIP relays.

Newer phones generally have an option to only accept SIP messages from trusted servers, but older ones sometimes don't so when combined with badly implemented NAT that happens.

And yea, obviously that's a consequence of a particularly bad NAT implementation, but your complaint is about an issue that would only occur in a particularly bad IPv6 implementation.

Re:I spent a week without IPv4 to understand IPv6 transition... by hot_gril on Tuesday March 14, 2023 @05:20PM (#35158907)
It takes effort to make NAT that bad. Something jank like UPnP has to map the port, and even that requires action on the device's part. I don't quite understand your SIP example; how does the router know which IP is the phone's?

Bad IPv6 is as simple as not having a firewall or default-allowing it like AirPort did. If Apple can make that mistake, a lot of random manufacturers can too. I can see the whole NATless firewall setup but wouldn't use it for a very long time, to let things settle.

Re:I spent a week without IPv4 to understand IPv6 transition... by Arnavion on Monday March 06, 2023 @04:19PM (#35047761)
The amount of firewall config I have to write to let an incoming connection cross from WAN to LAN is the same regardless of whether it goes to a NAT'd IPv4 address or to an IPv6 address.
Re:I spent a week without IPv4 to understand IPv6 transition... by op00to on Monday March 06, 2023 @05:13PM (#35048500)
Consumer NAT firewalls have uPnP enabled, right?
Re:I spent a week without IPv4 to understand IPv6 transition... by bonsaibilly on Monday March 06, 2023 @06:16PM (#35049224)
Sometimes. Sometimes it even works, too.
Re:I spent a week without IPv4 to understand IPv6 transition... by IshKebab on Tuesday March 07, 2023 @04:12PM (#35061298)
Yeah often, but it only responds to requests from the local network.
Re:I spent a week without IPv4 to understand IPv6 transition... by hot_gril on Tuesday March 14, 2023 @04:56PM (#35158438)
NAT does nothing? The NAT setup is the reason incoming connections don't reach devices on the LAN. I get that you can phrase this as NAT actually being the thing forwarding the packets, and on a home ipv4 router without NAT the incoming packets would just go nowhere, but everyone is talking about the realistic options of NAT vs device having own public IP addr.

I get that an ipv6 router can have a firewall with good defaults blocking incoming connections, emulating that aspect of a NAT.

Re:I spent a week without IPv4 to understand IPv6 transition... by Dagger2 on Thursday March 23, 2023 @05:00PM (#35281186)
Indeed, it does nothing. NAT won't stop an inbound connection to your network. You already needed to use a firewall for that in v4.

The type of NAT we're talking about here *only* applies to outbound connections. It doesn't do anything at all to inbound connections.

Re:I spent a week without IPv4 to understand IPv6 transition... by mavhc on Monday March 06, 2023 @10:57AM (#35042540)
NAT and a Firewall are two different concepts.

What's wrong with a firewall that blocks everything by default, yet all your devices have a public IP?

Re:I spent a week without IPv4 to understand IPv6 transition... by r3trohack3r on Monday March 06, 2023 @11:27AM (#35042926)
> NAT and a Firewall are two different concepts.

They are, but in practice they are muddled together and I suspect people are going to create subnets with IPv6 in the name of security. In IPv4 NAT is used to make sure your laptop isn't exposed to random script kiddies trying to scan for vulnerable services behind your router. A fun exercise is to plug a RaspberryPi up directly to a public facing IP address and log every packet it receives. Then give those scripts a few services to detect (HTTP server, SSH server, etc.) and look at how the traffic shifts from scanning for ports to scanning for vulnerabilities. Being connected directly to the public internet is a real eye opening experience.

I do believe future IPv6 networks will have gateway machines and/or bastions that are connected to the public internet with public IPv6 addresses. And then they'll have an interior network that they use NAT for. Individual machines will not be routable or discoverable without going through a bastion/gateway that explicitly controls the flow of traffic into a network. Not because this is the ideal way to structure an IPv6 network, but because this pattern is going to carry over from the IPv4 world and there is a lot of momentum in tribal knowledge using NAT as a form of firewall.

Re:I spent a week without IPv4 to understand IPv6 transition... by Arnavion on Monday March 06, 2023 @04:22PM (#35047785)
>In IPv4 NAT is used to make sure your laptop isn't exposed to random script kiddies trying to scan for vulnerable services behind your router.

NAT does nothing for that. Those incoming connections are dropped on the WAN interface before NAT would even be involved. Which is why it works exactly the same way regardless of whether the destination IP for that traffic was IPv4 or IPv6.

Re:I spent a week without IPv4 to understand IPv6 transition... by CircleSpokes on Monday March 06, 2023 @07:58PM (#35050091)
>In IPv4 NAT is used to make sure your laptop isn't exposed to random script kiddies trying to scan for vulnerable services behind your router. A fun exercise is to plug a RaspberryPi up directly to a public facing IP address and log every packet it receives. Then give those scripts a few services to detect (HTTP server, SSH server, etc.) and look at how the traffic shifts from scanning for ports to scanning for vulnerabilities. Being connected directly to the public internet is a real eye opening experience.

That isn't really feasible with IPV6 though is it? The smallest IPV6 subnet is 18,446,744,073,709,551,616 addresses, so even if you setup a Pi fully open to the world with default passwords the chance of someone scanning it is basically zero. That type of scanning only works because the IPV4 range is so small (& you can efficiently ignore large parts of it like the US DOD space, private addresses, etc).

Re:I spent a week without IPv4 to understand IPv6 transition... by bauruine on Monday March 06, 2023 @09:10PM (#35050634)
Yes at the moment the IPv6 internet is way more secure even without a firewall but there are possible attacks to enumerate the used IPv6 addresses. [0]

[0]: https://isc.sans.edu/diary/Targeted+IPv6+Scans+Using+pool.nt...

Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @11:00AM (#35042594)
Maybe you don't want to reveal your internal infrastructure to the world? Seems like basic opsec.
Re:I spent a week without IPv4 to understand IPv6 transition... by RealStickman_ on Monday March 06, 2023 @11:02AM (#35042619)
There's no chance of anybody guessing your infrastructure just by looking at your subnet. (Minimum is /64, which is HUGE!)
Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @11:27AM (#35042923)
Every packet leaving an IPv6 network that isn't NATed has an effective node ID in the packet. No need to guess just look at the packets.
Re:I spent a week without IPv4 to understand IPv6 transition... by bityard on Monday March 06, 2023 @11:33AM (#35042998)
Most devices support privacy extensions (temporary v6 addresses) for this exact reason. https://www.rfc-editor.org/rfc/rfc4941
Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @11:49AM (#35043229)
This helps mitigate correlations over time but doesn't do anything to mask the identity of the node within a given refresh interval (default one day).
Re:I spent a week without IPv4 to understand IPv6 transition... by jlokier on Monday March 06, 2023 @03:58PM (#35047490)
Those IPv6 privacy extensions still reveal when the same node connects to a sequence of destinations within the address change interval, though. E.g. observers can see a single device connects to Facebook, OnlyFans, Pornhub and PayPal in that order.

Behind a NAT, observers can only make that connection (using only addresses) for the network as a whole, instead of an individual device on the network. So the privacy extensions are weaker than NAT

(If the IPv6 privacy extensions used a different address for each connection, they would be more like NAT in this regard.)

That said, other observable clues still allow connections from a single device to be associated, NAT or not. There's TCP OS fingerprinting for example, and the close timing of related connections.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:33AM (#35055744)
That requires someone who has the ability to monitor all your traffic - ie the government, your ISP, or a hacker who has infiltrated one of those two.

In this scenario it's a lot more work trying to map out your infrastructure than to try performing a MITM connection against some of your outbound traffic.

Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Monday March 06, 2023 @11:49AM (#35043218)
Your machines could change their IPs for every second of every day and you wouldn't come close to exhausting your /64 subnet for the next billion years.
Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @11:55AM (#35043308)
The limit of changing addresses once every N seconds as N approaches 0 is equal to offline.

With any usable N, a clever observer would still easily work out what you were doing and still map out your infrastructure.

Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Monday March 06, 2023 @12:42PM (#35044380)
What kind of observer is 1. able to listen to the entirety of your network's outside communications, 2. interested at all in it, 3. harm you only on the condition that they "map out" your internal infrastructure? This isn't a novel, the goal is not to solve intricate security non-problems.
Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @03:16PM (#35046971)
"The network is secure" is a common fallacy.
Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Monday March 06, 2023 @04:11PM (#35047665)
"Those who don't know what to say quote adages" is a common saying.
Re:I spent a week without IPv4 to understand IPv6 transition... by __d on Monday March 06, 2023 @06:34PM (#35049410)
A common saying that ... invalidates itself?
Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @10:11PM (#35051071)
??

There is a whole industry built around network traffic analysis.

What makes you think it doesn't happen on the internet?

Re:I spent a week without IPv4 to understand IPv6 transition... by Spivak on Monday March 06, 2023 @05:26PM (#35048641)
Your ISP, "mapping your network" means being able to take data that was previously an amalgam of a household and reliably split it into the individual members and devices for better targeting.
Re:I spent a week without IPv4 to understand IPv6 transition... by kmbfjr on Monday March 06, 2023 @09:23PM (#35050736)
Take a moment and learn about Nokia’s Deepfield or Kintec.

The ISPs have the ability to see what is on your network by IPv4 egress. They have been able to do this for a decade.

Worrying that an IPv6 address divulges the network forgets that IPv4 devices betray their existence through DNS, their destinations and other network behavior.

The ISPs know.

Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Tuesday March 07, 2023 @03:54AM (#35053170)
Unless you're part of the tiny percent of people who run their own router, your ISP can just monitor what goes through your ISP-provided router.
Re:I spent a week without IPv4 to understand IPv6 transition... by zamnos on Tuesday March 07, 2023 @04:07AM (#35053252)
With the home router+wifi market estimated to be USD 2070.43 million in 2022, I wouldn't say it's a tiny percentage of people, just people you know.
Re:I spent a week without IPv4 to understand IPv6 transition... by justeleblanc on Tuesday March 07, 2023 @05:55AM (#35053918)
1. Where does this stat come from?

2. You can't say anything about the percentage with just the absolute market value. At the very least you need something else to compare it too.

Please, be serious.

Re:I spent a week without IPv4 to understand IPv6 transition... by zamnos on Tuesday March 07, 2023 @09:50PM (#35064596)
A reader who's actually interested in getting the source, might try Googling for "2070.43", or even "2070.43 million wifi". I must admit, I wasn't serious enough about my comment to spend $3,250 on the whole report, and had to go off of the public preview. Since you seem to be more serious, maybe you could pay the $4,400 for a multi-user licensed copy of the report and share the PDF with me? I'd love to read more of the analysis.

So, I mean, I dunno, 2 billion dollars seems serious to me, but maybe we just have different barometers for what counts as "serious amounts of money". Especially considering these devices that are like $300.

Finally, might I remind you of the guidelines? in particular:

> When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

https://news.ycombinator.com/newsguidelines.html

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:36AM (#35055781)
Most people don't buy their own router, the ISPs bulk buy thousands of routers at a time. The ISPs make up most of the market.

Many of these routers are managed by the ISP using protocols such as TR-069, several ISPs have already been found to not only manage the devices but also monitor certain data including what devices are present.

Re:I spent a week without IPv4 to understand IPv6 transition... by JohnFen on Tuesday March 07, 2023 @03:03PM (#35060432)
This is pure anecdata, but almost everyone I know, include the people who aren't particularly computer-savvy, owns their own router and cable modem so that they don't have to pay a rental fee to their ISP.
Re:I spent a week without IPv4 to understand IPv6 transition... by nske on Wednesday March 08, 2023 @08:24AM (#35068682)
I don't think charging rent for consumer broadband equipment is common in many countries, at least not in Europe.
Re:I spent a week without IPv4 to understand IPv6 transition... by ianburrell on Monday March 06, 2023 @12:23PM (#35043860)
Why would changing N seconds break network? It would presumably keep active addresses until connections finish. IPv6 requires supporting multiple addresses per interface.

More reasonable is to use new address for each connection. Then nobody can tell if 10 addresses and 10 connections are one device or ten.

Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @12:38PM (#35044301)
This looks like NAT pushed down to the endpoint itself.

You've saved the translation in the router, but now routing lookups and ARP caches have grown by TEMP_VALID_LIFETIME / TEMP_PREFERRED_LIFETIME.

What are valid values in the scenario you are proposing? The defaults are 1 week / 1 day, so 7X. If you chose to rotate each second, and say allowed addresses to only be valid for say 20 minutes, this still appears to be a ~1200X blowup in routing overheads.

Re:I spent a week without IPv4 to understand IPv6 transition... by kazen44 on Monday March 06, 2023 @03:56PM (#35047469)
> You've saved the translation in the router, but now routing lookups and ARP caches have grown by TEMP_VALID_LIFETIME / TEMP_PREFERRED_LIFETIME.

They have not?

The global routing table size for ipv6 at max is a /32 (if i remember correctly) every customer gets a /56 prefix to use in their network, so the routing table entry would still be the same, no matter how many addresses you use to cycle through in your /64.

ARP caches do not exist in IPv6, and Neighbour discovery does not have the same "cache" mechanism as ARP does, it uses an entirely different mechanism for neighbour discovery. (which is also far more lightweight considering it is using multicast, compared to the broadcast of ARP).

Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @09:49PM (#35050937)
I don't understand what you mean. Neighbor Discovery Caches certainly are a thing.
Re:I spent a week without IPv4 to understand IPv6 transition... by mavhc on Monday March 06, 2023 @11:34AM (#35043003)
The whole world? How would that happen?
Re:I spent a week without IPv4 to understand IPv6 transition... by waych on Monday March 06, 2023 @11:57AM (#35043352)
Not the whole world. Just the world is sufficient.
Re:I spent a week without IPv4 to understand IPv6 transition... by wjholden on Monday March 06, 2023 @11:53AM (#35043285)
For HTTP/HTTPS, proxy servers (forward and reverse) offer an equivalent ability to hide addresses and a lot more features for security and performance.
Re:I spent a week without IPv4 to understand IPv6 transition... by op00to on Monday March 06, 2023 @05:15PM (#35048516)
Someone might know your IP, and somehow that information is delicious and irresistible to evil .. uh .. spammers?
Re:I spent a week without IPv4 to understand IPv6 transition... by CaliforniaKarl on Monday March 06, 2023 @06:37PM (#35049457)
In that case, have your system use a random IP.

Right now, my macOS system has four publicly-routable IPv6 IPs, all random. New ones are generated, and old ones removed, regularly.

https://www.internetsociety.org/resources/deploy360/2014/pri...

Re:I spent a week without IPv4 to understand IPv6 transition... by tenebrisalietum on Monday March 06, 2023 @10:57AM (#35042539)
> I don't want anything on my network to be globally routable.

Then... don't route anything on your network.

NAT is address translation, not routing.

NAT makes it difficult for you to host services on your network, forcing dependency on cloud services, and when ISPs do it (CGNAT), it makes it just about impossible unless you want to thread your traffic back through a third-party service. If you want a good chance of keeping some semblance of an Internet around that isn't dominated by huge centralized services, the cargo cult of "NAT is security" needs to die hard.

Re:I spent a week without IPv4 to understand IPv6 transition... by michaelt on Monday March 06, 2023 @11:14AM (#35042770)
Presumably what thesuitonym means is:

There's a bunch of hassle involved in deploying IPv6.

The main benefit of IPv6 is providing routable addresses for home users, thus avoiding CGNAT.

But zealous firewalling and the rise of mobile devices mean these days almost everything is sent over HTTPS to a cloud server. I haven't had software ask me to open a port on my router in a decade or more.

Why incur the costs of adopting IPv6 if the benefits won't be any use?

Re:I spent a week without IPv4 to understand IPv6 transition... by davikr on Monday March 06, 2023 @11:25AM (#35042906)
To "avoid domination by huge centralized services", of course. What if you want to run something like a website from your own IP, but you can't because you're behind CGNAT?
Re:I spent a week without IPv4 to understand IPv6 transition... by wankle on Monday March 06, 2023 @04:59PM (#35048302)
I use a public VPS and Wireguard. Costs $3.50 for the VPS which has a static IP. I host on my laptop. I can take my laptop anywhere in the world there's an Internet connection and my email and web sites continue to work right from the same VPS IP because my laptop connects to the Wireguard server on my VPS when it comes up.
Re:I spent a week without IPv4 to understand IPv6 transition... by lmm on Monday March 06, 2023 @06:25PM (#35049325)
That $3.50 will go up and up as IPv4 addresses get scarcer.
Re:I spent a week without IPv4 to understand IPv6 transition... by sgjohnson on Thursday March 09, 2023 @05:46AM (#35080034)
Hetzner already charges €2.50/monthly for the IPv4 address alone.
Re:I spent a week without IPv4 to understand IPv6 transition... by unethical_ban on Monday March 06, 2023 @11:38AM (#35043074)
If home router manufacturers would get their shit together, IPv6 would not be hard to deploy. I get it, it's chicken and egg, but nothing about IPv6 is inherently more difficult than IPv4 other than the length of the address.

The reason IPv6 on a home network is still difficult is because the routers everyone buys at Best Buy still blow at supporting IPv6. Ubiquiti blows at supporting IPv6. It is laziness and/or incompetence of device manufacturers, primarily, holding us back. (and incompetence around IPv6 in general - I talked to a network guy at a large company recently and they were deploying /58s. WHY?!)

The benefits of IPv6 may not be just for you - it's for the planet, it's for the developing nations, it's for the future where IPv4 does not cut it. It's bigger than your home network.

Re:I spent a week without IPv4 to understand IPv6 transition... by wankle on Monday March 06, 2023 @05:02PM (#35048329)
IPv4 cuts it everywhere. IPv6 does not do anything to save the planet. IPv6 does have privacy concerns stated by many on this page. IPv6 could be shut down tomorrow and the Internet would continue working well.
Re:I spent a week without IPv4 to understand IPv6 transition... by CircleSpokes on Monday March 06, 2023 @08:04PM (#35050136)
No it wouldn't. Basically all mobile networks would break and have to do even more layers of NAT to meet demand.

> IPv6 does not do anything to save the planet.

The world doesn't have enough IPV4 addresses. It literally solves the problem. It is crazy to me so many people here are arguing for multileveled NAT instead of the obvious solution we have had for 20 years.

Re:I spent a week without IPv4 to understand IPv6 transition... by wankle on Wednesday March 08, 2023 @02:05PM (#35073333)
> The world doesn't have enough IPV4 addresses.

If 8 billion people wanted to host their own email and web, yes, we'd not have enough addresses for each person to have one. That isn't the case though. It will never be the case. If we look into the future and say well in 2023 5% of the world's population ran their own email and web for personal or business purposes and that number were to grow by 5% every year then in 20 years we would run out. That's a worse case, contrived scenario but even in that case, we'd still have 20 years to come up with something better than IPv6 that truly respects privacy and doesn't track each person.

Re:I spent a week without IPv4 to understand IPv6 transition... by sgjohnson on Thursday March 09, 2023 @05:44AM (#35080019)
The world has been out of IPv4 addresses for more than a decade. Which is horrible news for competition alone.

Try starting a new ISP. You’ll either do CGNAT on a single /24 of v4 space, or you’ll have to spend tens of millions for some pointless, legacy IP addresses.

Re:I spent a week without IPv4 to understand IPv6 transition... by tenebrisalietum on Thursday March 09, 2023 @11:49AM (#35083346)
I don't think EUI-64 being built into link-local fe80 addresses is a privacy issue. Link-local addresses don't get routed, so nothing outside of that network will see or know about them. As far as the router itself, e.g. your ISPs router, it can already gather MAC addresses if it wanted to, so IPv6 using the MAC to generate link-local addresses doesn't add or remove to that situation.

CGNAT is not the Internet working well. CGNAT makes you have to have your ISPs permission and coordination to originate outgoing traffic--imagine if you had to ask the power company for permission to operate each electrical device in your house.

Re:I spent a week without IPv4 to understand IPv6 transition... by BlueTemplar on Monday March 06, 2023 @11:49PM (#35051701)
What I don't understand is why governments seemingly ignore this problem ??

Look at what they did with broadcast digital TV : it was announced that it would be illegal in a couple of years to sell hardware not compatible with the new standard, then a couple of years later on illegal to sell hardware compatible with the old standard...

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:50AM (#35055939)
Some are... China, India, Israel all mandate IPv6 support from ISPs in their territory and the equipment they provide to users, as do some others.

The US has mandated IPv6 support for federal contracts since 2009, although they don't get involved outside of those directly providing services to the government itself. They now have plans to go IPv6-only, and eliminate the use of legacy IP within the federal government.

Allocation of legacy address space was always based on first come first served, so developed countries got the lions share of address space and left developing countries with scraps. This creates a severe inequality, and holds developing countries back. This is also why India and China are leading, as they have a huge disparity between their population and the number of legacy addresses available.

Re:I spent a week without IPv4 to understand IPv6 transition... by BlueTemplar on Tuesday March 07, 2023 @10:11AM (#35056175)
Yeah, though I've heard that Africa is being left out, once again ?

(Though the sooner we ban IPv4, the sooner they will stop using it too...)

Re:I spent a week without IPv4 to understand IPv6 transition... by tenebrisalietum on Monday March 06, 2023 @11:26AM (#35042922)
Another reason is that NAT is making IPv4 live longer than it should, making IPv4 addresses more expensive. Maybe you don't want to host cloud services from your home, but if IPv4 addresses start costing millions of dollars (I know blocks of them can go for that much--if we're already there do you want to go further?), that drives up the cost for anyone using the Internet even if you are super okay with CG-NAT (which you shouldn't be).

IPv6 will fix that.

Re:I spent a week without IPv4 to understand IPv6 transition... by xjay on Monday March 06, 2023 @11:43AM (#35043132)
The sad part to me is that the original IP header included variable-length addresses up to 128 bits, using two 4-bit fields called Source Address Length (SAL), and Destination Address Length (DAL). [1]

Early hardware implementations could have settled on 32-bit, but 48-bit would make more sense to be in line with EUI-48/MAC-48 (ethernet frame). The world could then gradually upgrade hardware over the decade to handle a larger address.

[1] https://www.rfc-editor.org/ien/ien28.pdf

Re:I spent a week without IPv4 to understand IPv6 transition... by AtlasBarfed on Monday March 06, 2023 @05:10PM (#35048448)
I've always posited that web services didn't become widespread because of the church of REST, or even that the HTTP protocol is that amazing.

It's because you could get through the firewall without a four month review with the firewall team.

Well, and you could reuse web tools and software. Ok, that's probably it, but the firewall convenience is DEFINITELY a thing.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:44AM (#35055864)
Pushing all your traffic through a third party cloud server causes a lot of problems.

It costs that third party real money to run that server...

What happens when they decide to shut if off because they no longer want to bear the costs? Your applications are a ticking timebomb...

What about privacy? What if the operator of that server decides to fund it through selling your data?

Sending your traffic through a third party server adds latency, sometimes a LOT of latency if that server is far away. This is very bad for certain latency sensitive things (gaming, calls etc).

If you're dependent on a third party server then you're screwed if it goes down, even if your own connection is fine.

Doing away with that and going back to peer to peer is MUCH better in most cases.

Re:I spent a week without IPv4 to understand IPv6 transition... by tinus_hn on Monday March 06, 2023 @11:28AM (#35042939)
With NAT it is impossible to make a mistake that causes machines with a private address to become reachable to the internet. That is a reality that is not going anywhere, no matter if you like it or not, no matter if you think it is stupid or not.
Re:I spent a week without IPv4 to understand IPv6 transition... by unethical_ban on Monday March 06, 2023 @11:40AM (#35043094)
Every home router could be built with a default deny inbound for traffic, with big flashing lights saying "do not override this".

IPv6 has private addressing and a form of NAT as well, were it to be the will of router mfg'ers and network admins. No need to stay on a legacy protocol.

Re:I spent a week without IPv4 to understand IPv6 transition... by tenebrisalietum on Monday March 06, 2023 @01:42PM (#35045584)
UPnP?

Also STUN makes your private addresses reachable without you making any mistake at all.

Your comment is a good example of the NAT cargo cult mentality that is damaging to the Internet.

Re:I spent a week without IPv4 to understand IPv6 transition... by tinus_hn on Monday March 06, 2023 @07:33PM (#35049923)
Similarly, your comment is a good example of the anti NAT cargo cult mentality that people think is smart but really isn’t.

The reality is that NAT has greatly improved the security of the internet, because before NAT people were exposing everything, including services like Windows file sharing, to the internet. NAT enabled those people to use multiple devices in their home and in return prevented them from unwittingly hosting things to the internet, which causes them to be hacked and turned into bots that harass the rest of the internet. Yes that still happens but not at the scale it happened before everyone was behind a NAT perimeter. If you want to see what could happen look up the SQL Slammer worm and imagine what could have happened if such a worm would have targeted a service more common than SQL Server.

It’s really nice to be able to host things on a consumer connection but it requires thought and management that most consumers just can’t and won’t care to provide and the damage they can cause is not only to themselves but to the rest of the internet as well. This capability really is better off by default.

And all those handwavy ‘workarounds’ for the ‘cargo cult mentality’, you typically can’t tell everyone on your network how to manage their computer to ‘just have their services listen on the local address’ and you can’t ‘just change the defaults of all routers’. But NAT makes it impossible for the default to be wrong and that is its great advantage.

Sure NAT has a lot of disadvantages and breaks the original idea of the internet with every host equally able to host services. But just as Postel’s law just doesn’t work out, every host being able to host services doesn’t work out. Because the internet is not a playground full of friendly colleagues and hasn’t been for a long time. It’s a war zone that requires strong, watertight defenses by default. And if you’re smart and careful enough to safely host a service to the internet, surely you can manage to forward a port.

Re:I spent a week without IPv4 to understand IPv6 transition... by gegtik on Monday March 06, 2023 @11:54PM (#35051726)
3 cheers for useful defaults
Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @10:01AM (#35056066)
Slammer (and other worms) propagated heavily despite NAT. If anything NAT made it worse, because once a single internal host got infected the worm now has a predictable and well known address space to scan for other devices it can infect.

NAT created a false sense of security, while also breaking a lot of other things. It is quite easy for the defaults to be wrong, you can end up with all kinds of unexpected scenarios which make internal hosts reachable - eg outbound traffic could open up inbound traffic on the same port from any source not just the one initially communicated with, UPNP can result in ports being opened, NAT slipstream attacks are another possibility, not to mention the fact that "not routable" and "there is no route" are two different things - someone who is on an adjacent network to your wan interface (ie other customers of the same isp) can easily direct traffic to your internal address space.

What reduced external attacks was not NAT, it was improved defaults - such as windows including a software firewall which blocks inbound connections by default, and unix based systems no longer shipping with large number of services (telnet, rpc, finger etc) enabled by default.

Consumer routers with IPv6 support don't allow unsolicited inbound traffic by default. Good luck scanning an IPv6 block in any case.

Slammer and other worms scanned sequential legacy IP addresses, including the well known and predictable RFC1918 space. This method simply couldn't work with IPv6 because the address space is too large, you would be flooding out huge amounts of traffic for years on end before you happened to hit upon an active device.

IPv6 is better, not worse.

Re:I spent a week without IPv4 to understand IPv6 transition... by tinus_hn on Wednesday March 08, 2023 @08:03AM (#35068486)
Once an unreachable host magically got infected, it scanned the entire IP address space but hey, it was worse because some hosts were in a predefined part.

NAT is bad because somehow magically a machine with an unroutable address can become routable. Because magically UPnP forwards every protocol in existence, not only a select group of programs that explicitly support it. And of course a connection opening up a theoretical hole to a specified host is just as bad (actually worse!) as opening it up to the whole internet.

Yet all routers have the right defaults and nobody ever makes a mistake. Oh and there’s so many addresses it’s so obscure it’s secure, and noone would guess to scan one’s own subnet in the absence of NAT.

These arguments are really grasping for straws, mostly nonsensical and the rest describes attacks so impractical they are pretty much impossible to carry out and are so much harder than simply sending a thousand emails with a link to an executable that pretty much nobody ever bothers.

Note I never said that IPv6 is worse, I said that NAT has relevant advantages and mostly irrelevant disadvantages. I really don’t care ftp doesn’t work with NAT.

Re:I spent a week without IPv4 to understand IPv6 transition... by kazen44 on Monday March 06, 2023 @03:58PM (#35047491)
With Ipv6 this is even easier.

You simply do not host services you do want public on your global unicast address but use a private/site local address instead.

Re:I spent a week without IPv4 to understand IPv6 transition... by Asooka on Monday March 06, 2023 @11:56AM (#35043322)
Also I'm not going to expect my ISP to actually give me more than one address, so if I have multiple devices at home, I will need to do NAT. Heck, back in the day they used to set TTL to 1 so the packets weren't routable at all without mangling them via iptables. Maybe that will be harder now than 20 years ago since everything connects online...
Re:I spent a week without IPv4 to understand IPv6 transition... by cassianoleal on Monday March 06, 2023 @01:57PM (#35045872)
ISPs are expected to delegate a /56 or /64 prefix to customers. Some are even delegating /48s. Mine delegates a /56.

That should be enough for all your devices to randomly rotate IPs for a lifetime or a few without any NAT.

Re:I spent a week without IPv4 to understand IPv6 transition... by Arnavion on Monday March 06, 2023 @04:23PM (#35047819)
https://news.ycombinator.com/item?id=24999906

Shitty ISPs do exist, or at least they existed two years ago.

Re:I spent a week without IPv4 to understand IPv6 transition... by cassianoleal on Monday March 06, 2023 @05:58PM (#35049014)
Sure they exist, but should you expect your ISP to be shitty? Sounds like a terrible deal for you.
Re:I spent a week without IPv4 to understand IPv6 transition... by JohnFen on Tuesday March 07, 2023 @04:06PM (#35061208)
In large swaths of the US, you don't have a choice about what ISP you have available. If you happen to have a shitty one (and most aren't great), there's nothing you can really do about it.
Re:I spent a week without IPv4 to understand IPv6 transition... by hot_gril on Tuesday March 14, 2023 @05:06PM (#35158622)
The bad ones won't even give you IPv6 to begin with, haha. Not that I want it anyway.
Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @01:01PM (#35044815)
> Everything on my network is going to go through my firewall anyway. I don't want anything on my network to be globally routable.

Globally routable ≠ globally connectible.

Your (stateful) firewall will still by default block any incoming connection attempts if they are not replies to an initial outgoing connection. It's just that it will no longer be necessary to go through the rigamarole of STUN, TURN, ICE, etc, that goes along with non-global addresses:

* https://en.wikipedia.org/wiki/Traversal_Using_Relays_around_...

Your end-user device knows its address and the address of the other connection point, and can tell the firewall to open a rule between only those two IPs:

* https://en.wikipedia.org/wiki/Port_Control_Protocol

* http://www.upnp.org/resources/documents/AnnexA-IPv6_000.pdf

Further, because you don't have only one external IP, you don't have to futz around with non-default ports if you want multiple instances of the same service (e.g., Minecraft), because each instance can have its own IP.

Further, if you want certain devices to not able to get outside: (a) give them static assignments and block them at the firewall, (b) don't give them a default route so they are subnet-local, or (c) give them site-local addresses via ULA and do not set up NTPv6 translation.

Re:I spent a week without IPv4 to understand IPv6 transition... by gxt on Monday March 06, 2023 @05:15PM (#35048515)
How does that protect privacy of the private network? I don't want to divulge any information about internal topology.
Re:I spent a week without IPv4 to understand IPv6 transition... by adgjlsfhk1 on Monday March 06, 2023 @05:38PM (#35048782)
what do you mean by topology? the only information leaked would be the number of computers making requests.
Re:I spent a week without IPv4 to understand IPv6 transition... by Faark on Monday March 06, 2023 @05:48PM (#35048889)
And what computer is making what requests. Now that i think about it, this cloud be the reason why youtube started making recommendations based on stuff i just watched in private browser tabs...
Re:I spent a week without IPv4 to understand IPv6 transition... by josephg on Monday March 06, 2023 @06:31PM (#35049380)
I have multiple computers in the house, mostly not logged in to Google. YouTube recommendations spill between devices all the time - like, if I watch a video on one device, I’ll see the same video recommended on another. Or if my partner watches something, YouTube will recommend it to me.

They’re obviously doing recommendations based on IP address. (And this is purely over ipv4).

Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @07:35PM (#35049945)
> They’re obviously doing recommendations based on IP address. (And this is purely over ipv4).

I have IPv6 at home and connect to Youtube over IPv6 (that's generally the default behaviour on macOS and many other OSes). I reboot my DSL modem-router every night and get a new IPv4 address and new IPv6 prefix every day.

Now: I live in Ontario, and my ISP is based in Ontario, but they serve clients in Quebec. Every so often, when surfing Youtube, I get served ads in French because according to my (IPv6) address I am "in" Quebec.

And, while I am not logged into any Google service, I do not block cookies. So even with cookies, Youtube seems to be fairly dumb about serving ads correctly just based on IP addresses (or at least IPv6 addresses and/or IPv6 prefixes), since cookies don't seem to be useful.

So I'm not quite sure about what people are talking about when they say "IPv6 tracking" if even Google/Youtube can't get their act together.

Re:I spent a week without IPv4 to understand IPv6 transition... by zeristor on Tuesday March 07, 2023 @04:00AM (#35053211)
I live just outside London and have been wondering why I’ve been getting ads from More4 for Wales and Cardiff.

Iechyd Da!

Re:I spent a week without IPv4 to understand IPv6 transition... by Springtime on Monday March 06, 2023 @09:10PM (#35050635)
> They’re obviously doing recommendations based on IP address

eBay uses IPs showing content, too. I see 'items you've viewed recently' show items I've never looked at, since when on a mobile connection my IP changes fairly frequently and eBay carries over the recently viewed state from whoever else was previously using that IP.

It had puzzled me until I came across this[1] eBay topic where others had experienced this, from shared offices to spouses, etc.

[1] https://community.ebay.com/t5/Share-eBay-Technical-Issues/Re...

Re:I spent a week without IPv4 to understand IPv6 transition... by throitallaway on Monday March 06, 2023 @05:52PM (#35048940)
Look at what Android does with MAC address randomization on wireless networks. We will probably see something similar with IPv6.
Re:I spent a week without IPv4 to understand IPv6 transition... by CaliforniaKarl on Monday March 06, 2023 @06:07PM (#35049121)
> We will probably see something similar with IPv6.

It's been available for some time: https://www.internetsociety.org/resources/deploy360/2014/pri...

On my macOS system, I currently have four IPv6 IPs (excluding the link-local IP), all of which are random.

Re:I spent a week without IPv4 to understand IPv6 transition... by gerdesj on Monday March 06, 2023 @06:47PM (#35049545)
Not just Android. My laptop does it too (NetworkManager). That's just IPv4 on devices designed to travel so it seems a fair thing to do. Bloody pain to diagnose why a static DHCP lease isn't working the first time, after that you find the mechanisms to turn it off. Nearly everything does it for IPv6, for a given value of everything!

For decades we have generally allowed all outbound and worried and fretted about and filtered inbound. I think it is time for us all to get a grip and do the job properly. However, with the delights of DNS over http and the like, the horse has not only bolted but has a new paint job, far better shoes than you can afford, eats grass that was prepared by a Michelin starred chef and belongs to someone else now.

We all need to be far more sophisticated about how traffic (knowledge/ideas/data) flows in and out of our networks/lives. Packet filtering is just one tool in the box and worrying about an addressing scheme being global (IPv6) instead of a weird hybrid (IPv4) is completely missing the real issue stabbing you in the nadgers.

Re:I spent a week without IPv4 to understand IPv6 transition... by CaliforniaKarl on Monday March 06, 2023 @05:50PM (#35048916)
That's a very strong claim to make. I'd appreciate if you could provide a source to that statement!
Re:I spent a week without IPv4 to understand IPv6 transition... by ipaddr on Monday March 06, 2023 @06:04PM (#35049089)
Your chrome build id is available in both areas. Not really a secret.
Re:I spent a week without IPv4 to understand IPv6 transition... by CaliforniaKarl on Monday March 06, 2023 @06:09PM (#35049139)
I'd be really surprised if I've got a chrome build ID on my browser.
Re:I spent a week without IPv4 to understand IPv6 transition... by lloeki on Monday March 06, 2023 @05:50PM (#35048918)
that's not even true with slaac temporary (a.k.a privacy) or secured addresses.

the only thing you'd "leak" is the prefix, which is no different than a IPv4 WAN address that you'd get with a v4 NAT.

Re:I spent a week without IPv4 to understand IPv6 transition... by gxt on Monday March 06, 2023 @05:52PM (#35048931)
That is information about the topology.
Re:I spent a week without IPv4 to understand IPv6 transition... by CaliforniaKarl on Monday March 06, 2023 @06:25PM (#35049322)
It's fairly limited, without a lot of time and effort, or information from inside the network. I assume you're not acting as an AS, doing BGP, etc; and that you're just getting an IP allocation from a single ISP. In that case, you're probably getting an entire IPv6 subnet (like a /48) allocated to you. Ideally, you make the entire subnet available to your systems.

Assuming you block unsolicited packets (that is, packets not related to existing connections/streams) at your border (the connection to your ISP), then outsiders won't be able to use tools like traceroute to learn anything. All that an outsider has is an IPv6 IP, and since you're not doing BGP with anything, all they'll know to do is to send the traffic to your ISP.

Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @07:30PM (#35049904)
> How does that protect privacy of the private network? I don't want to divulge any information about internal topology.

I'm curious to know: what (attack) do you hope to protect against?

I would think that most attacks come in two fashions: the first being that you run a service of some kind and that there's some JSP/PHP/whatever exploit for a public facing service, and someone does a 'magic' PUT/GET that has the application server execute some code, which downloads a larger malware attack package. After which point the black hats start scanning from the inside.

The second being that someone clicks on a link in a phishing e-mail or executes some attachment, after which malware code starts scanning from the inside and phones home.

(A third being an insider attack, who presumably know about internal topology.)

What attack are you thinking to protect against by hiding subnet and VLAN topology?

Re:I spent a week without IPv4 to understand IPv6 transition... by gxt on Monday March 06, 2023 @07:49PM (#35050033)
This isn't about an attack scenario from this vector, it's about preventing reconnaissance that might yield helpful results to an adversary that can exploit it via any other vector.
Re:I spent a week without IPv4 to understand IPv6 transition... by throw0101c on Monday March 06, 2023 @08:21PM (#35050267)
> […] that can exploit it via any other vector.

And what are those vector(s)?

Besides compromising a machine that is already inside per the above (which can then do scanning / lateral moves), or perhaps physically getting inside the premises (in which case a scanner can be physically installed to examine the network), what attack are you protecting against?

Can you give me a link about an attack that knowing the topology of the network ahead of time would allow, but that not knowing would prevent?

Re:I spent a week without IPv4 to understand IPv6 transition... by Retric on Monday March 06, 2023 @09:17PM (#35050689)
An example of security being sidestepped is Network intrusion detection. An adversary who knows your network architecture can avoid poking around your network which looks really suspicious.
Re:I spent a week without IPv4 to understand IPv6 transition... by zamnos on Tuesday March 07, 2023 @12:16AM (#35051844)
Just because you've popped a box on the inside doesn't mean you automatically know everything about the network. It doesn't give you a mirrored port on the network switch. It doesn't mean ICMP is enabled, it doesn't automatically tell you what ports are open or what they serve. And any decent security team is going to see your nmap blast in the IDS and kick that box in jail.

Seems intellectually dishonest not to acknowledge that making things easier, just y'know, makes things easier. Keeping attackers, who want to do you harm, in the dark as much as possible seems important to me.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @09:00AM (#35055390)
IPv6 actually makes such attacks more difficult, not less.

An attacker looking to be stealthy is not going to blast the network with nmap...

ARP is broadcast, NDP is solicited node multicast so simply by passively listening on the network you will discover nodes in the same layer 2 segment, with v6 and properly configured switches your passive discovery will be a lot more limited.

Other passive techniques would be monitoring things like DNS, and things the host you've compromised is actively communicating with. This isn't any different regardless of the protocol used.

You can also actively communicate with services like DNS or Active Directory and query information about the network, depending on your level of risk.

Just knowing the in-use IPv6 block is useless, the blocks are massive so even just identifying active hosts in a single known IPv6 block is a lot harder than simply scanning the entire RFC1918 legacy address space.

For active discovery, IPv6 is harder to attack - you can't scan the entire address block looking for hosts. The fact that such scans should be detected is exactly the same for either protocol. You also have to consider response time and what an attacker may be able to achieve before your response kicks in.

IPv6 makes it harder for attackers, not easier.

Re:I spent a week without IPv4 to understand IPv6 transition... by btgeekboy on Monday March 06, 2023 @09:27PM (#35050763)
Correct. If I talk to service A and I see an address that’s in the same /64 as service B, it’s unlikely there’s a firewall between the two. Two different /56 or /48? Probably a different site.
Re:I spent a week without IPv4 to understand IPv6 transition... by foepys on Monday March 06, 2023 @11:30PM (#35051565)
DNS rebinding could be one attack scenario.
Re:I spent a week without IPv4 to understand IPv6 transition... by yrro on Tuesday March 07, 2023 @02:40PM (#35060123)
See RFC 8981 (and that which it made obsolete, RFC 4941).
Re:I spent a week without IPv4 to understand IPv6 transition... by jbverschoor on Monday March 06, 2023 @08:14PM (#35050220)
Let’s say the firewall isn’t yours. Or the firewall needs to be replaced and is more open by default until you secure it. It’s also easier to map which kind of devices and how many you have..
Re:I spent a week without IPv4 to understand IPv6 transition... by stephen_g on Monday March 06, 2023 @10:22PM (#35051151)
In any case, your endpoints really do need to be reasonably secure in themselves - especially if the firewall isn’t yours as then you are probably sharing the network with other devices on the inside of the network that can attack you directly, and even if not, it just takes one device being compromised and somebody has full inside access to the network, with the firewall not being able to do much…
Re:I spent a week without IPv4 to understand IPv6 transition... by jbverschoor on Tuesday March 07, 2023 @02:38AM (#35052643)
Good luck with your home automation, printer, and tv
Re:I spent a week without IPv4 to understand IPv6 transition... by BenjiWiebe on Tuesday March 07, 2023 @09:04PM (#35064267)
NAT doesn't protect you from things inside your LAN either. Where you have NAT+firewall with IPv4 now, you'll need a firewall with IPv6.
Re:I spent a week without IPv4 to understand IPv6 transition... by viraptor on Monday March 06, 2023 @10:51PM (#35051329)
The same comment applies to ipv4. Port bindings accessible from outside by accident, misconfigured upnp, SIP-ALG with vulnerabilities, various other router issues. "What if my firewall is broken" is not a new ipv6 consideration.
Re:I spent a week without IPv4 to understand IPv6 transition... by jbverschoor on Tuesday March 07, 2023 @02:42AM (#35052664)
It’s not, but the “beauty” of NAT is that you have an extra line of defense because of its limitations. Port bindings and upnp are far less impactful and less common.
Re:I spent a week without IPv4 to understand IPv6 transition... by viraptor on Tuesday March 07, 2023 @03:07AM (#35052843)
I'm not talking about preconfigured port mapping. I'm taking about bindings as in entries in NAT. That happens on every outbound connection and has stateful processing. We're still finding issues with it, like the relatively recent NAT Slipstream vulnerability.
Re:I spent a week without IPv4 to understand IPv6 transition... by kaetemi on Monday March 06, 2023 @08:47PM (#35050453)
My ISP's modem doesn't do prefix delegation so I don't even get IPv6 with my own router in-between. And I need that thing in-between to at least have some control over the IPv4 LAN. No idea what security that modem provides, since there are zero controls, so no IPv6 it is.
Re:I spent a week without IPv4 to understand IPv6 transition... by sgtnoodle on Tuesday March 07, 2023 @01:26AM (#35052242)
You could still route within the /64, couldn't you? With a smaller subnet SLAAC wouldn't work, but you could DHCPv6 addresses still. There is also an RFC somewhere for sharing a single /64, intended for mobile hotspots.
Re:I spent a week without IPv4 to understand IPv6 transition... by kaetemi on Tuesday March 07, 2023 @10:12AM (#35056178)
No idea. I've tried every setting combination on this consumer grade D-Link router which is supposed to support IPv6. Nothing results in a functioning network. Forum posts I find from other customers of this ISP report the same behaviour on other routers. The modem gets a /56 at least, and hands out addresses from a /64 range under that I assume, the router gets a /128 from the modem, and then gives up entirely on doing anything with IPv6.
Re:I spent a week without IPv4 to understand IPv6 transition... by sgtnoodle on Tuesday March 07, 2023 @11:40AM (#35057423)
It sounds like your ISP is delegating a prefix, then? Weird, that all sounds reasonable to me. What do you mean the router gives up entirely, though? Computers in the LAN don't get an IP address? Packets go out but nothing comes back?
Re:I spent a week without IPv4 to understand IPv6 transition... by kaetemi on Wednesday March 08, 2023 @12:14AM (#35065526)
Yup, computers on the LAN don't get any address. From what I understand, the modem would be supposed to delegate a prefix to the router so it can hand out addresses, but this part isn't happening.
Re:I spent a week without IPv4 to understand IPv6 transition... by chillfox on Tuesday March 07, 2023 @12:16AM (#35051843)
Minecraft is a bad example here as it supports advertising the port in DNS.
Re:I spent a week without IPv4 to understand IPv6 transition... by drtgh on Tuesday March 07, 2023 @08:21AM (#35055007)
> Globally routable ≠ globally connectible

Tell us with the next 0 day, because that big problem exist, and unfortunately happens every days.

IPv6 == All your devices are globally ROUTABLE and CONNECTIBLE from Internet, your home network is part of internet. It is an additional rule in the router's firewall what temporarily avoids it. Remark in temporarily, as one day the gifted packet will arrive to the router. This is not cool.

So much so that -the home network is part of internet- that if you want to create a simple Video NAS or whatever, one have to use external DNS services, as no one have control over its own local IPs... what are served by the ISP. This is not cool.

Even if it was not designed for it, NAT has been helping to secure and giving flexibility to our local networks along decades, but someones decided to reject it from the specification. Bad decision.

Re:I spent a week without IPv4 to understand IPv6 transition... by sgtnoodle on Tuesday March 07, 2023 @11:53AM (#35057609)
I don't even necessarily disagree with you, but your examples don't seem accurate.

Regarding firewalls bring prone to accepting by default, either way the packet has to go through the CPU to be routed. I don't believe there's any inherent bias in the design. You could argue that routers that use a single switch and vlan isolate the wan port are inherently biased, though.

Regarding local hostname resolution, there are several options that don't require your ISP. There's mDNS, DHCPv6 and DNS on your router, ULA prefixes, or you can continue using IPv4 for local traffic.

Re:I spent a week without IPv4 to understand IPv6 transition... by drtgh on Tuesday March 07, 2023 @03:05PM (#35060448)
The words "local" or "home" network with IPv6 are an illusion, this is what I wanted to show with my examples,

Firstly one ceases to have control of its own home network, what now have to rely on the ISP for to receive the "local" IPs, what are part of internet. And in addition each machine leaves a trace of its "local" ip on the Internet. This if one want internet access in the device, due the absence of NAT in the router's protocol.

Secondly one have to rely on a buggy piece of code called firewall for to make "local" those IPs, due the absence of NAT in the router's protocol.

https://nvd.nist.gov/vuln/search/results?form_type=Basic&res...

https://www.cvedetails.com/google-search-results.php?q=firew...

We are talking about millions of routers provided by the ISPs in each country, barely maintained and updated, what little by little will become exposed. And this without taking in account the unpublished firewall bugs that each artist keeps for themselves and takes 3 to 5 years become detected and fixed by the mainstream. I do not know how to express the negligence is going on, but I can see that Crackers, Advertisers (privacy) and "others" are in good time because things are getting more easier for them than it should be.

Why people keep down-voting the message is a mystery for me. If it is due the local hostname resolution, mDNS, ULA prefixes, etc, all are workarounds due it is a network one does not control, what is one of the main points I exposed (it also needs filters/rules what needs be manually added in the firewall, each user has to make efforts to try to protect the supposed "from internet" separation).

One could create another network as you said, but the main problem keep existing without NAT.

Re:I spent a week without IPv4 to understand IPv6 transition... by sgtnoodle on Wednesday March 08, 2023 @05:51AM (#35067485)
I still don't think you're really providing any examples or arguments that make your point, though. You're just coming across as really salty about IPv6. I'm not downvoting you.

IPv6 has link-local addresses that aren't routable, so you can't really get more local than that. Unlike a typical IPv4 setup, typical IPv6 hosts have multiple addresses, and you can make your own for local traffic and only rely on ISP prefixes for internet access if you want to.

Sure, the internal host's internet routable IP address is visible rather than being masked behind the router's IP address. Pretty much all operating systems periodically randomize the bottom 64 bits, making it effectively as opaque as NAT. You could call that a hack, but people call NAT a hack. There's tradeoffs.

The CVE links you provided are just lists of vulnerabilities with "firewall" in the name. Skimming through them, I don't see how they're specific to IPv6? Most of the vulnerability descriptions I read seem equally problematic for NAT setups. The one IPv6 specific one I saw had to do with a bad firewall rule allowing access to LAN facing services running on the router; it could have just as easily been a bad IPv4 rule.

I agree, consumer network gear all sucks. IPv6 is bolted on as an afterthought, and is probably buggy in a lot of them. More features means more opportunity for bugs, but that's true of anything. IPv6 isn't being deployed for no reason; there's limited IPv4 addresses to go around. I still don't follow why IPv6 is fundamentally riskier than IPv4 when traversing a router. Sure, with NAT an incoming packet needs to have a port number that's been dynamically mapped back to an internal host and port, or have a static port forward. In IPv6, an incoming packet needs to have a destination address and port that's been dynamically mapped back to an internal host and port, or have a static firewall rule. It's basically the same, but also less complicated for the router because there's no translation involved. In time, less complexity is good for software hardness.

I also get anxiety from trying to wrap my head around IPv6 address assignment. It is nuts. It's very comforting to work in the effectively 8-bit address space of a /24 IPv4. I suppose it's true that you can't control internet routable IPv6 addresses in that they are dynamic and ephemeral in their nature. Coming from IPv4, it feels messy. I've experimented in detail with configuring my own ULA, DHCPv6 configuration, and SLAAC. I've tried to embrace the benefits of IPv6, and having used a few of the features I can appreciate them for what they are.

Re:I spent a week without IPv4 to understand IPv6 transition... by drtgh on Wednesday March 08, 2023 @11:09AM (#35070746)
One of my main concerns is when the firewall stops working (due a poisoned packet what shutting it down, what would be the first logic kind of attack I guess) currently the access to the "local" network would be granted with IPv6; the network becomes the same as the attacker's one.

I put the CVE links with the generic word "firewall" because it is the point where the "local" vs "internet" resides with blind faith within IPv6 (without indicating an specific exploit, just vulnerabilities exist). For this case, the DDOS and buffer overflows that force the firewall to shut down, or code execution, what are periodically discovered, is what I wanted to show for being considered as a serious problem. Not everyone reports firewall bugs, and others I guess even wickedly insert them.

With NAT setups, the local and internet networks are different between them, what requires the packets to be filtered and rewritten by NAT for the address what solicited it, while unsolicited packages are discarded. The NAT in consumer gear is run mainly by software, but a poisoned packet will not aim to shut it down for network penetration because it would be the end. If the NAT stops working, the doors close for everyone.

It is about the double checking,

-IPv6 without NAT: If the firewall stop working, opened doors. Feast.

-IPv6 with NAT: If the firewall stop working, many rules get unfiltered, wild. But NAT keeps the local/internet separation besides filtering unsolicited packages. Not absolutely secure, nevertheless keeps being a complex target.

Like all of we, I suffered some problems that NAT can bring losing countless hours trying to make work some specific services, but when I first read IPv6 didn't implemented NAT nor something similar in the protocol (for whom whish to use it at least...) and what the supposed local IPs are merely part of internet (link-local addresses that aren't routable as first target, devices with internet connection are), each device with its own public address, I doubted seriously about what was going on.

Given that even Mikrotik RouterOs periodically have security vulnerabilities related with the firewall, I can't conceive the idea of people relying on firewalls rules to do the home/internet separation within IPv6 (plus the public address of each device gives me also anxiety), as it is a matter of time before such separation ceases to exist; it is like the crossing of fingers.

I mean, it is not a matter of misfit, it is more like the users will not even notice the router's firewall was shut down.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Wednesday March 08, 2023 @06:19AM (#35067680)
Not at all, your "local" network is the link-local address space, which legacy IP has no analog of. The link-local space cannot be routed either intentionally or accidentally.

RFC1918 address space IS routable, it just doesn't have a global route. There is nothing to stop devices adjacent to your wan interface (ie other customers) from manually adding a route to your RFC1918 address space via your firewall. Will that traffic be allowed? that depends on the device and its configuration, have you ever tested this scenario? probably not.

NAT is a hack to get around a shortage of address space, nothing more. Once the shortage is gone there's no more need for NAT. That's why although NAT with IPv6 is possible, it's very rarely used because you no longer have any valid reason to use it. If you are think there are any other reasons to use NAT then you need to brush up on your network knowledge because a lot of smarter people than you or I are saying to avoid NAT and designing systems (eg IPv6) to fix the problems it causes.

US government advice is to avoid the use of NAT because of the extra complexity it introduces, which actually reduces security:

https://media.defense.gov/2023/Jan/18/2003145994/-1/-1/0/CSI...

Re:I spent a week without IPv4 to understand IPv6 transition... by dns_snek on Tuesday March 07, 2023 @08:52PM (#35064163)
> It is an additional rule in the router's firewall what temporarily avoids it.

I really don't understand the fearmongering. Your home router likely runs some flavor of Linux which uses Netfilter/iptables to perform both NAT and filtering. Do you believe that the filtering/firewall modules are inherently flawed, yet the NAT modules are infallible?

I see them as two sides of the same coin. If we're theorizing about a magic packet that not only removes your firewall rules, but also flips the default policy to ACCEPT, the very same packet could also sneak in a few NAT rules into your IPv4-only router.

Re:I spent a week without IPv4 to understand IPv6 transition... by KronisLV on Tuesday March 07, 2023 @09:35AM (#35055770)
> Further, because you don't have only one external IP, you don't have to futz around with non-default ports if you want multiple instances of the same service (e.g., Minecraft), because each instance can have its own IP.

This is an interesting point though personally I love how easy container technologies made exposing arbitrary ports, without trying to configure the software itself, or checking whether it even supports customizing the port.

For example, I could have 3 database instances, each using 3306, but expose them on 30000, 30001 and 30002 or whatever I want.

Re:I spent a week without IPv4 to understand IPv6 transition... by yrro on Tuesday March 07, 2023 @02:37PM (#35060082)
But the things connecting to them need to know which non-default ports to use!

The Gods intended for each database service to have its own IP address and I curse the market forces that have trapped so many of us in the quagmire of NAPT!

Re:I spent a week without IPv4 to understand IPv6 transition... by audunw on Monday March 06, 2023 @05:00PM (#35048308)
> as if that's something that anybody wants.

Of course I do. Why would you not want the option of easily allowing a device to be globally routable if you need it to be?

I think routers should be more explicit about how you set up each new device on a private network anyway. Guest wifi can have a sane default. Private wifi could make a notification pop up on your trusted device, asking you if you want the now device to have access to the internet, and if the internet should have access to the device, and if so, which subnets/countries should be able to access it through which ports.

Re:I spent a week without IPv4 to understand IPv6 transition... by aflag on Monday March 06, 2023 @05:59PM (#35049019)
Most people don’t need it, so that’s why they don’t want it. OP didn’t say people object to it, just that it’s not something most people cares about.
Re:I spent a week without IPv4 to understand IPv6 transition... by hot_gril on Tuesday March 14, 2023 @05:01PM (#35158534)
It's fairly common to want P2P connections, even if the users aren't aware of it. A lot of online games rely on NAT traversal, sometimes automatically picking a host based on whoever's NAT it can get past. I don't remember the details, but even the Nintendo Switch cares about NAT.

A lot of would-be P2P applications end up using a relay server to get around that restriction, which adds significant cost and latency. Sure it's a well-established workaround by now, but it'd be nice not to rely on it.

Re:I spent a week without IPv4 to understand IPv6 transition... by 1vuio0pswjnm7 on Monday March 06, 2023 @06:09PM (#35049137)
The article uses gaming and IPSEC as examples but not, say, ad servers and "tech" company websites or other websites desperate to collect data. Interesting coincidence.

Nothing wrong with using IPv6 for peer-to-peer usage with people you trust. Look at CJDNS. However I generally have no desire to make any "tech" company middleman a peer, given their motivations, reputation and ethics.

As the parent suggests, IPv6 creates more work to prevent more exfiltration. It is already difficult enough with IPv4.

Could IPv6 fix a web infested with "tech" company intermediaries and return it to one where all participants can connect directly and if desired publish to audiences (without "tech" interplopers). That sort of proposal would make an interesting read for end users.

Re:I spent a week without IPv4 to understand IPv6 transition... by 1vuio0pswjnm7 on Tuesday March 07, 2023 @01:15AM (#35052184)
CJDNS has been most interesting use of IPv6 I have seen to date.
Re:I spent a week without IPv4 to understand IPv6 transition... by topranks on Monday March 06, 2023 @10:08PM (#35051048)
NATs at very least complicate things.

Even if you never allow anything in from outside that wasn’t established from the inside first, it still removes an added layer of complexity from things.

Re:I spent a week without IPv4 to understand IPv6 transition... by HyperSane on Tuesday March 07, 2023 @12:11AM (#35051825)
Verizon wants $500 to enable IPv6 on an LTE SIM.
Re:I spent a week without IPv4 to understand IPv6 transition... by qalmakka on Tuesday March 07, 2023 @12:57AM (#35052083)
NAT is not only bad because you don't have publicly routable addresses, but because it's a hack and a pretty "clever" one at that, aka, incredibly nasty.

If we had networking protocols that took into account the complexities of private addresses it could probably work - but we don't have such a luxury. The entire TCP/IP stack assumes peer to peer connections, and NAT is literally a spanner in the works for all that.

Re:I spent a week without IPv4 to understand IPv6 transition... by bert64 on Tuesday March 07, 2023 @08:49AM (#35055264)
Routable does not mean reachable. A firewall is perfectly capable of controlling traffic between two routable addresses, without the added burden and complexity of having to translate the traffic to/from a non routable address.

The whitehouse has a public address, everyone knows its address and yet random people can't just walk in through the front door.