mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #426] 添加VPN_ANDROID_MTU_FIX=yes,安卓11设备连接L2TP/IPSec PSK仍只能ping通外网,不能访问网站 #397
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ENEN-YIN on GitHub (Apr 24, 2024).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/426
任务列表
问题描述
安卓11设备,IPsec Xauth PSK、L2TP/IPSec PSK可以连接,未添加VPN_ANDROID_MTU_FIX=yes前,只能ping通外网都不能访问网站;
添加VPN_ANDROID_MTU_FIX=yes后,IPsec Xauth PSK正常访问网站,L2TP/IPSec PSK仍只能ping通外网不能访问网站。
重现步骤
重现该 bug 的步骤:
1.docker配置文件vpn.env
2.bash
期待的正确结果
L2TP/IPSec PSK 连接后能正常访问网站
日志
启用日志,检查 VPN 状态,并且添加错误日志以帮助解释该问题(如果适用)。
服务器信息(请填写以下信息)
客户端信息(请填写以下信息)
其它信息
添加关于该 bug 的其它信息。
@hwdsl2 commented on GitHub (Apr 24, 2024):
@ENEN-YIN 你好!感谢你提供详细的错误报告。
VPN_ANDROID_MTU_FIX=yes的解决方案有其局限性,主要适用于 IPsec/XAuth ("Cisco IPsec") 和 IKEv2 模式。对于 IPsec/L2TP 模式,目前该问题并没有较好的解决方案。你可以编辑容器内的/opt/src/run.sh并尝试调整 mtu 和 mru 的值(当前为 1280),然后重启容器以生效。该方法不一定有效,你可以试一下。请参见:
github.com/hwdsl2/docker-ipsec-vpn-server@b8c056a823/run.sh (L594-L606)github.com/hwdsl2/docker-ipsec-vpn-server@b8c056a823/run.sh (L479-L480)@ENEN-YIN commented on GitHub (Apr 25, 2024):
好的,感谢解答