VPN on Android 4.0 (Ice Cream Sandwich)

snakey147
Posts: 21
Joined: Tue Sep 20, 2011 2:37 am

VPN on Android 4.0 (Ice Cream Sandwich)

Postby snakey147 » Fri Dec 23, 2011 3:32 am

I can report that the IPSec VPN works great with Android 4.0 out of the box, provided you are connected over Wifi -there seems to be a bug in Android which causes it to reboot the phone when connected over a 3G connection. This has been logged with Google.

I will attempt to post some screenshots on setting it up if I get chance over the holidays. The settings you need to use are IPSec Xauth PSK.

cheers
Rich
HP Proliant Microserver running ESXi 5.0 with Amahi 6.2 on Ubuntu 12.04 LTS.

snakey147
Posts: 21
Joined: Tue Sep 20, 2011 2:37 am

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby snakey147 » Tue Apr 03, 2012 7:16 am

The issue with access over 3G networks has been resolved in the 4.0.3 and later updates of Android. :D

Instructions for setting it up can be found in the Wiki here
HP Proliant Microserver running ESXi 5.0 with Amahi 6.2 on Ubuntu 12.04 LTS.

aadriar
Posts: 4
Joined: Sun Apr 29, 2012 5:56 am

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby aadriar » Mon Apr 30, 2012 4:59 am

I'm trying to connect my HDA with VPN using Android 4.0.3

when i try to connect my phone say(connecting) and after 5 second (failed)

if i try with wrong parameter (pasword or key or username) after 1 minute the phone say(monitor shuting down)

I check a lot of time the parameters and the port fowarding of router.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby bigfoot65 » Mon Apr 30, 2012 6:00 am

Hello,

I presume you have installed the IPsec VPN application. Please check the wiki guidance to ensure you have everything set up correctly.

http://wiki.amahi.org/index.php/IPsec_VPN
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

aadriar
Posts: 4
Joined: Sun Apr 29, 2012 5:56 am

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby aadriar » Mon Apr 30, 2012 11:38 am

Yes; i follow the wiki for Android.

Name: Amahi IPsec VPN
Type: IPSec Xaut PSK
Server Address: MyNick (the username to access amahi.org).yourhda.com
IPsec identifier: Amahi (it's the Group Name in my http://ipsec-vpn.home.com/)
IPsec pre-shared key: (it's the secret code in my http://ipsec-vpn.home.com/)

Username = HDA user
password = HDA password

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby bigfoot65 » Mon Apr 30, 2012 1:57 pm

I wonder if you have the issue mentioned at the beginning of this thread. I am using IPsec/L2TP myself as I do not have Android 4.0 currently and it works fine.

http://wiki.amahi.org/index.php/IPSEC/L2TP_VPN_Server
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

aadriar
Posts: 4
Joined: Sun Apr 29, 2012 5:56 am

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby aadriar » Tue May 01, 2012 6:19 am

Ok i'm trying follow the (IPSEC/L2TP VPN Server) wiki.

i got this error when i arrive to this point
bash code
sysctl -p​

[root@localhost ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.ip_forward = 1
net.ipv4.conf.default.accept_redirects = 0
error: "Invalid argument" setting key "net.ipv4.conf.default.send_redirects"

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby bigfoot65 » Tue May 01, 2012 6:26 am

I presume you are doing copy and paste. Ensure you check the files good for hidden special characters. Sometimes the wiki embeds them.

You can also try running dos2unix (I think that is the name) command as root on the files as well. It usually strips out the special characters.

If that does not help, recommend you double check all that you have done so far.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

aadriar
Posts: 4
Joined: Sun Apr 29, 2012 5:56 am

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby aadriar » Thu May 03, 2012 2:54 pm

Ok the problem i told before it's solved.
Was the special caracters :)

But still not working.

I checked more times the wiki procedure.

​- sysctl -p​ (no error)
- ipsec verify​ (all green except SAref kernel support (N/A) and Opportunistic Encryption (DISABLED))
- ​service xl2tpd start​ (no error)

It's possible there it's some limitation from the phone company ??
I'm from Italy and i'm using (TRE) company

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: VPN on Android 4.0 (Ice Cream Sandwich)

Postby bigfoot65 » Thu May 03, 2012 4:04 pm

Sounds like everything with install went fine. It is possible that your ISP is blocking the ports. Without them being accessible, you cannot access the server.

Might wanna check that out.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 22 guests