this post was submitted on 17 Sep 2025
467 points (98.5% liked)

Programmer Humor

26450 readers
1162 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] slate@sh.itjust.works 5 points 3 days ago (3 children)

Idk man, NAT makes a lot of sense once you get used to it. And it's pretty cozy with its firewall features. And somewhat human readable ipv4 addresses are nice.

[–] Scoopta@programming.dev 15 points 3 days ago

NAT provides no firewall features and we can have a discussion about how wrong that statement is

[–] Dumhuvud@programming.dev 17 points 3 days ago (1 children)

ISPs putting you behind NAT is not cozy.

They charge extra for a feature called "static IP". But the IP address not being static is not the issue, for me at least. You could host stuff with a dynamic IP back in 2000s/2010s. But no, now you get to share the same IPv4 address with a bunch of other households, unless you pay extra.

[–] slate@sh.itjust.works 9 points 3 days ago* (last edited 3 days ago) (1 children)

Ha, yeah that sucks and I'd absolutely hate it if I were behind a CGNAT. But I believe most ISPs don't do that. None of mine ever have. Just like how most ISPs provide you with an ipv6 address range, but not all. Fact is that crappy ISPs can screw up your network no matter what ip spec you're using.

And I've never heard of a business network being behind an ISP controlled CGNAT. A NAT you control can be nice.

[–] 4am@lemmy.zip 4 points 3 days ago (1 children)

You don’t need a NAT with IPv6, that’s what link-local addressing is for

[–] xep@discuss.online 2 points 2 days ago* (last edited 2 days ago)

Unless your ISP won't support DHCPv6-PD until you pay them extra... want to guess how I know this?

[–] Laser@feddit.org 1 points 3 days ago (1 children)

Idk man, NAT makes a lot of sense once you get used to it.

That's a lie, NAT is bullshit, sometimes necessary, but it will never "make sense".

[–] slate@sh.itjust.works 5 points 3 days ago (2 children)

I like that none of my local devices are externally addressable unless an outgoing connection has been established. You can (and should) achieve the same thing with ipv6, but then it's essentially just maintaining a NAT table without the translation piece. I think that makes sense in both protocols.

[–] eager_eagle@lemmy.world 3 points 3 days ago (1 children)

exactly, I also like this peace of mind for my home network and see no benefit in using ipv6 there. Similarly for any VPC I deploy to an IaaS.

[–] unquietwiki@programming.dev 2 points 2 days ago

I'm actually trying a hybrid approach with some VPCs: use firewalled IPv6 ports for remote management, direct to the VMs; while siphoning off the IPv4 traffic to a basic Linux host with Netfilter rules acting as a NAT router. I keep the benefits of using IPv6, without eating up a bunch of external IPv4 addresses, that I would also have to account for on filtering.

[–] Laser@feddit.org 2 points 3 days ago

I like that none of my local devices are externally addressable unless an outgoing connection has been established.

This can also be achieved using (other) firewall rules.

but then it's essentially just maintaining a NAT table without the translation piece.

So... a firewall?

NAT isn't a security feature and shouldn't be relied on for managing access to hosts.

It also breaks the assumption of IP that connections between hosts are end-to-end, which requires sophisticated solutions so that everything works (more or less).

I too employ NAT to make services accessible over IPv4. But only because it doesn't work otherwise. Not because it "makes sense". I don't use it at all for IPv6.