[GH-ISSUE #345] 苹果 6s IPSec 无法上网 #320

Closed
opened 2026-03-02 08:01:20 +03:00 by kerem · 5 comments
Owner

Originally created by @ax2009live on GitHub (Feb 11, 2023).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/345

安卓机 L2TP/IPSec PSK 连接,上网正常; IPSec Xauth PSK 连接,上网正常;

苹果 6s
L2TP 连接失败,无法拨入 VPN,
IKEv2 因需要下载证书,未测试
IPSec 连接成功,ip 192.168.43.10,但无法上网,
只能 ping 通本机的 ip,无法 ping 通外部的 ip,排除了 DNS 问题,说明就是不能连接外网;

Originally created by @ax2009live on GitHub (Feb 11, 2023). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/345 安卓机 L2TP/IPSec PSK 连接,上网正常; IPSec Xauth PSK 连接,上网正常; 苹果 6s L2TP 连接失败,无法拨入 VPN, IKEv2 因需要下载证书,未测试 IPSec 连接成功,ip 192.168.43.10,但无法上网, 只能 ping 通本机的 ip,无法 ping 通外部的 ip,排除了 DNS 问题,说明就是不能连接外网;
kerem closed this issue 2026-03-02 08:01:20 +03:00
Author
Owner

@ax2009live commented on GitHub (Feb 11, 2023):

不过上不上都没什么用了,因为服务器的 500 4500 端口很快被 GFW 封了!再不折腾 V-P-N 这个东西了
GFW 如再进一步,会封锁 IP,所有非常通用的翻墙方法,尽量不要用,封 ip 就痛苦了;

<!-- gh-comment-id:1426565685 --> @ax2009live commented on GitHub (Feb 11, 2023): 不过上不上都没什么用了,因为服务器的 500 4500 端口很快被 GFW 封了!再不折腾 V-P-N 这个东西了 GFW 如再进一步,会封锁 IP,所有非常通用的翻墙方法,尽量不要用,封 ip 就痛苦了;
Author
Owner

@hwdsl2 commented on GitHub (Feb 11, 2023):

@ax2009live 你好!IPsec VPN 较容易被屏蔽或干扰。对于这个用例,可以另外尝试比如 Shadowsocks。

<!-- gh-comment-id:1426606546 --> @hwdsl2 commented on GitHub (Feb 11, 2023): @ax2009live 你好!IPsec VPN 较容易被屏蔽或干扰。对于这个用例,可以另外尝试比如 Shadowsocks。
Author
Owner

@ax2009live commented on GitHub (Feb 11, 2023):

iphone 连接上去上不了网 ,能提示怎么处理吗?
( 虽然外网容易被封,但墙内的主机用这个方法建立vpn是ok的 )
image

<!-- gh-comment-id:1426684165 --> @ax2009live commented on GitHub (Feb 11, 2023): iphone 连接上去上不了网 ,能提示怎么处理吗? ( 虽然外网容易被封,但墙内的主机用这个方法建立vpn是ok的 ) ![image](https://user-images.githubusercontent.com/41521020/218252480-0018e01f-cc13-4010-8ece-0ac6e6dafa2c.png)
Author
Owner

@ax2009live commented on GitHub (Feb 11, 2023):

VPN_SHA2_TRUNCBUG=yes

刚才测试了,只要 vpn.env 加上上面这句,iPhone 6s 拨号上去后上不了网;去掉就可以了;不考虑安卓 7以下的版本

<!-- gh-comment-id:1426695089 --> @ax2009live commented on GitHub (Feb 11, 2023): VPN_SHA2_TRUNCBUG=yes 刚才测试了,只要 vpn.env 加上上面这句,iPhone 6s 拨号上去后上不了网;去掉就可以了;不考虑安卓 7以下的版本
Author
Owner

@hwdsl2 commented on GitHub (Feb 12, 2023):

@ax2009live 感谢你的分享。VPN_SHA2_TRUNCBUG=yes 一般不需要添加,仅对于安卓版本 6 和 7 有用。

<!-- gh-comment-id:1426917816 --> @hwdsl2 commented on GitHub (Feb 12, 2023): @ax2009live 感谢你的分享。`VPN_SHA2_TRUNCBUG=yes` 一般不需要添加,仅对于安卓版本 6 和 7 有用。
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#320
No description provided.