Iphone connects but Android Fails?
-
- Posts: 2
- Joined: Wed Apr 08, 2015 3:22 am
Iphone connects but Android Fails?
I have a softether vpn server, and I can connect with openVPN, the softether client, and the built in Iphone client, but when I try to connect with Android, it doesn't work, and this is using the same exact settings as the Iphone that does connect, i double checked, and both options are checked in l2tp, and etherip is enabled, what am I missing? anyone have some ideas what it could be?
-
- Posts: 2
- Joined: Wed Apr 08, 2015 3:22 am
Re: Iphone connects but Android Fails?
below is the script used to create my servers, you can see each step, the only thing I do after this is edit the config file to disable dynamic dns and azure, i enable l2tp settings as well.
#!/usr/bin/expect -f
spawn ssh "serverhostname"
expect "password:"
send "rootpassword\r"
expect "#"
send "apt-get install build-essential -y\r"
expect "\[Y/n\]?"
send "y\r"
sleep "25"
expect "#"
send "apt-get install gcc-4.6-base cpp-4.6 libgomp1 libquadmath0 libc6-dev\r"
expect "\[Y/n\]?"
send "y\r"
sleep "25"
expect "#"
send "apt-get install make\r"
sleep "5"
expect "?"
send "y\r"
sleep "15"
expect "#"
sleep "5"
send "wget http://www.softether-download.com/files ... t.tar.gz\r"
sleep "15"
expect "#"
sleep "5"
send "tar -xzvf softether-vpnserver-v4.14-9529-beta-2015.02.02-linux-x64-64bit.tar.gz\r"
expect "#"
send "cd vpnserver\r"
expect "#"
send "make\r"
sleep "5"
expect "number:"
send "1\r"
sleep "5"
expect "number:"
send "1\r"
sleep "5"
expect "number:"
send "1\r"
sleep "5"
expect "#"
send "cd ..\r"
expect "#"
send "mv vpnserver /usr/local\r"
expect "#"
send "cd /usr/local/vpnserver/\r"
expect "#"
send "chmod 600 *\r"
expect "#"
send "chmod 700 vpnserver\r"
expect "#"
send "chmod 700 vpncmd\r"
expect "#"
send "wget http://pastebin.com/raw.php?i=RAm7191q\r"
sleep "5"
expect "#"
send "mv raw.php?i=RAm7191q /etc/init.d/vpnserver\r"
sleep "5"
expect "#"
send "mkdir /var/lock/subsys\r"
expect "#"
send "chmod 755 /etc/init.d/vpnserver\r"
expect "#"
send "/etc/init.d/vpnserver start\r"
expect "#"
send "update-rc.d vpnserver defaults\r"
expect "#"
send "./vpnserver start\r"
expect "#"
send "./vpncmd\r"
sleep "5"
expect "3:"
send "1\r"
expect "Destination:"
send "\r"
expect "Name:"
send "\r"
expect ">"
send "ServerPasswordSet\r"
expect "Password:"
send "serverpass\r"
expect "Confirm input:"
send "serverpass\r"
expect "Server>"
send "HubCreate VHUBname\r"
expect "Password:"
send "hubpassword\r"
expect "Confirm input:"
send "hubpassword\r"
expect "Server>"
send "Hub VHUBname\r"
expect "VPN Server/VHUBname>"
send "SecureNatEnable\r"
expect "VPN Server/VHUBname>"
send "UserCreate n0d3m0n\r"
expect "Assigned Group Name:"
send "\r"
expect "User Full Name:"
send "\r"
expect "User Description:"
send "\r"
expect "VPN Server/VHUBname>"
send "UserPasswordSet\r"
expect "User Name:"
send "newuser\r"
expect "Password:"
send "userpassword\r"
expect "Confirm input:"
send "userpassword\r"
expect "VPN Server/PatriotVPN>"
send "IPsecEnable\r"
expect "*(yes / no):"
send "yes\r"
expect "*(yes / no):"
send "no\r"
expect "*(yes / no):"
send "yes\r"
expect "*maximum):"
send "PatriotVPN\r"
expect "*Username:"
send "PatriotVPN\r"
expect ">"
send "ServerCertRegenerate \[CN]\r"
expect ">"
send "SstpEnable yes\r"
expect ">"
send "OpenVpnEnable yes /PORTS:1194\r"
expect ">"
send "OpenVpnMakeConfig ~/my_openvpn_config.zip\r"
expect ">"
send "exit\r"
expect "#"
send "apt-get install apache2\r"
expect "?"
send "Y\r"
sleep "15"
expect "#"
send "mkdir /var/www/client\r"
expect "#"
send "cp ~/my_openvpn_config.zip /var/www/client/\r"
expect "#"
#!/usr/bin/expect -f
spawn ssh "serverhostname"
expect "password:"
send "rootpassword\r"
expect "#"
send "apt-get install build-essential -y\r"
expect "\[Y/n\]?"
send "y\r"
sleep "25"
expect "#"
send "apt-get install gcc-4.6-base cpp-4.6 libgomp1 libquadmath0 libc6-dev\r"
expect "\[Y/n\]?"
send "y\r"
sleep "25"
expect "#"
send "apt-get install make\r"
sleep "5"
expect "?"
send "y\r"
sleep "15"
expect "#"
sleep "5"
send "wget http://www.softether-download.com/files ... t.tar.gz\r"
sleep "15"
expect "#"
sleep "5"
send "tar -xzvf softether-vpnserver-v4.14-9529-beta-2015.02.02-linux-x64-64bit.tar.gz\r"
expect "#"
send "cd vpnserver\r"
expect "#"
send "make\r"
sleep "5"
expect "number:"
send "1\r"
sleep "5"
expect "number:"
send "1\r"
sleep "5"
expect "number:"
send "1\r"
sleep "5"
expect "#"
send "cd ..\r"
expect "#"
send "mv vpnserver /usr/local\r"
expect "#"
send "cd /usr/local/vpnserver/\r"
expect "#"
send "chmod 600 *\r"
expect "#"
send "chmod 700 vpnserver\r"
expect "#"
send "chmod 700 vpncmd\r"
expect "#"
send "wget http://pastebin.com/raw.php?i=RAm7191q\r"
sleep "5"
expect "#"
send "mv raw.php?i=RAm7191q /etc/init.d/vpnserver\r"
sleep "5"
expect "#"
send "mkdir /var/lock/subsys\r"
expect "#"
send "chmod 755 /etc/init.d/vpnserver\r"
expect "#"
send "/etc/init.d/vpnserver start\r"
expect "#"
send "update-rc.d vpnserver defaults\r"
expect "#"
send "./vpnserver start\r"
expect "#"
send "./vpncmd\r"
sleep "5"
expect "3:"
send "1\r"
expect "Destination:"
send "\r"
expect "Name:"
send "\r"
expect ">"
send "ServerPasswordSet\r"
expect "Password:"
send "serverpass\r"
expect "Confirm input:"
send "serverpass\r"
expect "Server>"
send "HubCreate VHUBname\r"
expect "Password:"
send "hubpassword\r"
expect "Confirm input:"
send "hubpassword\r"
expect "Server>"
send "Hub VHUBname\r"
expect "VPN Server/VHUBname>"
send "SecureNatEnable\r"
expect "VPN Server/VHUBname>"
send "UserCreate n0d3m0n\r"
expect "Assigned Group Name:"
send "\r"
expect "User Full Name:"
send "\r"
expect "User Description:"
send "\r"
expect "VPN Server/VHUBname>"
send "UserPasswordSet\r"
expect "User Name:"
send "newuser\r"
expect "Password:"
send "userpassword\r"
expect "Confirm input:"
send "userpassword\r"
expect "VPN Server/PatriotVPN>"
send "IPsecEnable\r"
expect "*(yes / no):"
send "yes\r"
expect "*(yes / no):"
send "no\r"
expect "*(yes / no):"
send "yes\r"
expect "*maximum):"
send "PatriotVPN\r"
expect "*Username:"
send "PatriotVPN\r"
expect ">"
send "ServerCertRegenerate \[CN]\r"
expect ">"
send "SstpEnable yes\r"
expect ">"
send "OpenVpnEnable yes /PORTS:1194\r"
expect ">"
send "OpenVpnMakeConfig ~/my_openvpn_config.zip\r"
expect ">"
send "exit\r"
expect "#"
send "apt-get install apache2\r"
expect "?"
send "Y\r"
sleep "15"
expect "#"
send "mkdir /var/www/client\r"
expect "#"
send "cp ~/my_openvpn_config.zip /var/www/client/\r"
expect "#"
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Iphone connects but Android Fails?
What version Android do you use?
Some versions have broken VPN function.
Some versions have broken VPN function.