Live data from Hacker News

Enabling IPv6 support for IPv4-only apps on Linux

blog.apnic.net

121–130 of 199 posts

Re: Enabling IPv6 support for IPv4-only apps on Linux

#121

Earlier quoted context omitted.

Yeah I agree this does seem like something that really ought to simply be configurable out of the box with options for transparently handling both 6-to-4 and 4-to-6 when the appropriate services are discoverable or configured on the network. The top level reply here discussing how MacOS handles it seems like something that should be able to be recreated with iptables, but when searching I am extremely surprised to di…

Linux is usually king when it comes to networking and configurability - so I too am really surprised it isn't an option to do something sane.

Linux has various implementations of 464 but they just aren't on by default in your distro.

Re: Enabling IPv6 support for IPv4-only apps on Linux

#122
post #105

Earlier quoted context omitted.

The only reason for that "rule" is SLAAC.

I think SLAAC's /64 limit functions as a "trojan horse" forcing ISPs to give everyone at least 64 bits of address space. Most would allocate /112-/128 per customer if it were slightly easier. Designing the internet with lots of unused space at the edges will probably be useful in 100 years.

Regardless of the /64 limit, I expect DHCPv6 will win out in the consumer side (with ISPs giving customers pre-configured wifi routers with DHCPv6 already configured). SLAAC is both very complicated, and its privacy extensions are anyway not something ISPs have been friendly to even if it weren't such an extra hassle.

Re: Enabling IPv6 support for IPv4-only apps on Linux

#123
post #96

Earlier quoted context omitted.

I'm of the opinion that IPv6 is old enough that the fact we have not hopped to it yet means its not happening anytime soon. I wanted it back in 2008 when I first learned about it, and I know its older than that (90s iirc) so its either going to come one day "abruptly" by force and break half the internet, or people will do hacks to maintain IPv4 as is. I think the only way IPv6 will ever become mainstream is if eithe…

Yeah, we need more incentive. Ipv6 is harder to implement yes, it is true, there is no point in denying this and arguing it solves tons of problem (it does). Most companies have ipv4 experience and it's just simpler. There must be some political pressure to make it move. But "hopefully" the economical pressure is starting to build up, a lot of providers are cheaper in ipv6 only configuration. Still, for a company lik…

If ipv4 is just simpler and people prefer it like you say, that's a sign that v6 isn't a good option for replacement.

Re: Enabling IPv6 support for IPv4-only apps on Linux

#124
post #86

Discord hardcodes ipv4 addresses and will not work for webrtc calls in DNS64 setup. In 2023 I consider it an insult to the internet as a whole.

I'm of the opinion that IPv6 is old enough that the fact we have not hopped to it yet means its not happening anytime soon. I wanted it back in 2008 when I first learned about it, and I know its older than that (90s iirc) so its either going to come one day "abruptly" by force and break half the internet, or people will do hacks to maintain IPv4 as is. I think the only way IPv6 will ever become mainstream is if eithe…

When they need to solve the address space crisis, they can make a "v4.1" that's just v4 but with an expanded address space. Existing addresses and decimal format stay; NAT DNS DHCP ARP etc stay mostly the same aside from supporting longer addresses. Cloudflare DNS is still 1.1.1.1, my private ip is 192.168.1.2, public 71.177.17.171, some new ISP hands out 11.127.13.121.143.356 when they run out of shorter addresses, life moves on.

I know v6 supports NAT, but it was basically designed to remove it with the whole random addressing scheme, and that isn't necessary for solving this problem (idk if things were different in the 1990s).

Re: Enabling IPv6 support for IPv4-only apps on Linux

#125
post #105

Earlier quoted context omitted.

I think SLAAC's /64 limit functions as a "trojan horse" forcing ISPs to give everyone at least 64 bits of address space. Most would allocate /112-/128 per customer if it were slightly easier. Designing the internet with lots of unused space at the edges will probably be useful in 100 years.

Regardless of the /64 limit, I expect DHCPv6 will win out in the consumer side (with ISPs giving customers pre-configured wifi routers with DHCPv6 already configured). SLAAC is both very complicated, and its privacy extensions are anyway not something ISPs have been friendly to even if it weren't such an extra hassle.

> and its privacy extensions are anyway not something ISPs have been friendly to

That is an argument for forcing ISPs to support SLAAC, so it's difficult to bill a customer based on the number of devices in their home. ISP-friendly often means user-hostile.

If ISPs can deploy device-counting DHCPv6, then router manufacturers will respond with IPv6 NAT, and then the IPv6 landscape will be as shitty as IPv4.

Re: Enabling IPv6 support for IPv4-only apps on Linux

#127
post #119

Earlier quoted context omitted.

Possibly never, because security. NAT at least tries to hide insecure IoT device on your grandma's wifi. shodan.io has support for ipv6. With ipv4 you're somewhat restricted to devices that get public ip (corporate networks) or devices that drill a hole (uPnP/port forward). IPv6 devices are publicly visible by default and you need to manually setup firewall to filter this out (not trivial - especially for UDP and ICM…

Every firewall I’ve dealt with since forever has default deny on inbound traffic, state full allow for outbound connections. Regardless of NAT or not, and regardless of how cheap it is.

Name one vendor? I can name you 3 that don't. Zyxel, Ubiquiti, Mikrotik. Also anything wrt based (eg. dd-wrt).

In fact one of the warnings on dd-wrt official IPv6 tutorial: """ Keep in mind it can be dangerous to enable IPv6 without also having a firewall on each client that handles IPv6 packets, or having ip6tables on your router to filter incoming connections. ip6tables is NOT included by default with DD-WRT, which means your clients will be directly exposed to the Internet once you have enabled IPv6. """

Re: Enabling IPv6 support for IPv4-only apps on Linux

#128
post #86

Discord hardcodes ipv4 addresses and will not work for webrtc calls in DNS64 setup. In 2023 I consider it an insult to the internet as a whole.

I'm of the opinion that IPv6 is old enough that the fact we have not hopped to it yet means its not happening anytime soon. I wanted it back in 2008 when I first learned about it, and I know its older than that (90s iirc) so its either going to come one day "abruptly" by force and break half the internet, or people will do hacks to maintain IPv4 as is. I think the only way IPv6 will ever become mainstream is if eithe…

40-45% of Google traffic uses IPv6. If you are in the US, your mobile traffic is probably IPv6. At home, your ISP likely supports IPv6, you can get by enabling on router or upgrading router.

The problem areas are with hosting and corporate networks. The Google numbers are smaller during the week as people use IPv4-only corporate networks.

Re: Enabling IPv6 support for IPv4-only apps on Linux

#129
post #96

Earlier quoted context omitted.

Yeah, we need more incentive. Ipv6 is harder to implement yes, it is true, there is no point in denying this and arguing it solves tons of problem (it does). Most companies have ipv4 experience and it's just simpler. There must be some political pressure to make it move. But "hopefully" the economical pressure is starting to build up, a lot of providers are cheaper in ipv6 only configuration. Still, for a company lik…

Plenty of big sites have no AAAA record even

It can be easily sorted out with DNS64 and NAT64: https://pavel.network/building-gateway-to-access-legacy-ipv4...

Re: Enabling IPv6 support for IPv4-only apps on Linux

#130

"To prove that IPv6 is ready for production use, I built a second PC so I can access the IPv4 Internet"

In home network single $70 USD device with 2 daemons running may be clearly too much but for corporate or even office network it's just one more box in addition to dozens of network devices.
Post reply on HN