Issue #2290
Android client hangs when connection kicked by server
Description
Steps to reproduce:
1) Set up strongswan 5.5.1 server on a linux machine
2) Install strongSwan-1.8.2.apk on Huawei P6 phone with stock Android 4.4.2 firmware
3) Connect to the server using "IKEv2 Certificate" connection type
4) On the server run `swanctl --terminate --ike-id 42`, where 42 is IKE_SA id (can be viewed by `swanctl --list-sas`)
What happens:
1) The client reports a disconnection event, but the TUN adapter isn't properly closed
2) Android still displays VPN connection active
3) There is no way to kill the VPN connection by application nor using Android controls except rebooting the phone
4) Strongswan client can't make VPN connections anymore, because TUN adapter is busy
5) Other VPN applications (OpenVPN, etc) can't set up a connection too
Logs:
1) Strongswan client hangs on my phone when I try to view the log, that's why I can't post it here :(
Related issues
History
#1 Updated by Tobias Brunner over 8 years ago
- Category set to android
- Status changed from New to Feedback
2) Install strongSwan-1.8.2.apk on Huawei P6 phone with stock Android 4.4.2 firmware
Please refer to #462.
1) Strongswan client hangs on my phone when I try to view the log, that's why I can't post it here :(
Not sure what that's about. What exactly happens?
#2 Updated by Sviatoslav Mikhailov over 8 years ago
#3 Updated by Tobias Brunner over 8 years ago
- Status changed from Feedback to Closed
- Assignee set to Tobias Brunner
- Resolution set to Duplicate
Please refer to #462.
Not sure if this bug is related. There are different problems described.
If you disconnect from the server the client will reconnect, but that will cause it to create a new overlapping TUN device, which does not work with Android 4.4.2 (see the issues related to the one above). I'm closing this as duplicate.
#4 Updated by Tobias Brunner over 8 years ago
- Is duplicate of Issue #668: TUN overlapping in Android 4.4.2 added