Reply
Thread Tools
Posts: 53 | Thanked: 40 times | Joined on May 2009 @ Brooksville, Florida
#1
T-Mobile's new IPv6 APN has a different NAT64 subnet: fd01:353:dead:beef:face::/96
I've updated nat64d with this and built a replacement for myself. I'm posting it here in case anyone else needs it. Note that I compiled this natively on my N900's hardfp GCC 4.5 Gentoo install, and I make no guarantees that it's binary-compatible with Maemo (though it seems to work for me in Maemo too), or really ANY guarantees AT ALL. ie, no warranty, standard disclaimer.

Don't forget to "Thank" me

nat64d is under the Apache 2.0 license. Changes made to source follow:
Code:
diff -r 2f869feb1fda tun/nat64d.h
--- a/tun/nat64d.h      Sat Dec 10 12:05:38 2011 -0600
+++ b/tun/nat64d.h      Sun Dec 18 16:10:33 2011 -0500
@@ -27,10 +27,10 @@
 // 10.255.255.0/24
 #define IPV4_LOCAL_SUBNET 0x0affff00
 
-// 2607:fb90:beef:feed::/96
-#define IPV6_NAT64_SUBNET_1 0x2607fb90
-#define IPV6_NAT64_SUBNET_2 0xbeeffeed
-#define IPV6_NAT64_SUBNET_3 0x0
+// fd01:353:dead:beef:face::/96
+#define IPV6_NAT64_SUBNET_1 0xfd010353
+#define IPV6_NAT64_SUBNET_2 0xdeadbeef
+#define IPV6_NAT64_SUBNET_3 0xface0000
 #define IPV6_NAT64_SUBNET_4 0x0
 
 #endif /* __NAT64D_H__ */
Attached Files
File Type: zip nat64d.zip (8.0 KB, 59 views)

Last edited by Luke-Jr; 12-18-2011 at 10:31 PM.
 

The Following 6 Users Say Thank You to Luke-Jr For This Useful Post:
Posts: 290 | Thanked: 122 times | Joined on Aug 2009
#2
Wow, this fixed my problems, thanks a lot!
 

The Following User Says Thank You to Radu For This Useful Post:
Posts: 4,027 | Thanked: 1,615 times | Joined on Jul 2007 @ nd usa
#3
Hi, everybody, happy new year!

Radu: What has been fixed? Does your skype work? and nokia map? I already have the previous nat64 installed, everything works except skype and nokia map? How do I use this new nat64d?

Tia,
 
Posts: 14 | Thanked: 3 times | Joined on May 2010
#4
Originally Posted by bunanson View Post
Hi, everybody, happy new year!

Radu: What has been fixed? Does your skype work? and nokia map? I already have the previous nat64 installed, everything works except skype and nokia map? How do I use this new nat64d?

Tia,
Took me a few minutes to figure out how to fix this too...I figured it out from the fact that the nat64d file in the zip showed as green (executable) in ls, and then from looking at the /etc/network/if-up.d/nat64-up script and realizing that was the name of the executable it calls.

All you do is replace /usr/sbin/nat64d with the one from the zipfile.

Lo and behold, TheOneRing and my SIP account will connect through TMo again.

{off-topic}Maybe for an encore I'll take another crack at figuring out why sharing that connection with an Android device never would work for me...I'm trying to resist temptation and hold off on trying to set up a Power Kernel/Nemo/NITDroid triple boot until there are instructions I understand for using NITDroid with U-Boot...{/off-topic}
 
Posts: 1,141 | Thanked: 775 times | Joined on Dec 2009 @ Magical Unicorn Land
#5
IPv6 is now in the production network (epc.tmobile.com) with new nat64 settings:

Code:
// fd00:976a:c000:59c4::/96
#define IPV6_NAT64_SUBNET_1 0xfd00976a
#define IPV6_NAT64_SUBNET_2 0xc00059c4
#define IPV6_NAT64_SUBNET_3 0x0
#define IPV6_NAT64_SUBNET_4 0x0
attached is the updated nat64d, unzip it and replace the one in /usr/sbin with this version (be sure it is set executable) and reconnect to the GPRSv6.
Attached Files
File Type: zip nat64d.zip (8.1 KB, 36 views)
 

The Following User Says Thank You to stlpaul For This Useful Post:
Posts: 14 | Thanked: 3 times | Joined on May 2010
#6
Which version (if any) should be the right settings for the epc-etcetera connection?
 
Posts: 1,141 | Thanked: 775 times | Joined on Dec 2009 @ Magical Unicorn Land
#7
It seems that the t-mobile nat64 subnet changes, I don't think having it hardcoded into nat64d is a workable solution anymore. I'm working on backporting the automatic subnet and mtu detection from android clat which itself was based onthe n900 nat64d so the code is similar. I will post an update here if I get it working!
 
Posts: 1,141 | Thanked: 775 times | Joined on Dec 2009 @ Magical Unicorn Land
#8
Attached please find the modified nat64d binary + source code patch. It auto-detects your NAT64 subnet, so it should work for t-mobile or any other ipv6-only connection that supports NAT64. It is an ugly hack job but it works for me.

Please note the hostname it uses to detect is ipv4.google.com -- if you have a mobile operator or government who blocks or intercepts google traffic, this may cause it not to work. In that case edit the source code and change the define PLAT_FROM_DNS64_HOSTNAME in nat64d.h to some other host that only has an IPv4 IP and not IPv6.

You must have already installed the nat64d package from:
https://code.google.com/p/n900ipv6/wiki/Nat64D

then copy my new nat64d into /usr/sbin/ and reconnect to your IPv6 GPRS access point. Original source code can be downloaded from the above page as well.

Subnet autodetection code was taken from android clat whose source code is available here:
https://github.com/ddrown/android_external_android-clat

A full port of android-clat would probably be best, since it includes many small fixes and improvements over the maemo version of nat64d, but it is beyond my skills or time limit.
Attached Files
File Type: zip nat64d-modified-auto-subnet.zip (12.3 KB, 19 views)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 08:50 PM.