News for hackers. Stuff that matters.
Re:IPv6 Is Hard by Helmut10001 on Monday February 17, 2025 @01:45AM (#43075948)
This reminds me of a company where the admin used public routable IPs for the internal subnet. The gap is always the human in the loop.
Re:IPv6 Is Hard by Symbiote on Monday February 17, 2025 @02:40AM (#43076248)
There's nothing wrong with this, and it's common at universities that have large IPv4 allocations.
Re:IPv6 Is Hard by Helmut10001 on Tuesday February 18, 2025 @07:34AM (#43088776)
The subnet that he used internally was "officially" used and owned by oracle and our printers regularly send traffic falsely to Silicon Valley.
Re:IPv6 Is Hard by icedchai on Monday February 17, 2025 @10:14AM (#43079785)
This was the norm for most of the 90's and earlier. NAT was supposed to be the exception, but it became the rule. Now we have an entire generation that doesn't understand that the Internet was always supposed to support end-to-end connectivity.
Re:IPv6 Is Hard by WorldMaker on Monday February 17, 2025 @02:26PM (#43082444)
Plus too many of that generation see NAT as a "security feature" not an "IP bug" and can't seem to (re-)imagine traditional firewall/router design from the time before NAT. "end-to-end connectivity" is not the same thing as "open and unsecured connectivity", we have the security tools to deal with that and they are not and have never been named "NAT".
Re:IPv6 Is Hard by icedchai on Monday February 17, 2025 @07:35PM (#43084699)
To say NAT has nothing to do with "security" is a lie. The most common NAT (PAT) configurations are basically acting as stateful firewalls with a default deny policy for all unsolicited inbound traffic to a private, non-routeable network.
Re:IPv6 Is Hard by Dagger2 on Monday February 17, 2025 @11:17PM (#43086024)
They aren't doing that though. The most common NAT (PAT) configurations don't deny unsolicited inbound traffic.

They are of course commonly deployed together with a firewall that does deny that traffic, but claiming that NAT blocks connections because it's usually deployed together with a different technology that handles all of the blocking would also be lying.

Re:IPv6 Is Hard by ninkendo on Tuesday February 18, 2025 @06:56AM (#43088537)
> The most common NAT (PAT) configurations don't deny unsolicited inbound traffic

That doesn’t make sense.

If I have a single routable IPv4 addresses and 100 machines behind it with RFC1918 addresses, how can any possible router “allow by default” say, port 22? Which machine would it route it to? Would it pick the first one? Randomly select one?

Of course NAT has to drop incoming unsolicited packets. Unless you tell it which machine to route them too, it couldn’t possibly know how to “allow” them in the first place.

Re:IPv6 Is Hard by Dagger2 on Tuesday February 18, 2025 @11:21AM (#43091410)
IP packets have a "destination IP" header field that specifies where the packet goes. The router reads that to figure out where to send the packet.

The only thing NAT does is rewrite the dst or src headers of packets. If there's no rule or state entry that applies to a packet, it doesn't drop the packet. It just leaves the original headers on it.

Re:IPv6 Is Hard by ninkendo on Tuesday February 18, 2025 @06:16PM (#43096372)
How would a packet with a destination IP of my internal RFC1918 address have landed on my WAN interface in the first place? It would require my ISP to have a routing rule that sends it to my router. Is that the threat model you’re thinking about?
Re:IPv6 Is Hard by icedchai on Tuesday February 18, 2025 @01:11PM (#43093085)
He's assuming your non-routeable RFC1918 addresses are actually routed from the Internet, which won't be happening in the normal consumer use case.
Re:IPv6 Is Hard by icedchai on Tuesday February 18, 2025 @01:13PM (#43093108)
Even if there's no blocking, using internal RFC-1918 addresses still adds a layer of security since they are not reachable globally.
Re:IPv6 Is Hard by WorldMaker on Monday February 17, 2025 @11:21PM (#43086045)
> basically acting as stateful firewalls

Stateful Firewalls are the security tool. NATs being mediocre to somewhat alright stateful firewalls "out-of-the-box" before adding a real Firewall is the accident (and sometimes bug). Something doing security by accident (or as a bug) isn't a security tool (just like security through obscurity isn't a security tool). You can have Stateful Firewalls without NAT. Everyone saying that you "need" NAT to have Stateful Firewalls doesn't understand Firewalls or even possibly why "firewall" is and has always been a different word from "NAT". NAT has something to do with security, but that's being generally always paired with a good firewall, not being a mediocre firewall mostly by accident.