5 ms·
I'm still not convinced by the "NAT is Bad" arguments that people use when it comes to IPv6. Having a public address for a device in my house seems like a pote
by Nursie 11y ago
I'm still not convinced by the "NAT is Bad" arguments that people use when it comes to IPv6.
Having a public address for a device in my house seems like a potential security problem - it's leaking information about my network to the outside world. And it's a dream come true for traffic-tracking.
- zeroxfe 11y agoSo, you're mostly concerned about the security aspect? The security you get from NAT is accidental (but still useful.) The problem is that it is an ugly hack and greatly restricts the types of applications that you can build on (and for) the Internet. A good IPv6-capable home router with sane defaults can give you the same level of security as NAT, with much less complexity. You also don't need special NAT logic for applications that aren't simple request-response TCP sessions. > it's leaking information about my network to the outside world With sane defaults the only thing leaked is the IP address, which is already public (same as IPv4 with NAT.) Nothing about your internal network needs to be leaked. In addition, you get a few extra benefits: - With a /64 per network, it is almost impossible for port scanners to find you (inside a search space of 10^19 addresses.) - The privacy extensions (which is supported by almost all operating systems) prevent you from IP-address based tracking, by assigning you a temporary address which can change frequently, and using that for external communications. This coupled with ISP-provided dynamic addresses can actually give you better privacy than IPv4.
- pilif 11y agoin general, I agree 100% with you > With sane defaults the only thing leaked is the IP address, which is already public (same as IPv4 with NAT.) Compared to v4 NAT though, this will leak an address per device behind the firewall whereas before all these devices would not have been distinguishable. This is why devices started to create a whole lot of temporary v6 addresses, but this causes problems for some stateful firewalls as networks grow and the amount of addresses explodes.
- zAy0LfpBZLC8mAC 11y ago> Compared to v4 NAT though, this will leak an address per device behind the firewall whereas before all these devices would not have been distinguishable. ... just that they aren't really indistinguishable anyway. From cookies to TLS session cookies or session identifiers to specific TCP stack behaviour, it's usually quite easy to distinguish devices behind a NAT. > This is why devices started to create a whole lot of temporary v6 addresses, but this causes problems for some stateful firewalls as networks grow and the amount of addresses explodes. No, a stateful firewall keeps state per connection, not per address, the number of distinct addresses is of no consequence.
- deleted 11y ago[deleted]
- pilif 11y ago> No, a stateful firewall keeps state per connection, not per address, the number of distinct addresses is of no consequence. which is all well until it isn't: http://blog.bimajority.org/2014/09/05/the-network-nightmare-that-ate-my-week/ http://blog.bimajority.org/2014/09/05/the-network-nightmare-...
- darkr 11y agoThat blog post was referencing issues with FIB/TCAM/multicast state table exhaustion on switches with a small entry limit (3000), brought on by nodes with lots of IPv6 addresses, each with their own multicast group. All of the protocols involved in this are mostly contained within the same layer 2 domain. A "stateful firewall" is generally a firewall that is tracking TCP and UDP packets (i.e L4 and above), so should be unconcerned with anything operating below this layer[1]. A TCP connection is a TCP connection whether running over IPv4 or IPv6. [1]: Things become more convoluted when you have "switches" providing L3 or above functionality, but the problem referenced really is at the switching layer.
- lmm 11y agoNetwork topology isn't really secret under NAT - there are plenty of ways to fingerprint devices based on the packets they send. I prefer to see my home network as just part of the internet - that way I can let guests use it without compromising my security, and I don't have to worry about vulnerabilities in my router's firmware or physical access to my network cables. IPv6 makes that very easy, because my home network really is just part of the internet.
- Nursie 11y agoI do not prefer my home network to be part of the internet. I have insecure devices, things I'm developing or testing, things that third parties have developed. Having my network as a non-addressable space with outbound-only connection forming is a positive for me and I suspect many people. I hope that as IPv6 takes hold this continues to be the default setup.
- lmm 11y agoNon-addressability does very little for security by itself. E.g. some routers will still route packets from outside that are sent with an internal address as the destination. Make sure you have actual firewalling in place if you're relying on that, and remember that if you're trusting any device connected to your internal network, you're, well, trusting any device connected to your internal network.
- zAy0LfpBZLC8mAC 11y ago> Having my network as a non-addressable space with outbound-only connection forming is a positive for me and I suspect many people. Most of all, it's probably an illusion. Your web browser has access to your local network, and you probably allow just about any software into your web browser. Yeah, sure, same origin policy and all that. But that doesn't help much with insecure devices or generally crappy software. A stateful packet filter at the boundary to the public internet still would be a good idea, just without the NAT (which mostly causes complexity, which, if it has any security effect at all, makes it much harder to reason about the correctness of your firewall).
- zAy0LfpBZLC8mAC 11y agoNot only are those security problems non-existent - the problems caused by NAT are massive. You might not notice so much because services that don't work well with NAT essentially simply don't exist much nowadays, so it's difficult to notice them not working if you aren't aware what they would even look like. Though there are some obvious ones like remote access to your machines at home. Without NAT, you simply have to open the ports in your firewall and immediately, you can connect without any port mapping or stuff, you simply can give your machines at home DNS names and ssh into them. Also, a major problem is not just the NAT itself, but the private addresses NAT tends to come with: If you have to somehow connect two networks that use the same private address space, things become incredibly hard to manage. Also, NAT introduces major asymmetries in routing. Have you ever tried to connect to a service that's port-forwarded to an internal machine from your NAT gateway from inside the local network, for example? Well, either it will fail because pure DNAT means thet the reply packets will reach you with the wrong source address (because they don't pass through the NAT on the reverse path), so you suddenly need different configuration on the client side, depending on where you are when you try to use a service; or you have a device that does hairpin NAT in that case, which then means that the service doesn't see your actual IP address, but the address of the NAT gateway instead, which might give you confusing debug output/logging, and possibly non-working access control, and also causes your bandwidth to be severely limited by the speed of your NAT gateway, as all the traffic has to pass through the NAT gateway in order to rewrite the addresses of all packets, even though both endpoints are on the same LAN and might be able to transfer data at gigabit speed, if only there were no NAT involved.
- VLM 11y agoThere are possible operational security gains that can be permitted by ipv6, if operations groups permit... For example, because of NAT and dynamic ip addrs allocation, my VOIP provider pretty much has to accept any ipv4 address in the world. My ISP's allocations are numerous and non-contiguous and my RFC1918 LAN address is meaningless from a security perspective. So anyone on the planet can log into my VOIP provider as if they're me, if they obtain my login info. That's kind of dumb. However, with ipv6, with significant operational changes, it would be trivial to set up my account and firewall such that my VOIP device only talks to one specific providers /128 and my provider's account and firewall will only talk to my one very specific /128. Yeah yeah there are load balancing issues and device replacement issues such that a sane provider would operate on /64 sized networks both at their data center and my house, not individual devices. But it would be immensely more secure than ipv4, anyway. There are other operational advantages. Currently with ipv4 companies usually don't have "an allocation" they have many, maybe dozens of little /27 here and a /28 there as they added devices. In the ipv6 world of the future companies will get a single /56 or maybe a /48 and call it good. So you get DDOSed or attacked or whatever, there's exactly one address range to block. Not 50 little ones depending on random DHCP address assignments. It'll be a much faster and simpler world. Doing egress filtering? They'll be one block to permit, thats all. Just one rule, not 75.
- majke 11y agoThink about a bigger picture. Before NAT we used to have a symmetrical internet. Everyone could consume content from other servers. Everyone by definition was a server and could produce content for others. From a philosophical point of view this is extremely important. For example email used to be properly distributed. Nowadays the internet services are concentrated. For example gmail receives a big share of all emails. Amazon gets a big share of all http traffic, and so on. In this centralised world the "client can be a server" attitude is in practice less important. NAT's are ubiquitous. Last-mile carriers don't give static IP addresses, etc. But still, I would be much happier if the internet was truly decentralized. Even if it's not possible to decentralize all services, the internet, the addressing scheme and infrastructure just _must_ be symmetrical. Everyone connected to the net should be able to "publish" content without the need for anyones approval or infrastructure. IPv6 addressing scheme, the removal of NAT's, brings back the democratization of the internet.
- arbitrage 11y agoGoogle and Amazon are not leaders in their fields because of NAT creating some sort of unbalanced playing field. That is just an incredibly fallacious argument.
- cm2187 11y agoI guess with IoT, we may see more client-to-client connections. You will want to remotely connect to your baby monitor/nanny cam, see who's ringing to your doorbell, change the temperature of your home, give an electric shock to your dog because the neighbour called to complain about the barking, etc, all that while you are away. You can do all that with a client-server architecture but a direct connection feels more natural.
- Nursie 11y agoI don't disagree that people could be servers much more easily in the early days. But my mum doesn't want to be a server. And I don't really want my TV being one either.
- solidangle 11y ago
- cm2187 11y agoYou can reduce a lot this risk with temporary addresses: https://en.wikipedia.org/wiki/IPv6_address#Temporary_addresses https://en.wikipedia.org/wiki/IPv6_address#Temporary_address... The prefix of your address may still identify your household but there isn't much tracking one can do with it, as the household may be a hotel or a coffee shop, with lots of different users. And even within the family, tracking is only useful if you can tell the difference between grandma, mum, dad and the teenagers (or even the dog who will surely soon have its own IP!). Very different targets in term of advertising.
- stephen_g 11y agoYour post is the kind of thing that seems intuitively to be the case, but is actually not in any practical setups. Unless you hardcode your IPv6 addresses, they will be generated automatically and change quite frequently. So the addresses become pretty meaningless and all you have to identify your devices really is the prefix of your network - pretty much the same amount of information as a network behind a NAT'ed IPv4 address. In fact, as far as I remember you can actually statically assign your machines easy to remember addresses if you want but still have the machines generate temporary addresses that they use for outgoing connections, which is cool. As for NAT - it basically gives you no extra security over a basic firewall, and just makes it really difficult to do a lot of things, such as serve content from two machines on your network on the same port. It's not the worst thing in the world, but it is a fairly sub-optimal hack and something I would really love to do away with on my networks.
- Nursie 11y agoI quite like the idea that some of my machines, which are running experimental code or aren't fully secure (or devices like my tv) are not even addressable from the outside but can retrieve stuff if they need to. It seems to make sense there. I guess as/when the transition gets more widespread we'll see if NAT really was giving us any sort of security for free.
- zAy0LfpBZLC8mAC 11y agoIf NAT was giving us any security at all (probably not, if you keep the stateful packet filter), it most certainly didn't do so for free. Working around the effects of NAT is a major headache that causes a lot of otherwise unnecessary work.
- pdkl95 11y ago> are not even addressable from the outside If your router is only doing NAT, they are addressable. A packet sent to a NAT-only router destined for 10.1.2.3 will simply be routed. It may have further address re-writing applied depending on the type of NAT, but that doesn't really matter - the packet will still go through. This could be accomplished with source routing, or an attack could simply originate one hop upstream. The return packets are probably[1] unroutable, but that doesn't stop someone from simply guessing[2] you internal addresses and forging packets. If you want to drop some class of packet - like any incoming packet destined for a local-only address - then you want a firewall, not a NAT. One drops packets, the other merely rewrites addresses. This distinction is often missed because a pure NAT-only device is rare. > aren't fully secure Given how easy it is to generate packets on a supposedly-"internal" network, if a device isn't secure you probably shouldn't even connect it to the network. Border-only security may be not be the worst[3] idea in network security, but it's still a bad idea that should never be relied upon. > for free NAT is easily the most damaging and costly problem in the entire history of the internet. It has turned a network of equal peers into a centrally controlled, cable-TV-like feudalism. What is the cost of the losing the ability to publish without the approval of a 3rd party? What kind of price tag do you put on the entire industry of network software that was never developed because it wouldn't work behind NAT? [1] your ISP hopefully drops any packets from any address other than the IP they assigned you [2] sending to 10.0.[0-1].[1-5] or 192.168.[0-2].[1-5] probably works often enough [3] http://www.ranum.com/security/computer_security/editorials/dumb/ http://www.ranum.com/security/computer_security/editorials/d...