Page 1 of 1
VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Fri Dec 23, 2011 3:32 am
by snakey147
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
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Tue Apr 03, 2012 7:16 am
by snakey147
The issue with access over 3G networks has been resolved in the 4.0.3 and later updates of Android.
Instructions for setting it up can be found in the Wiki
here
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Mon Apr 30, 2012 4:59 am
by aadriar
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.
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Mon Apr 30, 2012 6:00 am
by bigfoot65
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
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Mon Apr 30, 2012 11:38 am
by aadriar
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
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Mon Apr 30, 2012 1:57 pm
by bigfoot65
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
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Tue May 01, 2012 6:19 am
by aadriar
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"
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Tue May 01, 2012 6:26 am
by bigfoot65
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.
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Thu May 03, 2012 2:54 pm
by aadriar
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
Re: VPN on Android 4.0 (Ice Cream Sandwich)
Posted: Thu May 03, 2012 4:04 pm
by bigfoot65
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.