Hi,<br><br>I installed and build strongswan on my Android device and I have been trying to switch my device between 2 WLANs requiring tunnel setup on WLAN_2 but not on WLAN_1. Following diagram explains my setup. Generally the transition is smooth between the WLANs but occasionally, I encounter some mobike related issues while switching from WLAN_1 to WLAN_2.<br>

<br><font><font>Android device: StrongSwan client. Configuring the virtual IP in ipsec.conf as 192.168.3.3<br>
AP: WLAN_1: subnet <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a>: for which traffic needs to go in clear text<br>
AP: WLAN_2: subnet <a href="http://192.168.3.0/24" target="_blank">192.168.3.0/24</a>: for which traffic needs to be encrypted<br>
StrongSwan server: IP 192.168.1.154</font></font><br>Traffic: ICMP packets to server 192.168.1.154<br><br> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZgAAADhCAIAAAB6AzS/AAANaElEQVR4nO3dMbqjuBKGYTbIPlgES2AF3oBz546dknZI6Mw74AZMc2kEQoCEqorvDeY5jWVQQfFbdp9xFz0AKFfkngAAnEWQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQSVFYkftE4o5oOylsRICNKqAObSeFjQiwUQXUoe2ksBEBNqqAOrSdFDYiwEYVUIe2k8JGBNioAurQdlLYiAAbVUAd2k6KtQgYtrdtWxRF27bjlun46aPDQ13XefZZVVXUuc9nC1yMtpNiLQLquv79fs+/fr9fXdez8Y/Ho2max+Mx7mqIqsV9Pp/PdHFDkCEL2k6KtQhomqbruqqqfr9fVVVd1zVNMxtfluXv9yvLctxVVVXDMm3Xsc4jyJAFbSfFWgQ8Ho+2bYdVWF3XbdsOK69xfNd142/Vj+8o27atqoogw03QdlKsRcD7/a7r+vV69X3/fD6rqnq/39Pxr9fr8/n0ff/5fIZhw0MEGe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xFg2etNL3i/sXR2nJs8enu4TbHL26J5UYNJ5+Z+99MISEWi3XzK0qQ+Z++uC4L3Kdn5v5phI/3HPS8GzWcfCku8+xF8hq3DTJPdhwOss311ObPISuyvdm6t6jFg0Z0o4aTz8z9b6aQEG4iTF82PO/LZsPcHbrPXXxN8sfT4mLNHbm4c88kA2v3j49IX8PtOhchrxJySJ7bLmYKCZS6XhvnM2kV+k5Q+Onwv/4IpGKSIcwUEi56ycVE3D1nkTzrk+49hbXV8uKSfhwTuErPS9RkzjBTCLTQ13DuJwj9yuLLs1HmYk3OTE4yUwi00Ndwax8lukvxwCCTQ+asDjBTCLTQ13D+nNocQJBdwEwh0EJfw23mFG8tszNTCLTQ13Dux/Zr2/3LND7sT8dMIdCChhPEzP1vphBoQcMJUhiS+1ziXmg4AOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVCPIAOgHkEGQD2CDIB6BBkA9QgyAOoRZADUI8gAqEeQAVDvf8u540tdiHhmAAAAAElFTkSuQmCC" alt=""><br>

<br>To make it possible I used the following ipsec.conf at device:<br><font size="1"><br></font><div style="margin-left:80px"><font size="1">config setup<br></font><font size="1">      plutostart=no<br></font><font size="1">      charondebug="knl 3, cfg 2, ike 2, chd 2, mgr 2, dmn 2"<br>

</font><font size="1">      <br></font><font size="1">conn %default<br></font><font size="1">        ikelifetime=60m<br></font><font size="1">        keylife=20m<br></font><font size="1">        keyexchange=ikev2<br></font><font size="1">        <i><b>installpolicy=no<br>

</b></i></font><i><b><font size="1">        reauth=no<br></font></b></i><font size="1"><i><b>        </b></i><br></font><font size="1">conn android<br></font><font size="1">      left=%any<br></font><font size="1">      leftid="abc"<br>
</font><font size="1">      leftauth=eap<br>
</font><font size="1">      leftsourceip=192.168.3.3<br></font><font size="1">      eap_identity=deepika<br></font><font size="1">      right=192.168.1.154<br></font><font size="1">      rightid=192.168.1.154<br></font><font size="1">      rightauth=pubkey                                <br>
</font><font size="1">      reqid=1 <br></font><font size="1">      auto=route<br><br></font></div>I am manually adding security policies using:<br><br><font><font>ip xfrm policy add dir out src <a href="http://192.168.3.3/32" target="_blank">192.168.3.3/32</a> dst <a href="http://192.168.1.154/32" target="_blank">192.168.1.154/32</a> proto
 any priority 1000 tmpl src 192.168.3.3 dst 192.168.1.154 proto esp mode
 tunnel reqid 1 level required<br>
ip xfrm policy add dir in src <a href="http://192.168.1.154/32" target="_blank">192.168.1.154/32</a> dst <a href="http://192.168.3.3/32" target="_blank">192.168.3.3/32</a> proto 
any priority 1000 tmpl src 192.168.1.154 dst 192.168.3.3 proto esp mode 
tunnel reqid 1 level required<br>
ip xfrm policy add dir fwd src <a href="http://192.168.1.154/32" target="_blank">192.168.1.154/32</a> dst <a href="http://192.168.3.3/32" target="_blank">192.168.3.3/32</a> proto
 any priority 1000 tmpl src 192.168.1.154 dst 192.168.3.3 proto esp mode
 tunnel reqid 1 level required</font></font> <br><br>Following are the logs of a successful transition from WLAN_1 to WLAN_2::<br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>05-09 15:15:36.531: INFO/charon(16016): 03[KNL] 192.168.2.221 disappeared from wlan0<br>
05-09 15:15:36.539: INFO/charon(16016): 03[KNL] fe80::a20b:baff:fec3:cf31 disappeared from wlan0<br>05-09 15:15:36.632: INFO/charon(16016): 14[IKE] old path is not available anymore, try to find another<br>05-09 15:15:36.632: INFO/charon(16016): 14[IKE] no route found to reach 192.168.1.154, MOBIKE update deferred<br>
05-09 15:15:40.312: INFO/charon(16016): 03[KNL] 192.168.3.3 appeared on wlan0<br>05-09 15:15:40.406: INFO/charon(16016): 09[IKE] old path is not available anymore, try to find another<br>05-09 15:15:40.406: INFO/charon(16016): 09[IKE] <b>requesting address change using MOBIKE</b><br>
05-09 15:15:40.406: INFO/charon(16016): 09[ENC] generating INFORMATIONAL request 63 [ ]<br>05-09 15:15:40.414: INFO/charon(16016): 09[IKE] checking original path 192.168.3.3[4500] - 192.168.1.154[4500]<br>05-09 15:15:40.414: INFO/charon(16016): 09[NET] sending packet: from 192.168.3.3[4500] to 192.168.1.154[4500]<br>
05-09 15:15:40.429: INFO/charon(16016): 13[NET] received packet: from 192.168.1.154[4500] to 192.168.3.3[4500]<br>05-09 15:15:40.429: INFO/charon(16016): 13[ENC] parsed INFORMATIONAL response 63 [ ]<br>05-09 15:15:40.460: INFO/charon(16016): 02[KNL] <b>creating acquire job for policy <a href="http://192.168.3.3/32[1/8]">192.168.3.3/32[1/8]</a> === <a href="http://192.168.1.154/32[1]">192.168.1.154/32[1]</a> with reqid {1}</b><br>
05-09 15:15:40.500: INFO/charon(16016): 03[KNL] fe80::a20b:baff:fec3:cf31 appeared on wlan0<br>05-09 15:15:40.601: INFO/charon(16016): 13[ENC] generating INFORMATIONAL request 64 [ N(UPD_SA_ADDR) N(NATD_S_IP) N(NATD_D_IP) N(COOKIE2) N(NO_ADD_ADDR) ]<br>
05-09 15:15:40.601: INFO/charon(16016): 13[NET] sending packet: from 192.168.3.3[4500] to 192.168.1.154[4500]<br>05-09 15:15:40.617: INFO/charon(16016): 08[IKE] sending address list update using MOBIKE<br>05-09 15:15:40.750: INFO/charon(16016): 15[NET] received packet: from 192.168.1.154[4500] to 192.168.3.3[4500]<br>
05-09 15:15:40.750: INFO/charon(16016): 15[ENC] parsed INFORMATIONAL response 64 [ N(NATD_S_IP) N(NATD_D_IP) N(COOKIE2) ]<br>05-09 15:15:40.750: INFO/charon(16016): 15[IKE] establishing CHILD_SA android{1}<br>05-09 15:15:40.765: INFO/charon(16016): 15[ENC] generating CREATE_CHILD_SA request 65 [ SA No TSi TSr ]<br>
05-09 15:15:40.765: INFO/charon(16016): 15[NET] sending packet: from 192.168.3.3[4500] to 192.168.1.154[4500]<br>05-09 15:15:41.046: INFO/charon(16016): 14[NET] received packet: from 192.168.1.154[4500] to 192.168.3.3[4500]<br>
05-09 15:15:41.046: INFO/charon(16016): 14[ENC] parsed CREATE_CHILD_SA response 65 [ SA No TSi TSr ]<br>05-09 15:15:41.085: INFO/charon(16016): 14[IKE] CHILD_SA android{1} established with SPIs cd7bd6f2_i c2f459fa_o and TS <a href="http://192.168.3.3/32">192.168.3.3/32</a> === <a href="http://192.168.1.154/32">192.168.1.154/32</a> <br>
05-09 15:15:41.085: INFO/charon(16016): 14[ENC] generating INFORMATIONAL request 66 [ N(NO_ADD_ADDR) ]<br>05-09 15:15:41.085: INFO/charon(16016): 14[NET] sending packet: from 192.168.3.3[4500] to 192.168.1.154[4500]<br>05-09 15:15:41.195: INFO/charon(16016): 10[NET] received packet: from 192.168.1.154[4500] to 192.168.3.3[4500]<br>
05-09 15:15:41.195: INFO/charon(16016): 10[ENC] parsed INFORMATIONAL response 66 [ ]<br><br>================================================================================<br><br>Following are the logs of a unsuccessful transition from WLAN_1 to WLAN_2 (traffic halts in this case)::<br>
<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>05-09 15:16:55.843: INFO/charon(16016): 03[KNL] 192.168.2.221 disappeared from wlan0<br>05-09 15:16:55.851: INFO/charon(16016): 03[KNL] fe80::a20b:baff:fec3:cf31 disappeared from wlan0<br>
05-09 15:16:55.945: INFO/charon(16016): 10[IKE] old path is not available anymore, try to find another<br>05-09 15:16:55.945: INFO/charon(16016): 10[IKE] no route found to reach 192.168.1.154, MOBIKE update deferred<br>05-09 15:16:56.187: INFO/charon(16016): 13[IKE] sending keep alive<br>
05-09 15:16:56.187: INFO/charon(16016): 13[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:16:56.187: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:16:59.429: INFO/charon(16016): 03[KNL] fe80::a20b:baff:fec3:cf31 appeared on wlan0<br>
05-09 15:16:59.531: INFO/charon(16016): 07[IKE] old path is not available anymore, try to find another<br>05-09 15:16:59.531: INFO/charon(16016): 07[IKE] <b>no route found to reach 192.168.1.154, MOBIKE update deferred</b><br>
05-09 15:16:59.546: INFO/charon(16016): 03[KNL] 192.168.3.3 appeared on wlan0<br>05-09 15:16:59.609: INFO/charon(16016): 02[KNL] <b>creating acquire job for policy <a href="http://192.168.3.3/32[1/8]">192.168.3.3/32[1/8]</a> === <a href="http://192.168.1.154/32[1]">192.168.1.154/32[1]</a> with reqid {1}</b><br>
05-09 15:16:59.609: INFO/charon(16016): 08[IKE] establishing CHILD_SA android{1}<br>05-09 15:16:59.625: INFO/charon(16016): 08[ENC] generating CREATE_CHILD_SA request 70 [ SA No TSi TSr ]<br>05-09 15:16:59.632: INFO/charon(16016): 08[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>
05-09 15:16:59.632: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:16:59.640: INFO/charon(16016): 16[IKE] old path is not available anymore, try to find another<br>05-09 15:16:59.640: INFO/charon(16016): 16[IKE] requesting address change using MOBIKE<br>
05-09 15:17:00.023: INFO/charon(16016): 15[IKE] old path is not available anymore, try to find another<br>05-09 15:17:00.023: INFO/charon(16016): 15[IKE] requesting address change using MOBIKE<br>05-09 15:17:03.640: INFO/charon(16016): 09[IKE] retransmit 1 of request with message ID 70<br>
05-09 15:17:03.640: INFO/charon(16016): 09[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:17:03.640: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:17:10.843: INFO/charon(16016): 10[IKE] retransmit 2 of request with message ID 70<br>
05-09 15:17:10.843: INFO/charon(16016): 10[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:17:10.843: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:17:23.804: INFO/charon(16016): 12[IKE] retransmit 3 of request with message ID 70<br>
05-09 15:17:23.804: INFO/charon(16016): 12[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:17:23.804: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:17:44.210: INFO/charon(16016): 08[IKE] sending keep alive<br>
05-09 15:17:44.210: INFO/charon(16016): 08[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:17:44.218: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:17:47.140: INFO/charon(16016): 14[IKE] retransmit 4 of request with message ID 70<br>
05-09 15:17:47.140: INFO/charon(16016): 14[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:17:47.140: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:18:07.234: INFO/charon(16016): 11[IKE] sending keep alive<br>
05-09 15:18:07.234: INFO/charon(16016): 11[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:18:07.234: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:18:27.250: INFO/charon(16016): 15[IKE] sending keep alive<br>
05-09 15:18:27.250: INFO/charon(16016): 15[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:18:27.257: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:18:29.125: INFO/charon(16016): 09[IKE] retransmit 5 of request with message ID 70<br>
05-09 15:18:29.125: INFO/charon(16016): 09[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:18:29.125: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:18:49.281: INFO/charon(16016): 13[IKE] sending keep alive<br>
05-09 15:18:49.281: INFO/charon(16016): 13[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:18:49.281: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>05-09 15:19:01.656: INFO/charon(16016): 02[KNL] creating rekey job for ESP CHILD_SA with SPI cf645ae7 and reqid {1}<br>
05-09 15:19:09.289: INFO/charon(16016): 07[IKE] sending keep alive<br>05-09 15:19:09.289: INFO/charon(16016): 07[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:19:09.289: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>
05-09 15:19:29.304: INFO/charon(16016): 08[IKE] sending keep alive<br>05-09 15:19:29.304: INFO/charon(16016): 08[NET] sending packet: from 192.168.2.221[4500] to 192.168.1.154[4500]<br>05-09 15:19:29.304: INFO/charon(16016): 05[NET] error writing to socket: Invalid argument<br>
05-09 15:19:30.757: INFO/charon(16016): 02[KNL] creating rekey job for ESP CHILD_SA with SPI c2f459fa and reqid {1}<br>05-09 15:19:44.632: INFO/charon(16016): 02[KNL] creating delete job for ESP CHILD_SA with SPI cae8bd23 and reqid {1}<br>
05-09 15:19:44.718: INFO/charon(16016): 11[IKE] giving up after 5 retransmits<br>05-09 15:19:44.718: INFO/charon(16016): 11[KNL] received netlink error: No such process (3)<br>05-09 15:19:44.718: INFO/charon(16016): 11[KNL] unable to delete SAD entry with SPI cae8bd23<br>
05-09 15:19:44.750: INFO/charon(16016): 03[KNL] 192.168.3.3 disappeared from wlan0<br>===================================================================================<br><br>From the logs it can be inferred that in successful case, mobike successfully updates the address before charon tries to acquire job for policy to set up new SAs.However, in unsuccessful case address update through mobike could not take place before charon tries to acquire job for policy. It seems like some race condition is occurring.<br>
Has anybody else encountered the similar problem? Any solution to this?<br><br>Thanks and regards,<br>Nitin<br><br>