Tuesday, February 1, 2011

Enabling IPv6 Privacy Extensions on Ubuntu Linux

On plain Ubuntu (and probably other Linux variants), the right hand part of the IPv6 address is based on your MAC address. As your MAC address is fixed and worldwide unique, you can be traced around the (IPv6) world based on your IPv6 (containing your MAC address). And often this is not wanted.

There's a solution for this called "IPv6 Privacy Extensions". It will give you semi-random IPv6 address, that will be changed regularly. The result is less tracking and more privacy.

Here's how to enable IPv6 Privacy Extensions on Ubuntu and probably other Linux variants:

As root, edit the file /etc/sysctl.conf, for example:

gksudo gedit /etc/sysctl.conf

In that file, add these lines:

net.ipv6.conf.wlan0.use_tempaddr = 2
net.ipv6.conf.eth0.use_tempaddr = 2
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2

Save the file and exit the editor. Then reload your network, or just reboot.
(BTW: the above lines are based on interface eth0 and wlan0)

After the reboot, ifconfig will now show a second public IPv6 address on interface(s) that used to have only one public IPv6 address. On http://www.appelboor.com/ipv6.html and http://test-ipv6.com/ you should your new, "private" public IPv6 address.

Monday, January 31, 2011

Android 2.2 does IPv6, and ... answers ping's

Interesting: A HTC Wildfire with Android 2.2:
  • does IPv6 when it's provided via RADVD on a Wireless LAN
  • ... answers ping6-messages
Here's a dump from the webserver's logfile, and then a ping6 to that IPv6 address of the Android:

2001:838:3ba:a:baab:bbbb:aaaa:b - - [31/Jan/2011:23:46:21 +0100] "GET / HTTP/1.1" 200 1173 "" "Mozilla/5.0 (Linux; U; Android 2.2.1; nl-nl; HTC_Wildfire_A3333 Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

2001:838:3ba:a:baab:bbbb:aaaa:b - - [31/Jan/2011:23:46:22 +0100] "GET /favicon.ico HTTP/1.1" 200 5686 "http://www6.appelboor.com/" "Mozilla/5.0 (Linux; U; Android 2.2.1; nl-nl; HTC_Wildfire_A3333 Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"



sander@vadmin648:~$ ping6 2001:838:3ba:a:baab:bbbb:aaaa:b
PING 2001:838:3ba:a:baab:bbbb:aaaa:b(2001:838:3ba:a:baab:bbbb:aaaa:b) 56 data bytes
64 bytes from 2001:838:3ba:a:baab:bbbb:aaaa:b: icmp_seq=1 ttl=52 time=1516 ms
64 bytes from 2001:838:3ba:a:baab:bbbb:aaaa:b: icmp_seq=2 ttl=52 time=516 ms
64 bytes from 2001:838:3ba:a:baab:bbbb:aaaa:b: icmp_seq=3 ttl=52 time=404 ms
64 bytes from 2001:838:3ba:a:baab:bbbb:aaaa:b: icmp_seq=4 ttl=52 time=296 ms
64 bytes from 2001:838:3ba:a:baab:bbbb:aaaa:b: icmp_seq=5 ttl=52 time=300 ms
^C
--- 2001:838:3ba:a:baab:bbbb:aaaa:b ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4012ms
rtt min/avg/max/mdev = 296.000/606.400/1516.000/461.895 ms, pipe 2
sander@vadmin648:~$ 


I think it would be better if the device would not ping back.

(FYI: the public IPv6 address has been changed for privacy reasons)

Tuesday, November 23, 2010

Googlebot is visiting my website via IPv6

Interesting: Googlebot is visiting my website via IPv6:


2001:4860:4801:1303:0:6006:1300:b075 - - [22/Nov/2010:16:46:21 +0100] "GET /newsserver.txt HTTP/1.1" 200 1966 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
2001:4860:4801:1402:0:6006:1300:b075 - - [23/Nov/2010:04:49:22 +0100] "GET /robots.txt HTTP/1.1" 200 26 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
2001:4860:4801:1402:0:6006:1300:b075 - - [23/Nov/2010:04:49:23 +0100] "GET /mmm/bla.txt HTTP/1.1" 200 5911 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

Note the two different IPv6 source addresses:

2001:4860:4801:1303:0:6006:1300:b075
2001:4860:4801:1402:0:6006:1300:b075


I wonder how Google handles the information found on IPv6-only websites. Will Google reveal IPv6-only websites via ipv6.google.com?


Friday, October 1, 2010

IPv6 test sites

Here's an overview of sites that can test your IPv6 connectivity and give a bit more information than "you're connecting over ...":

  • http://www.appelboor.com/ipv6.html hard core IPv6-test site, no frills, links to a nice iGoogle Gadget "IPv6 Checker"
  • http://test-ipv6.com/ beautiful IPv6-test site which does see Teredo IPv6 connectivity on Windows Vista and Windows 7, but strangely enough awards 0 points for that
  • http://ipv6-test.com/ beautiful IPv6-test site, including a speed test, but does not see any Teredo IPv6 connectivity on Windows Vista and Windows 7
  • iGoogle Gadget "IPv6 Checker" is here : runs embedded in your iGoogle (www.google.com/ig). Shows details about your IPv6, including Teredo and name resolving

HTH

Saturday, August 21, 2010

iGoogle Gadget to check your IPv6 address and connectivity

If you use iGoogle and you want to know your IPv6 connectivity, here is a gadget to report your IPv6 address and IPv6 network connectivity.

See the screendump for an example output.

It works for all operatings systems (Windows, Linux, Mac OS X, iPhone, iPad, Android, etc) and all browsers able to view iGoogle.


Or just click the button below to add this gadget to your iGoogle:


Add to iGoogle

Cool: iPhone OS 4 does IPv6 (on an IPv6 enabled Wifi network)

Cool: Apparently iPhone OS 4 does IPv6 too, as I found this entry in my webserver log file: 

2620:0:da0:4003:6233:bbbb:fedb:aaaa - - [20/Aug/2010:18:00:01 +0200] "GET /set-ipv6resolving.js HTTP/1.1" 200 21 "http://www.appelboor.com/ipv6.html" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0_2 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A400 Safari/6531.22.7"

(IPv6 address changed a bit for privacy reasons).

The IPv6 address is from Louisiana State University, so it's not IPv6 over UMTS/GSM or something like that; it's probably an iPhone on a University Wifi network doing IPv6, visiting http://www.appelboor.com/ipv6.html to check his/her IPv6 connectivity.