by jiggawatts · 2y ago · 0 comments
DNS was invented in 1985 so that you don't have to memorise IP addresses.
DHCP was invented in 1984 so that you don't have to allocate IP addresses manually.
You can allocate nice short IPv6 addresses if you like to memorise hundreds of numbers as a hobby instead of letting the computer do that for you.
NAT is a hack for getting past the address-space limitations of IPv4.
NAT provides security as a side-effect.
Firewalls provide the same security.
Every router has a firewall built in now, whether they use NAT or not.
IPv6 has the same security as IPv4 whether or not you use NAT.
There are no "privacy issues" with IPv6. All modern clients randomise the host part of the address. You "look the same" to the rest of the Internet whether your unique address is a single IPv4 address or a /64 prefix. It's a unique identifier in both cases.
People that want to track you can use a hundred other techniques, most of which are more robust than your IP address. You're tracked anyway. Giving up on the future of the Internet in a futile attempt to stop your porn habits being tracked is not a valid argument against IPv6.
You can not. Stateful DHCPv6 is poorly supported. In particular, Android doesn't support it, and I had problems with it on iOS. It's so niche at this point, that many companies (Mikrotik, I'm looking at you) don't even bother with it.
Moreover, even stateful DHCPv6 is a regression compared to V4 because it misses the host name. I can do a rough inventory of my IPv4 home network (120 devices) by looking at hostnames for DHCPv4 leases, no such thing exists for IPv6.
You mean, you can do a rough inventory of IPv4 devices that are well-behaved and want to be found.
Unless you have enterprise-y network gear, which can do port isolation and preferably 802.1x auth, it's trivial for a host to poison your switch's ARP tables to check whether the address it wants to use it free, and then simply use that address without requesting it from the DHCP server[1].
The DHCP server will check that no hosts are using that address (usually via ICMP) before assigning any leases to it, but won't (at least for any common DHCP servers) register a lease for any host it discovers, so the rogue device doesn't even need to worry about changing addresses when a new host joins the network. At best, you might discover the presence of such a device by checking your DHCP server's logs.
Since no common consumer-grade NAT implementations check whether the internal host has a valid lease before establishing NAT state, the rogue internal device is free to communicate with any external host. Even better, the rogue device can send packets with a from-address of other devices on your network, allowing it to punch arbitrary holes in your NAT.
As other commenters mentioned, you can get a similar level network surveillance for IPv6 using mDNS, but at least IPv6 isn't lulling you into a false sense that you can see all the devices on your network in the lease table.
[1] Actually, it doesn't even need to do that... it can simply start using an address and then change to another address if connectivity seems to be a problem.
Incorrect. It's pretty trivial to allowlist on the firewall only hosts that have an active DHCPv4 lease. I've done it for my home network.
So you absolutely can have a rogue device, but it won't be able to connect to the Internet. This can be done with OpenWRT or Mikrotik (I have the latter).
ARP attacks, and MAC spoofing require an additional level of sophistication. With IPv6 you can legitimately have devices without any means to find out WTF they are.
> As other commenters mentioned, you can get a similar level network surveillance for IPv6 using mDNS, but at least IPv6 isn't lulling you into a false sense that you can see all the devices on your network in the lease table.
mDNS simply Does Not Work right now. Plenty of IPv6-capable devices don't support it.
I can do the same thing with mDNS, there’s no need to run a stateful DHCP server.
avahi-browse -at
Done.No. mDNS is not mandatory (e.g. my TrippLite UPS management card doesn't support it), and it requires active device participation. If a device is busy or slow to respond, you'll miss it.
DHCPv4 leases are authoritative, and they don't require device participation for discovery.
I've always been under the impression that it is actually easier to track an individual user on IPv6 because each device now has a unique address. Example Company could now tell the difference between 2 users in a home, for example, instead of just a single NAT'd IPv4 address. Is that not true?
Most modern OSes change IPv6 every hour to once per day. The result is that any tracker can't tell if two IPv6 addresses in the same subnet are two hosts or one that changed its address.
1: https://www.internetsociety.org/resources/deploy360/2014/pri...
In practice, most OSes generate a new address once per day, but more significantly, it is completely normal for an IPv6 host to have multiple addresses per interface at the same time. In fact, it is effectively mandatory to have at least two:
First, you must have a link-local address (fe80::/10), which is non-routable. This is required for SLAAC and DHCPv6 to work. Second, if you want to talk to the rest of internet, you need a routable address (from SLAAC or DHCPv6).
In practice, it's even more than that:
The computer I'm writing this on currently has 12 IPv6 addresses on one ethernet interface. Besides the link-local address, it has as a bunch of routable addresses on the prefix delegated by my ISP. All but one of the routable are "deprecated" which means that they won't be used for new outgoing connections, but remain active for existing connections.
So not only do you get a new randomized address every 24 hours, you may have an arbitrary number of randomized addresses active at any given time.
There's nothing stopping a privacy-focused Linux distro from generating a new address for every outgoing connection, and having them all active at once.
> IPv6 has the same security as IPv4 whether or not you use NAT.
Both of these cannot be true.
In that context, the second statement can be true.
sigh
NAT provides a false sense of security as a side-effect.
There is nothing in NAT what couldn't be done with DENY rule in the firewall.
Misconfigured firewall is a gaping hole into the local network.
NAT security is a dangerous illusion that people just can't seem to stop falling for.
The dangerous illusion is to think this is a coincidence.
I don't get the "false-security" issue with NAT.
I still need NAT if I can't allocate 1 IP per host, so if I create a NAT rule, why would I also need a firewall rule covering the same port (assuming default is DENY)?
Where does the false-security come into play?
"NAT is a security boundary" sits on using RFC1918 addresses and "nobody can enter my network because there is no DNAT rules for it!".
If you know how the routing actually works on Ethernet networks then it should be pretty obviously, but if not: there is no magic there.
If you know what the packet is addressed to some network not in your routing list, then you just throw it the default router with dstaddr of the recipient and MAC address of the default gateway. There is no security or anything.
And the same applies to the traffic you receive on the external interface. Anything what would be received on the external interface would be forwarded to your local networks if dstaddr of the packet is in your local network range.
And there is two ways to throw some packets with dstaddr in RFC1918 to your external interface:
a) be on the wire of your external interface - you can't forward those packets over Internet, obviously
b) have DNAT what would rewrite the IP of your external interface in dstaddr to some internal IP
So having internal addressing according to RFC1918 on the LAN and therefore using NAT to access anything else - doesn't make your network secure.
Usually this is not a problem, but if you are thinking what NAT do makes your network secure then you have two problems: possibly an unsecure network and feeling what your network is secure.
> why would I also need a firewall rule covering the same port (assuming default is DENY)?
Assuming. There are people out there who can't even configure their firewall properly: https://news.ycombinator.com/item?id=38879470
EDIT: Oh, how quaint, just downvoting without responding. Remember, downvotes are not for your opinion on the comment.
But while we are at it, two more options on having an external packet traverse to your local network:
c) have a host on the LAN initiate a connection to the Internet, which opens up a port on the external interface of the router. Sure, in 99.9999% you can't use that, because the statefull firewall would discard the incoming packets not from the host which a client communicates... Until the attacker is that host in the first place, ie malware or even a deliberate operation
d) UPnP. 'Nuff said.
I agree about (some to most) of your writing and it was very informative (and lengthy!) but I didn't find the time to write something back which would honor your response enough.
Why?
> There is nothing in NAT what couldn't be done with DENY rule in the firewall.
DENY doesn't provide you stateful tracking. I.e. you want to let traffic between two hosts flow, but only if an internal host on your network initiated it.
And once you do that, you basically have 80% of NAT.
Alternatively, if you mean local to external host connections, why would an inbound deny rule not work here?
Suppose that a host wants to open outbound connections to other hosts on the same network, as well as across the Internet, without regard to which kind of destination it is. By what mechanism does the host decide which source address to use? And how portable is this mechanism across different systems?
No. I want an address that can connect to the hosts on the Internet, but I don't want random hosts on the Internet to connect to it.
Basically, what NAT does is pretty much the perfect compromise for small-scale home/office security.
> DENY doesn't provide you stateful tracking.
Yes, but I wrote that for the usual "but NAT doesn't let attackers get in my network!!1" in mind. Not the first time here: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
sigh I probably should just make a blog post on it or something and just point people there.
It's not an illusion, it's actual security. Is it completely foolproof? No. But it definitely makes it easier to use, e.g. esp8266-based devices without worrying that they'd be knocked offline by an automated script that sends a couple megabits of traffic their way.
And to do the same on IPv6 you need 80% of NAT, in particular you need stateful connection tracking.
And if you want to do something like host a minecraft server on your computer that you can then let your friends access (and only your friends), you need a firewall config anyway.
To let things work, we added ALG (application level gateway), which are code used to remotely allow flows
Look at them, a whole universe of issue lies there
The current state of the art is to use hole punching and STUN.
Is the network admin version of "If you have nothing to hide, you have nothing to fear?"
A better phrase to pull out is "neither necessary nor sufficient".
Normal people just use a VPN or a cloud proxy and move on with their lives.
It’s all academic anyway. It’s hilariously easy and effective to build up an identity via browser fingerprinting, or similar techniques. Ironically, the more crazy “protections” you layer on, the more special and distinct that fingerprint becomes.
As a case in point: running a Tor client makes you a high priory target for the NSA and similar state agencies. To the point that something like half of all Tor nodes are rumored to be compromised!
PS: IPv6 is such a vast number space that brute force scanning the Internet to look for vulnerabilities will go from a “hilariously simple Python script” to “literally impossible”! People worried about security and privacy should be rushing to switch to IPv6 because it’ll permanently block all drive-by attacks!
> Normal people just use a VPN or a cloud proxy [...]
Ad hominem
<< The most common form of this fallacy is "A" makes a claim of "fact," to which "B" asserts that "A" has a personal trait, quality or physical attribute that is repugnant thereby going entirely off-topic [...] >>
Not everyone is nice. Some people's ideal for the Internet is not my ideal for the Internet. I don't have to agree with everyone, and I don't think infinite protections should be granted to people like that at great cost to everyone else.
> Giving up on the future of the Internet in a futile attempt to stop your porn habits being tracked is not a valid argument against IPv6
should certainly not be simplified into
> If you have nothing to hide, you have nothing to fear
in the context of the full original comment which mentioned that hiding behind an CGNAT IP address is _not_ hiding, given that other more robust (and already prevalent) methods of tracking exist.
Obviously, two wrongs do not make a right, but since we are already talking about logical fallacies I might as well warn all the readers here that this thread is full of 'em - take the comments with a grain of salt.