News for hackers. Stuff that matters.
Re:Reasons for servers to support IPv6 by stingraycharles on Saturday January 29, 2022 @11:06AM (#30127384)
I think most corporate network should be able to do pure IPv6 internally, and then tunnel to IPv4 at the gateway.

The number one complaint I hear (and have myself) is that maybe I don’t _want_ all devices on my LAN to have public IP addresses. NAT makes security a lot easier to reason about.

Re:Reasons for servers to support IPv6 by redprince on Saturday January 29, 2022 @01:01PM (#30128638)
> The number one complaint I hear (and have myself) is that maybe I don’t _want_ all devices on my LAN to have public IP addresses.

This isn't a goal in itself. The formerly problematic and unwanted side effects of NAT, namely a broken peer to peer relationship of hosts on the internet, are now understood as a feature. Machines were forced by this technology to be clients and the initiators of all connections to the internet. Historically this has interfered greatly with several internet protocols (ftp, IRC DCC, p2p file sharing, ...) all mostly dead now or reworked to operate in a world full of NAT gateways.

IPv6 would reverse this state of affairs. If machines need to be denied the server role, this can be enforced by a firewall. As far as tracking of clients by IP goes, dynamic address assignment via DHCP or IPv6 privacy extension take care of that.

Re:Reasons for servers to support IPv6 by gumby on Saturday January 29, 2022 @03:39PM (#30130164)
> The formerly problematic and unwanted side effects of NAT, namely a broken peer to peer relationship of hosts on the internet, are now understood as a feature

A feature? I’ve never heard that. If you want to break the end to end nature of the net you can do that in your router, easily and more powerfully, without all the overhead of NAT.

The net has turned back to the old mainframe days, and things like NAT make it hard to go the other way.

Re:Reasons for servers to support IPv6 by DarylZero on Saturday January 29, 2022 @04:32PM (#30130732)
> I’ve never heard that.

It was in the parent comment!

Re:Reasons for servers to support IPv6 by imoverclocked on Saturday January 29, 2022 @03:16PM (#30129943)
One can still have intentionally unroutable addresses in IPv6.
Re:Reasons for servers to support IPv6 by tsimionescu on Saturday January 29, 2022 @04:26PM (#30130662)
Sure, but then you're again on par with IPv4+NAT in the area of connectivity - no worse, but no better. So why switch?
Re:Reasons for servers to support IPv6 by gumby on Saturday January 29, 2022 @05:42PM (#30131335)
Because you have all the overhead of NAT plus losing functionality that cannot operate through NAT. If all you want is to have addresses that done leave the local net, just do that.

You’ll lose weight in a famine but nobody would suggest it as a diet plan.

Re:Reasons for servers to support IPv6 by tsimionescu on Saturday January 29, 2022 @06:50PM (#30131887)
> Because you have all the overhead of NAT

What overhead does NAT add compared to a L4 firewall?

> plus losing functionality that cannot operate through NAT.

What functionality does NAT prevent that a L4 firewall doesn't?

Re:Reasons for servers to support IPv6 by imoverclocked on Saturday January 29, 2022 @07:25PM (#30132165)
You can simply not route a specific range, no firewall needed.

NAT, on its own, doesn't provide security. At best, it provides obscurity. At worst, it breaks security [2]. NAT needs a properly configured firewall to provide security [1]. In this sense, NAT vs a Firewall is a false dichotomy.

[1] https://tailscale.com/blog/how-nat-traversal-works/

[2] https://www.computerworld.com/article/2556611/nat-traversal-...

edit: formatting

Re:Reasons for servers to support IPv6 by tsimionescu on Saturday January 29, 2022 @08:28PM (#30132749)
I wasn't claiming NAT is adding security. A combined IPv4 NAT/firewall will not necessarily be less performant than an IPv6 firewall - that was my claim.

Also, GP claimed that certain services that don't work because of NAT would work on an IPv6 network. I was curious which services those might be, that don't work because of NAT but wouldn't be affected by a firewall.

Re:Reasons for servers to support IPv6 by Dagger2 on Sunday January 30, 2022 @08:34AM (#30137036)
If you're behind CGNAT then generally you won't be able to accept any inbound connections, so even things like a basic webserver aren't doable.
Re:Reasons for servers to support IPv6 by gumby on Saturday January 29, 2022 @10:16PM (#30133539)
These stateful devices have to look at all the traffic and maintain connection data for every transaction. That takes space and time and is bounded in volume.
Re:Reasons for servers to support IPv6 by tsimionescu on Sunday January 30, 2022 @04:12AM (#30135242)
The same is true of firewalls, so I don't get your point. Even in IPv6, your router-level firewall will need to know if a packet with dst_port=31536 is part of an existing connection or not, which means it has to monitor all traffic and maintain connection data for every transaction, no different from a NAT device.
Re:Reasons for servers to support IPv6 by gumby on Sunday January 30, 2022 @06:00PM (#30142149)
What is the point of a perimiter firewall in the modern Internet? Those TV and lightbulbs are attack vectors inside the firewall. And there are (and will be more) plenty of devices that bridge the cellular networks and the LAN.

You need a defense at depth, not a crunchy perimeter with a squishy inside.

Re:Reasons for servers to support IPv6 by NavinF on Saturday January 29, 2022 @11:10AM (#30127428)
NAT doesn’t improve security if port numbers are easy to guess, which is usually the case.

If you wanna block inbound connections, just drop them with your firewall. Most home routers already do this by default and if yours doesn’t, you better enable it for IPv4 too.

Re:Reasons for servers to support IPv6 by stingraycharles on Saturday January 29, 2022 @11:58AM (#30127918)
“Block everything” works as long as you aren’t actually opening any services on the local network.

If I want to open up a device with a single port, I should open that in the firewall. But wait, my IPv6 addresses aren’t stateful, so they can change any time.

And then suddenly someone decides to just open port 80 and 443 on the main router, and bam! I’ve just opened up those ports for _all_ IPv6 clients in my LAN.

You think all those IP cameras and ring doorbells were vulnerable when they are behind a NAT? Just wait what happens when they all get assigned public IPv6 addresses.

I’m not saying that these problems are unsolvable. But I think it’s important to at least recognize that, yes, this is different than how we did things with NAT, and you now have more tools to shoot yourself in the foot with.

Re:Reasons for servers to support IPv6 by spookthesunset on Saturday January 29, 2022 @12:54PM (#30128553)
> you now have more tools to shoot yourself in the foot with

And the tools for managing IPv6 firewall rules suck on "SMB grade" stuff like ubiquiti and are virtually non-existant on any consumer grade router. If I have to SSH into the router and treat it like a "real" router to set up IPv6 firewall rules... it is never gonna fly for anybody who isn't proficient with "real" routers (i.e. >99% of the world).

Hell I'm pretty sure comcast's cable modem doesn't even have IPv6 firewall capabilities and if they do it is default wide open. Thats not what I want. I have no interest in outsiders being able to ping hosts on my network or even know of their existence. I have no interest in letting random IoT devices expose open ports to the entire world (by default).

IPv6 is cool and all, but no consumer gear sets it up even remotely secure. At least with NAT a "script kiddy" grade attacker won't see what is behind your router. NAT isn't perfect but it solves a lot of problems. Not so with IPv6.

Honestly I just don't really see IPv6 replacing IPv4. It introduces too many problems and offers too little benefit. Whatever actually replaces IPv4 will either need to be 10x better than IPv4 in every way or be a completely transparent migration that works with IPv4 "but with more addresses".

Re:Reasons for servers to support IPv6 by X-Istence on Saturday January 29, 2022 @01:30PM (#30128944)
> Hell I'm pretty sure comcast's cable modem doesn't even have IPv6 firewall capabilities and if they do it is default wide open. Thats not what I want. I have no interest in outsiders being able to ping hosts on my network or even know of their existence. I have no interest in letting random IoT devices expose open ports to the entire world (by default).

Comcasts cable modem also doesn't have any firewall for IPv4... it's a cable modem, it passes packets.

Your CPE (customer premises endpoint) is where the firewall lives.

> IPv6 is cool and all, but no consumer gear sets it up even remotely secure. At least with NAT a "script kiddy" grade attacker won't see what is behind your router. NAT isn't perfect but it solves a lot of problems. Not so with IPv6.

Most newer consumer gear that does IPv6 blocks all in-bound traffic on IPv6, just like it does on IPv4.

Re:Reasons for servers to support IPv6 by spookthesunset on Saturday January 29, 2022 @01:35PM (#30128984)
> Comcasts cable modem also doesn't have any firewall for IPv4... it's a cable modem, it passes packets.

Most of the new stuff comcast ships is an "all in one" device that acts as an access point, a router and a cable modem. You can buy third party cable modems that do what you describe but what comcast gives you is much more fancy.

Re:Reasons for servers to support IPv6 by pixl97 on Saturday January 29, 2022 @04:31PM (#30130715)
You should almost always buy a 'dumb' cable modem and have your own router that you manage behind it. These devices are commonly behind on firmware and may have completely insecure settings that you'll never have insight into.
Re:Reasons for servers to support IPv6 by nomel on Saturday January 29, 2022 @05:43PM (#30131346)
Having an outdated firmware (which could be solved by mandatory updates from the ISP, which appears to be the direction AT&T is going) is still much better than having no firewall at all. An incredible minority of people, who “manage” their household internet access are aware of any of this.
Re:Reasons for servers to support IPv6 by alar44 on Saturday January 29, 2022 @06:32PM (#30131739)
If your firewall has exploitable outdated firmware, I might argue it's worse than no firewall because now you potentially have malicious code living on your network. Whereas if you don't have a firewall (on a home network) there generally isn't anything someone could get into anyway. "Oh I see port 22 is open." Great, there's nothing to SSH into anyway, who cares?
Re:Reasons for servers to support IPv6 by Dagger2 on Sunday January 30, 2022 @08:43AM (#30137109)
Surprisingly, it probably does have a firewall. Cable modems are really odd devices.

That said, the relevant part is the router (which may be part of the same physical device these days), and that part certainly does have both a v4 and a v6 firewall, configured securely for both.

Re:Reasons for servers to support IPv6 by deadbunny on Saturday January 29, 2022 @05:44PM (#30131349)
> And the tools for managing IPv6 firewall rules suck on "SMB grade" stuff like ubiquiti and are virtually non-existant on any consumer grade router. If I have to SSH into the router and treat it like a "real" router to set up IPv6 firewall rules... it is never gonna fly for anybody who isn't proficient with "real" routers (i.e. >99% of the world).

Umm, the IPv6 firewall interface is exactly the same as the IPv4 firewall interface on UniFi[1].

1. https://i.imgur.com/waISjwe.png

Re:Reasons for servers to support IPv6 by zamadatix on Saturday January 29, 2022 @01:42PM (#30129050)
You should use one of your PDs as a DMZ not putting your externally exposed web server in the same subnet as your IOT or other outbound only devices. If you're hosting a lot of things™ you should be using a static DMZ, same as you would on IPv4.

For the more general user case ("I want to host a game session with my friend") I'm not sure if there is something like UPnP for dynamically registering allowed ports without needing to actually do any NAT work but that would certainly seem useful.

Re:Reasons for servers to support IPv6 by thrashh on Saturday January 29, 2022 @11:15AM (#30127470)
NAT sucks but is harder to misconfigure.

I’ve never accidentally let something through NAT.

But accidentally not configuring a firewall? Everyone does that and has done that and will forever do it.

Re:Reasons for servers to support IPv6 by BenjiWiebe on Saturday January 29, 2022 @11:21AM (#30127554)
I hear this and I'm always curious how this happens. The Linux distributions I've used, the home routers I've encountered, etc, all default to a restrictive firewall that only needs to be changed if you want stuff allowed through.
Re:Reasons for servers to support IPv6 by nunez on Saturday January 29, 2022 @02:33PM (#30129597)
Yeah, incorrect firewall rules are a HUGE problem at super large companies that aren't doing infra-as-code at scale yet.

Sysadmins/server engineering/DevOps/SRE, Networks, and Security are usually hard silos at big companies.

"DevOps" gets a request from an app team to open a port between subnet A and subnet B.

DevOps asks Networks to do it. Security needs to approve it before Networks can do it (usually). A cohort of VPs somewhere need to approve it if those subnets are "production" (i.e. subject to serious fines if the data therein fails audit).

Networks outsources the request to their global services team in India/Phillippines/China/Brazil since it's literally a single command, but they are done in bulk. These changes are only done afterhours, partly because of outsourcing latency, partly because of regulations.

The firewall person types in the wrong port. Emergency change request gets filed to fix. Fixed in 1-3 days after the CTO/CIO and some SVPs approve it (and maybe yells at people for wasting their time).

The requester asks for the wrong port. Too bad, so sad, you're waiting another week.

The app team asked for the wrong port. Same outcome as the DevOps person.

Re:Reasons for servers to support IPv6 by withinboredom on Saturday January 29, 2022 @11:29AM (#30127632)
The thing is, once you start to do any complicated firewall setup where defaults can no longer be restrictive, you are bound to screw it up at some point.
Re:Reasons for servers to support IPv6 by mentat on Saturday January 29, 2022 @11:43AM (#30127753)
What kind of firewall work didn't have default drop? Once you take that off the table you really do have a problem but I've only seen that one in 20 years of professional work.
Re:Reasons for servers to support IPv6 by withinboredom on Saturday January 29, 2022 @11:51AM (#30127848)
I’ve had to do it fairly recently due to a lot of dynamic bridges and routing on the internal network vlan. I wanted to allow all traffic through the vlan from any device. However, wanted a default drop on the external interface.
Re:Reasons for servers to support IPv6 by X-Istence on Saturday January 29, 2022 @01:33PM (#30128965)
Once you are working with VLAN's you are out of the bailiwick of consumer hardware, and you should be looking at more enterprise grade gear.

At that point having a default drop on the external interface and different rules for traffic traversing VLAN's is entirely possible, in fact that is what it is designed and built to do.

Re:Reasons for servers to support IPv6 by withinboredom on Saturday January 29, 2022 @01:34PM (#30128983)
My consumer router has vlan support…
Re:Reasons for servers to support IPv6 by yakkers on Saturday January 29, 2022 @04:52PM (#30130919)
As far as consumer routers go, wouldn’t it be trivial to re-tool the usual port forwarding interface to simply accept connections to a specific address-port? That combined with a internal block-all-inbound rule would be quite hard for a user to footgun themselves horribly with.

From a quick search, UPnP seems capable of automating this for user convenience, especially with stateless addressing.

Re:Reasons for servers to support IPv6 by Dagger2 on Sunday January 30, 2022 @08:47AM (#30137139)
Are you sure you haven't? NAT in fact doesn't stop connections, so if you accidentally didn't configure the firewall then you won't be saved by NAT.

Odds are that there weren't many people in a position to connect to you, and probably nobody actually did so, but it would certainly have been possible without a firewall in place.

Re:Reasons for servers to support IPv6 by blibble on Saturday January 29, 2022 @01:40PM (#30129033)
there's plenty of instances of shitty applications setting up massive port forwarding rules using upnp
Re:Reasons for servers to support IPv6 by nitrogen on Saturday January 29, 2022 @12:02PM (#30127957)
It's not just about inbound connections, people also generally don't want to have their outbound devices clearly visible by counting unique IPs, or MAC addresses (and thus manufacturer) of devices sent out with every packet when MAC is used to generate the address, or another globally unique identifier for ad networks to track.
Re:Reasons for servers to support IPv6 by kstrauser on Saturday January 29, 2022 @12:06PM (#30127996)
I think all major OSes have privacy extensions enabled by default, and therefore use random addresses that change regularly.
Re:Reasons for servers to support IPv6 by alar44 on Saturday January 29, 2022 @06:42PM (#30131818)
They 100% most certainly don't. I would have no idea what anything is on my network if every workstation's MAC addresses was constantly changing. Some OS's do randomize per SSID, but it doesn't constantly change, it would break DHCP by using up all the addresses. You can't just constantly change your L2 address.
Re:Reasons for servers to support IPv6 by kstrauser on Saturday January 29, 2022 @09:12PM (#30133134)
This is in IPv6, not v4. I highlight that because you mention DHCP, which generally isn’t used there. And it’s not the MAC address that changes, but the 64-bit interface identifier. Ethernet would probably stop working if the MAC address changed with any regularity. You can read more about this at https://www.internetsociety.org/blog/2014/12/ipv6-privacy-ad...

From that article written in 2014, these OSes have privacy extensions enabled by default:

- All versions of Windows after Windows XP

- All versions of Mac OS X from 10.7 onward

- All versions of iOS since iOS 4.3

- All versions of Android since 4.0 (ICS)

- Some versions of Linux (and for others it can be easily configured)

Re:Reasons for servers to support IPv6 by X-Istence on Saturday January 29, 2022 @01:34PM (#30128982)
With IPv6 and SLAAC your external IPv6 address changes on a schedule using privacy extensions...

Mine at home is configured to change every 30 minutes.

Re:Reasons for servers to support IPv6 by tolien on Saturday January 29, 2022 @12:07PM (#30128009)
As sibling points out, that’s already covered by the IPv6 privacy extensions, which every major OS has some support for [1]

1: https://datatracker.ietf.org/doc/html/rfc4941

Re:Reasons for servers to support IPv6 by Notanothertoo on Saturday January 29, 2022 @04:06PM (#30130452)
This is why I haven't swapped, but I didn't realize they've accounted for this at the client level. Makes sense, still makes me think about IoT devices though and things I don't have 'control' over like my chrome cast.
Re:Reasons for servers to support IPv6 by redprince on Saturday January 29, 2022 @12:47PM (#30128470)
> I think most corporate network should be able to do pure IPv6 internally, and then tunnel to IPv4 at the gateway.

With the amount of legacy applications and systems populating the typical internal network that idea won't be going far.

Where IPv6 actually can be used and should be deployed in addition to v4 is in the perimeter networks. Offering or being able to use services on the internet over v6 (via proxy) overcomes the real shortage of ipv4 addresses in the internet at large.

I expect internal networks to be last places to be moved to IPv6 only.

Re:Reasons for servers to support IPv6 by iso1631 on Saturday January 29, 2022 @02:42PM (#30129674)
This simple workflow, a new internal network deployed on IPv6 only

Edge Firewalls -- source natting to allow access to IPv4 networks

Edge Firewalls -- destination natting to allow access from IPv4 to a service hosted on IPv6

Doesn't seem to widely adopted. It's all dual stack stuff, which means more work and more things to go wrong for no benefit.

Of course there's then the renumbering of your entire internal network every time you change ISP because you're using public IPs rather than private ones

Re:Reasons for servers to support IPv6 by Dagger2 on Sunday January 30, 2022 @09:03AM (#30137274)
NAT actually makes security harder to reason about.

For example, did you know that NAT doesn't prevent inbound connections? At least in v6 people are more likely to realize that, yes, they do need a firewall.

Re:Reasons for servers to support IPv6 by nunez on Saturday January 29, 2022 @02:26PM (#30129533)
IPAM, subnetting and firewalls still exist, though. That's just a lazy excuse.