ipvfoo icon indicating copy to clipboard operation
ipvfoo copied to clipboard

NAT64/DNS64 shows up as IPv6

Open GoogleCodeExporter opened this issue 9 years ago • 11 comments

What steps will reproduce the problem?
1. Set up network with IPv6 only and NAT64/DNS64 for reaching IPv4 internets
2. Load some sites with just A records
3. Profit!

It would be nice if the plugin would de-synthesize NAT64 and show it as IPv4 
connections. Now EVERYTHING shows up as IPv6 here. Sort of but not really 
misleading, though very annoying ;-)

Application/OS level NAT64 detection is kinda up in the air at the IETF still I 
think, but desynthesizing the "well known" NAT64 prefix 64:ff9b::/96 back into 
displaying as IPv4 would help a lot, even if its just changing the icons back.

Original issue reported on code.google.com by trippehh on 6 Oct 2012 at 10:18

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

Does your NAT64 actually use the 64:ff9b::/96 prefix?  I could tag that as IPv4 
trivially, but allowing arbitrary prefixes would require a configuration page, 
and an address/subnet parser.

Original comment by [email protected] on 6 Oct 2012 at 10:34

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

1.0.17 now labels the "64:ff9b::" prefix as IPv4.

Original comment by [email protected] on 6 Oct 2012 at 11:16

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

Another alternative is to do detect the prefix by looking up a known A only DNS 
record and derive the prefix from the generated AAAA. This too adds quite a bit 
of complexity for an small simple addon I guess. Then again just flagging 
64:ff9b::/96 should take care of the majority of cases.

The new release seems to work fine here, now IPv4 sites gets flagged red/4. 
Thanks!

Original comment by trippehh on 7 Oct 2012 at 10:42

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

There is now a known host in DNS for this purpose: ipv4only.arpa. If you get an AAAA back from this, you know you're behind NAT64.

IPvFox had this functionality before it went unmaintained: https://github.com/Dagger0/IPvFox/commit/4dd97947e0e6ef8296c5321354ea2e9ea41bffb1 Dunno if any of that code can be repurposed into a WebExtension.

nivex avatar Oct 28 '17 17:10 nivex

I don't think it's possible for a Chrome extension to use ipv4only.arpa; there is no DNS API.

Though it would be possible to have a button on the Options page send a query to https://ipv4.google.com/some_dummy_page, and extract the IP address.

pmarks-net avatar Oct 28 '17 18:10 pmarks-net

Does your NAT64 actually use the 64:ff9b::/96 prefix?  I could tag that as IPv4 
trivially, but allowing arbitrary prefixes would require a configuration page, 
and an address/subnet parser.

Actually it would be nice if there was an option to define arbitrary prefixes. Some people use public accessible NAT64 gateways, which obviously have to use a publicly routed prefix.

treysis avatar Nov 17 '19 19:11 treysis

To chime in here: while technically being in an IPv6 only network means that you always connect via IPv6 (!), I understand the original motivation. However, I also argue that it should not be displayed as IPv4, but there should be an indication of NAT6, f.i. a "6+4" or "64" or whatever icon fits best to indicate that you are actually using both at the same time.

Besides that: even without a DNS API, does the HTTP (?) API not contain the source IP address of an answer? If that was the case, you can just access ipv4only.arpa or/and ipv4.google.com and check whether the protocol is IPv6.

telmich avatar Aug 19 '20 08:08 telmich

How about "(4)" (4 in brackets)? Or a green 4, or a red 6?

treysis avatar Aug 19 '20 09:08 treysis

How about "(4)" (4 in brackets)? Or a green 4, or a red 6?

All three of them sound sensible to me

telmich avatar Aug 19 '20 10:08 telmich