mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-27 10:35:53 +03:00
[GH-ISSUE #296] VPN客户侧登录后不能访问谷歌的问题 #275
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 @hedahong on GitHub (Jun 10, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/296
VPN客户侧登录后不能访问谷歌的问题
问题描述
我发现 我的VPN客户侧,vpn连接后(无论window10 还是iPhone 拨VPN),不能访问谷歌(宿主机可以),进一步排查,发现 docker容器内系统 根本就没法访问谷歌,问题出在哪呢?请大佬帮忙看下。
重现步骤
(为了排除是DNS的相关问题,故用ip来测试访问谷歌)
2.测试docker的宿主机是否能访问谷歌,执行如下CMD:
说明宿主机访问谷歌正常的(虽然被301了,证明是通的~)
3.测试docer容器能否访问Internet 和 谷歌,执行如下CMD:
3.1.先进入容器Shell环境
3.2.测试容器内能否访问Internet,执行如下CMD:
说明容器内,访问外网正常的~
3.3.测试容器内能否访问谷歌,执行如下CMD:
超时了,说明不通!!!
问下大佬,是什么原因?
貌似我的docker容器里的流量没被 宿主机的ShadowSocksR撸住?
补充信息:
@hwdsl2 commented on GitHub (Jun 10, 2022):
@hedahong 你好!我对 OpenWrt 系统不熟悉。根据你的描述,我觉得很可能是 Docker 容器的流量没有经过宿主机上的 ShadowSocksR 插件,就是说绕过了该插件。对于该问题的解决方案,我也不太清楚。你可以在网上相关的论坛问一下,或者搜索相关文档。
@xianren78 commented on GitHub (Jun 10, 2022):
ssrp+ 访问控制里加上docker0接口