[GH-ISSUE #321] IKEV2安卓,苹果客户端问题 #299

Closed
opened 2026-03-02 08:01:11 +03:00 by kerem · 1 comment
Owner

Originally created by @ksong008 on GitHub (Nov 12, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/321

使用 ikev2.sh --addclient,建立了两个用户,一个iphone用,一个一加手机安卓13.0用,碰到的问题是:如果iphone先连接了ikev2,会导致后连的安卓无法连接,但是安卓先连接了,iphone后连没有问题。一加手机是安装了p12证书,然后用的内置vpn客户端连接。不清楚是不是个体问题。

看了下日志会出现
2022-11-12T08:09:25.621758+00:00 ipsec-vpn-server pluto[1482]: "ikev2-cp"[1] 192.168.2.10 #4: X509: authentication failed; peer ID_DER_ASN1_DN 'O=IKEv2 VPN,CN=xxx' does not match expected 'CN=zzzz, O=IKEv2 VPN'
认证不符合的问题,前面的cn=xxx是安卓用户名,后面的cn=zzz是vpnclinetname

Originally created by @ksong008 on GitHub (Nov 12, 2022). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/321 使用 ikev2.sh --addclient,建立了两个用户,一个iphone用,一个一加手机安卓13.0用,碰到的问题是:如果iphone先连接了ikev2,会导致后连的安卓无法连接,但是安卓先连接了,iphone后连没有问题。一加手机是安装了p12证书,然后用的内置vpn客户端连接。不清楚是不是个体问题。 看了下日志会出现 2022-11-12T08:09:25.621758+00:00 ipsec-vpn-server pluto[1482]: "ikev2-cp"[1] 192.168.2.10 #4: X509: authentication failed; peer ID_DER_ASN1_DN 'O=IKEv2 VPN,CN=xxx' does not match expected 'CN=zzzz, O=IKEv2 VPN' 认证不符合的问题,前面的cn=xxx是安卓用户名,后面的cn=zzz是vpnclinetname
kerem closed this issue 2026-03-02 08:01:11 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Nov 12, 2022):

@ksong008 你好!这个可能是 Libreswan 的 bug,之前我测试时也遇到过类似问题。建议你到 https://github.com/libreswan/libreswan 开一个 Issue 问一下。先搜索一下已有的Issue。

<!-- gh-comment-id:1312590031 --> @hwdsl2 commented on GitHub (Nov 12, 2022): @ksong008 你好!这个可能是 Libreswan 的 bug,之前我测试时也遇到过类似问题。建议你到 https://github.com/libreswan/libreswan 开一个 Issue 问一下。先搜索一下已有的Issue。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#299
No description provided.