{"id":448,"date":"2009-05-04T15:05:59","date_gmt":"2009-05-04T14:05:59","guid":{"rendered":"http:\/\/wp.devco.net\/?p=448"},"modified":"2011-03-09T12:08:07","modified_gmt":"2011-03-09T11:08:07","slug":"sixxs_ipv6_and_centos","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2009\/05\/04\/sixxs_ipv6_and_centos.php","title":{"rendered":"SixXS IPv6 and CentOS"},"content":{"rendered":"

I thought its high time I get to spend some time with IPv6 so I signed up for a static tunnel from sixxs.net, apart from taking some time it\u2019s a fairly painless process to get going.<\/p>\n

I chose a static tunnel since I am just 9ms from one of their brokers and my machine is up all the time anyway, they have some docs on how to get RedHat machines talking to them but it was not particularly accurate, this is what I did:<\/p>\n

You\u2019ll get a mail from them listing your details, something like this:<\/p>\n

<\/p>\n

\r\nTunnel Id \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: T21201\u2028\u00a0\u00a0\r\nPoP Name \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : dedus01 (de.speedpartner [AS34225])\u2028\u00a0\u00a0\r\nYour Location \u00a0 \u00a0 \u00a0: Gunzenhausen, de\u2028\u00a0\u00a0\r\nSixXS IPv6 \u00a0 \u00a0 \u00a0 \u00a0 : 2a01:x:x:x::1\/64\u2028\u00a0\u00a0\r\nYour IPv6 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: 2a01:x:x:x::2\/64\u2028\u00a0\u00a0\r\nSixXS IPv4 \u00a0 \u00a0 \u00a0 \u00a0 : 91.184.37.98\u2028\u00a0\u00a0\r\nTunnel Type \u00a0 \u00a0 \u00a0 \u00a0: Static (Proto-41)\u2028\u00a0\u00a0\r\nYour IPv4 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: 78.x.x.x\r\n<\/pre>\n

<\/code><\/p>\n

Using this you can now configure your CentOS machine to bring the tunnel up, you need to edit these files:<\/p>\n

\/etc\/sysconfig\/network:<\/p>\n

<\/p>\n

\r\nNETWORKING_IPV6=yes\r\nIPV6_DEFAULTDEV=sit1\r\n<\/pre>\n

<\/code><\/p>\n

\/etc\/sysconfig\/network-scripts\/ifcfg-sit1<\/p>\n

<\/p>\n

\r\nDEVICE=sit1\r\nBOOTPROTO=none\r\nONBOOT=yes\r\nIPV6INIT=yes\r\nIPV6_TUNNELNAME=\u201dsixxs\u201d\r\nIPV6TUNNELIPV4=\u201d91.184.37.98\u2033\r\nIPV6TUNNELIPV4LOCAL=\u201d78.x.x.x\u201d\r\nIPV6ADDR=\u201d2a01:x:x:x::2\/64\u2033\r\nIPV6_MTU=\u201d1280\u2033\r\nTYPE=sit\r\n<\/pre>\n

<\/code><\/p>\n

Just replace the values from your email into the files above, once you have this in place reboot or restart your networking and you should see something like this:<\/p>\n

<\/p>\n

\r\nsit1      Link encap:IPv6-in-IPv4  \r\n          inet6 addr: 2a01:x:x:x::2\/64 Scope:Global\r\n          inet6 addr: fe80::4e2f:c3c6\/128 Scope:Link\r\n          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1\r\n          RX packets:9796 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7301 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0 \r\n          RX bytes:7181061 (6.8 MiB)  TX bytes:1277642 (1.2 MiB)\r\n<\/pre>\n

<\/code><\/p>\n

<\/p>\n

\r\n% ping6 -c 3 -n noc.sixxs.net\r\nPING noc.sixxs.net(2001:838:1:1:210:dcff:fe20:7c7c) 56 data bytes\r\n64 bytes from 2001:838:1:1:210:dcff:fe20:7c7c: icmp_seq=0 ttl=57 time=20.2 ms\r\n64 bytes from 2001:838:1:1:210:dcff:fe20:7c7c: icmp_seq=1 ttl=57 time=28.4 ms\r\n64 bytes from 2001:838:1:1:210:dcff:fe20:7c7c: icmp_seq=2 ttl=57 time=20.1 ms\r\n\u2014 noc.sixxs.net ping statistics \u2014\r\n\u20283 packets transmitted, 3 received, 0% packet loss, time 2008ms\r\n\u2028rtt min\/avg\/max\/mdev = 20.181\/22.934\/28.406\/3.869 ms, pipe 2\r\n<\/pre>\n

<\/code><\/p>\n

Since this is a remote machine it took me some time to figure out how to get browsing going through it, but once I reconnected my SSH SOCKS tunnel it immediately became IPv6 aware and were happily routing me to sites like ipv6.google.com.\u00a0 To do this just run from your desktop:<\/p>\n

<\/p>\n

\r\nssh -D 1080 yourbox.net\r\n<\/pre>\n

<\/code><\/p>\n

Now set your firefox network.proxy.socks_remote_dns setting to true in about:config, and point your browser at localhost:1080 as a socks proxy, your SSH should now work as a perfectly effective ipv4-to-6 gateway.\u00a0 You can test it by browsing to either the sixxs.net homepage or ipv6.google.com \u2013 watch out for the special google logo.<\/p>\n","protected":false},"excerpt":{"rendered":"

I thought its high time I get to spend some time with IPv6 so I signed up for a static tunnel from sixxs.net, apart from taking some time it\u2019s a fairly painless process to get going. I chose a static tunnel since I am just 9ms from one of their brokers and my machine is […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[6,5],"tags":[31,19,26],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/448"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=448"}],"version-history":[{"count":4,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"predecessor-version":[{"id":1958,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/448\/revisions\/1958"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}