VPNC to FritzBox works!!!!

86 posts
Thanks Meter: 8
By mp1405, Member on 5th September 2010, 11:25 AM
Post Reply Email Thread
YES with this patched vpnc you can connect from a rooted desire (or any other android device) to your AVM fritzbox with the original firmware. The included vpnc-script will help to fix the routing problems.

You need a rooted Android device with an tun.ko module

First setup your fritzbox like the iphone setup which is described at the avm portal (google-> "avm iphone vpn")

Install signed-FritzBox.apk to your phone.

Setup now your vpnc-gui and be happy.


Some detailed infos how to connect the Fritzbox with IPSEC via VPNC:

1.) you must use a IKE_ATTRIB_LIFE_DURATION = 3600 (seconds)
2.) you must use draft-ietf-ipsec-nat-t-ike-03

the original vpnc uses a IKE_ATTRIB_LIFE_DURATION with 2147483 (seconds) and only uses draft-ietf-ipsec-nat-t-ike-00 -> 02.

I change the timing to 3600 (seconds) and change the transformset 02 to 03.

Timing -> find in vpnc 000020C49B and change it to 0000000E10 (2x)
Transformset -> find in vpnc CD60464335DF21F87CFDB2FC68B6A448 and change it to 7D9419A65310CA6F2C179D9215529D56 (1x)

By the way these patch will help any vpnc user on every linux (i tested this with ubuntu and it works perfect)

update 20.12.2010

New APK to install on a rooted Android device. After installing you can connet via IPSEC VPN to a cisco device and to the FritzBox with the latest Firmware without modifying the FritzBox

For all who wants to use the FritzPhone App to make phonecalls via vpnc this will not work because the app did not use the 3G interface (only wlan). Download the app "3cx" from the market and in the setup menu "integration" you will find "Enable 3G", thats all.
Attached Files
File Type: apk signed-myVPNC.apk - [Click for QR Code] (411.5 KB, 10163 views)
The Following 3 Users Say Thank You to mp1405 For This Useful Post: [ View ] Gift mp1405 Ad-Free
23rd December 2010, 11:48 PM |#2  
Olli80's Avatar
Thanks Meter: 1
Hi there!

Really nice one but I'm getting a forced closed when I push the connect button.

I'm using a SE X10 with android 2.1.........

Sometimes I hate my phone.......
25th December 2010, 10:51 AM |#3  
OP Member
Thanks Meter: 8
Merry Christmas.

Is your Device rooted and had the vpnc the exec permissions ?

Please install "Quick System Info" and check the loginfos via the Logcat.

Maybe in your Kernel the tun.ko is missing.
25th December 2010, 02:17 PM |#4  
Junior Member
Thanks Meter: 0


Thanks for the signed-FritzBox.apk. I finally got it running on my Samsung I9000 Froyo XXJPU and Fritzbox 7390

First I had also the FC because the tun.ko was missing. Now it works but but I have to load the kernel module every reboot in the konsole with insmod /system/lib/modules/tun.ko

I edited the file /init.rc with the line insmod /system/lib/modules/tun.ko but every reboot a "recovery" init.rc is loaded without my insmod line. There was also the tip to copy the tun.ko into /lib/modules/tun.ko but the tun.ko gets deleted after every reboot.

Kind regards
28th December 2010, 01:27 PM |#5  
BeNeDeLuX's Avatar
Thanks Meter: 30
Thanks for your work and time for this patched Version.

For my understanding:
IPSec ID is what ? My e-Mailadress from the FritzboxConfig ?
IPSec Secret is the Passphrase ?
Is this correct ?

28th December 2010, 01:45 PM |#6  
Junior Member
Thanks Meter: 0

IPSec ID: Yes, your e-Mailadress from the FritzboxConfig (it is the entry "user_fqdn" which you have to replace with "key_id" in the config.

IPSec Secret: Is the Passphrase (also named Pre-Shared Key or just "key") in the Fritzbox Configs.
29th December 2010, 09:12 AM |#7  
BeNeDeLuX's Avatar
Thanks Meter: 30
Perfect! It works with the correct tun.ko
Thanks @all and mp1405 for this patched Version.
2nd January 2011, 08:36 PM |#8  
Flag Nürnberg
Thanks Meter: 0
my fritzbox said The import of the VPN-Settings faild.
And I did it twice exactly with the iphone settings.
anyone else with that kind of problem?
I'm using Fritzbox 7270 fon with the latest firmware.

2nd January 2011, 10:39 PM |#9  
Junior Member
Thanks Meter: 0
have the same problem with 7270, every cfg that is "toucht" with any editor. dosnt work.
Im kontakted the avm support and wait to the answer.


PS. Sorry for my bad english
2nd January 2011, 10:57 PM |#10  
Senior Member
Thanks Meter: 0
Thanks for the apk and the howto,
I've done everything as described, but I get always following (log) message :
D/VPN_Connections( 5436): process stderr: no response from target
3rd January 2011, 02:07 PM |#11  
Junior Member
Thanks Meter: 0

Hi Sky, where You have found the right tun.ko?

Thanks for a hint.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes