代理与 VPN 连接失败

代理与 VPN 连接失败

我想要实现的是通过代理使用 VPN 连接,这样我就可以在具有代理设置的单个程序中使用它,而不必通过 VPN 运行所有流量[*].

[*] 这样做的好处是 - 而不是使用其中一个这些解决方案 - 对我来说是 1)我没有在主机上运行 openvpn,因此没有办法以意外的方式弄乱它以通过 VPN 路由流量;2)我不必在我的主机上弄乱 iptables 或类似的东西,对此我不太有信心。

我做了什么:创建一个虚拟机(virtualbox 上的 ubuntu)并在其上安装 squid 并运行 openvpn。所以我的连接(应该)像这样工作:

App on host ---via-squid---> VM ---via-VPN---> the internet

我没有使用任何特殊配置;我只是安装了 squid 并运行了openvpn --config ./some_config.ovpn

这曾经运行良好,但由于某种原因它不再起作用;相反,我遇到了超时(我不确定 VPN 上是否有东西发生了变化,或者是我的系统还是其他什么原因)。

我尝试检查链中的每个环节,它们仍然有效:

App on host ---via-squid---> VM ---without-VPN---> the internet
-> this works (so the problem isn't squid)

VM ---with-VPN---> the internet
-> this works (so the problem isn't the VPN)

App on guest ---via-squid---> VM ---with-VPN---> the internet
-> even this works (tested with "url --proxy localhost:3657 https://ipinfo.io")
    (so it seems that the problem also isn't the combination of squid and VPN)

为什么使用整个链时我的连接会超时(即使每个单独的链接看似工作正常)?

相关内容