• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Promblem with connecting to IKEV2 vpn server from android devices

thecriser

Lurker
Dec 26, 2022
3
0
Hello
We are facing problem with connecting android devices to our VPN server.
Also iOS devices do not have any problems to connect.
Android devices trying to connect via StrongSwan official app from google play. And iOS from system settings.
VPN server based on StrongSwan+Charon
We tried to make a dump from vpn server and found the difference between successful and unsuccessful connections
- In success: server receives SPI key, and respond with Responder SPI key and connection successful
- In failure: server receives SPI key, but respond with empty Responder SPI key and connection failure with "INVALID_KE_PAYLOAD" error

Screenshot of success server response (connecting from iOS device):
https://i.stack.imgur.com/uXiq5.jpg

Screenshot of failure server response (connecting from Android device):
https://i.stack.imgur.com/6yUsz.jpg

Also dump files .pcap we also have for failure and success connections, if it will help to suggest solution
We do not know how to fix this, maybe you can help us with this problem, or say what we need to read?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones