can't connect from android phone
OS / Environment
AWS
Ansible version
ansible 2.3.2.0
config file = /xxx/xxx/vpn/algo-master/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
Summary of the problem
vpn would never work on my linux machine till I change to fragmentation=no at /etc/ipsec.conf.
I want now to run it on my android and Iphone, which both fails to work.
note: I am using rooted ROM lineage
The way of deployment (cloud or local)
cloud
Expected behavior
after I configure strongSwan , android connect to the vpn server
Actual behavior
after I configure strongSwan, it never connects
Full log from openswam
<!--- Put here the FULL LOG after you run the ./algo script -->
Sep 23 20:31:40 00[DMN] Starting IKE charon daemon (strongSwan 5.6.0, Android 7.1.2 - lineage_i9300-userdebug 7.1.2 NJH47F b208df88ae/2017-08-05, GT-I9300 - samsung/m0xx/samsung, Linux 3.0.101-lineage-gfa8fa33, armv7l)
Sep 23 20:31:41 00[LIB] loaded plugins: androidbridge charon android-log openssl fips-prf random nonce pubkey chapoly curve25519 pkcs1 pkcs8 pem xcbc hmac socket-default revocation eap-identity eap-mschapv2 eap-md5 eap-gtc eap-tls x509
Sep 23 20:31:41 00[JOB] spawning 16 worker threads
Sep 23 20:31:41 07[CFG] loaded user certificate 'CN=xxx' and private key
Sep 23 20:31:41 07[CFG] loaded CA certificate 'CN=Xxx.Xxx.Xxx.xxx'
Sep 23 20:31:42 07[IKE] initiating IKE_SA android[1] to Xxx.Xxx.Xxx.xxx
Sep 23 20:31:42 07[ENC] generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ]
Sep 23 20:31:42 07[NET] sending packet: from 192.168.1.3[47910] to Xxx.Xxx.Xxx.xxx[4] (746 bytes)
Sep 23 20:31:44 10[IKE] retransmit 1 of request with message ID 0
Sep 23 20:31:44 10[NET] sending packet: from 192.168.1.3[47910] to Xxx.Xxx.Xxx.xxx[4] (746 bytes)
Sep 23 20:31:46 11[IKE] retransmit 2 of request with message ID 0
Sep 23 20:31:46 11[NET] sending packet: from 192.168.1.3[47910] to Xxx.Xxx.Xxx.xxx[4] (746 bytes)
Sep 23 20:31:50 12[IKE] retransmit 3 of request with message ID 0
Sep 23 20:31:50 12[NET] sending packet: from 192.168.1.3[47910] to Xxx.Xxx.Xxx.xxx[4] (746 bytes)
Sep 23 20:31:56 13[IKE] giving up after 3 retransmits
Sep 23 20:31:56 13[IKE] peer not responding, trying again (2/0)
Sep 23 20:31:56 13[IKE] initiating IKE_SA android[1] to Xxx.Xxx.Xxx.xxx
Sep 23 20:31:56 13[ENC] generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ]
Sep 23 20:31:56 13[NET] sending packet: from 192.168.1.3[47910] to Xxx.Xxx.Xxx.xxx[4] (746 bytes)
Sep 23 20:31:56 15[IKE] destroying IKE_SA in state CONNECTING without notification
What happens if you use another provider, like DigitalOcean? Are you using the strongSwan app on your Android phone? It won't work through the normal VPN.
@dguido I didn't try any other providers , I said I am using strongSwan and I also posted the logs in my issue post
@Abdelsalam-Abbas have you figured out a solution? I am facing the exact same issue.
@iSsO No, I didn't.
I think it may be related to blocking made by my ISP, are you by any chance living in Egypt?
@iSsO Luckily yes!
This sounds like it is outside of my control. If your entire country universally blocks IPSEC then there is not much we can do with the current version of Algo.