TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Enabling IPv6 support for IPv4 only apps on Linux

95 pointsby pavel_odintsovabout 2 years ago

11 comments

jacob019about 2 years ago
Indeed, the transition to IPv6-only networks is a timely and important step, and this is an interesting approach. In my opinion, NAT64 in combination with DNS64 presents the most practical solution for home networks. This approach can be fully implemented by consumer routers, eliminating the need for any changes to client devices. If router manufacturers were to make NAT64 with DNS64 a default feature or, at the very least, an easily selectable option, it would significantly advance our progress toward widespread adoption of IPv6-only networks.
评论 #35775354 未加载
评论 #35777071 未加载
darkhelmetabout 2 years ago
Meanwhile, one of the most annoying holdouts on the service side is github.com - I&#x27;ve had a collection of v6-only systems for years and github seems to be the one recurring thing that requires bolting on kludge of some sort.<p>Come on github! It&#x27;s not that hard!
评论 #35776789 未加载
csdvrxabout 2 years ago
Using LD_PRELOAD for IPv4 seems to me like using the wrong tool for the job.<p>&gt; &quot;Most of the apps I use support IPv6 but there are some cases when lack of IPv4 connectivity on my machine negatively affects experience.&quot;<p>Just install clatd to get 464XLAT so hardcoded ipv4 get routed to 192.0.0.1 (the clat iface is the default gw for ipv4) which does NAT64 through tayga too.<p>IMHO the best strategy is a mix of strategies:<p>- 1. Clatd doing 464XLAT (RFC 6877) so:<p>- 1.1 Stateful protocol translation (RFC 6146) at CG-NAT64<p>- 1.2 Stateless protocol translation (RFC 6145) at the UE<p>- 2. DNS64 (RFC 6147) mechanisms at the DNS server returning padded AAAA for A only entries<p>- 3. IPv4 embedding into IPv6 addresses (RFC 6052 section 2.2)<p>Suggested reading: <a href="https:&#x2F;&#x2F;www.apnic.net&#x2F;wp-content&#x2F;uploads&#x2F;2017&#x2F;01&#x2F;IPv6_Migration_Strategies_for_Mobile_Networks_Whitepaper.pdf" rel="nofollow">https:&#x2F;&#x2F;www.apnic.net&#x2F;wp-content&#x2F;uploads&#x2F;2017&#x2F;01&#x2F;IPv6_Migrat...</a>
评论 #35777336 未加载
realidabout 2 years ago
Kinda sad that <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;</a> is still only available via legacy IPv4. Any idea who could fix this and enable IPv6 on this site?
评论 #35779333 未加载
loegabout 2 years ago
Still wondering when my IPv4-only ISP will consider starting to offer IPv6 service.
评论 #35776548 未加载
评论 #35783697 未加载
Faaakabout 2 years ago
The tnat tool is quite clever. I previously ran a IPv6 only infrastructure and it worked really well, except for some &quot;old&quot; applications written in C which only handled IPv4. Which I had known of this hack.
评论 #35776720 未加载
genpfaultabout 2 years ago
&gt; Luckily for us Linux provides exceptionally easy way to intercept some specific library functions using simple dynamically linked library: LD_PRELOAD<p>Doesn&#x27;t LD_PRELOAD only work for non-statically linked executables?
评论 #35775366 未加载
评论 #35775919 未加载
fghorowabout 2 years ago
Honest question:<p>Does anybody have experience with this behind an ISP CGNAT network that provides IPV6 as well? I&#x27;m getting worn down from trying to deal with CGNAT and IPv4 for my homelab...
评论 #35775906 未加载
idatumabout 2 years ago
OpenBSD, with PF and Unbound, has excellent NAT64&#x2F;DNS64 support. Unfortunately, my ISP is still IPv4, but with HE tunnel broker I can at least experiment with an IPv6 only VLAN. Works great on all clients I tested: Windows, Debian, and *BSDs.<p>BTW, my ISP has been promising a &#x2F;60 for many months now. Apparently, it&#x27;s about their &quot;provisioning software&quot; they inherited. Huh, equipment less of a concern in this case.
homeroabout 2 years ago
Doesn&#x27;t xlat do this?
评论 #35775936 未加载
评论 #35775091 未加载
narutowindyabout 2 years ago
Very interesting 🤔
评论 #35775874 未加载