Charles Web 调试代理未检测到 VPN 连接
我有一个 VPN 连接,正在使用 Charles Web 调试代理测试一些网站,但 Charles 似乎没有检测到我的 VPN 连接,因为它没有检测到我在 VPN 网络上运行的网站。有什么帮助吗?
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我在 Mac 上也遇到了同样的问题,但已经解决了。本质上,在连接到 VPN 之后,Charles 将停止记录所有 http 流量,无论它是在建立 VPN 连接之前还是之后启动
。问题出在系统级别的自动代理配置上。
我在“系统偏好设置”中打开了“自动代理配置”和“自动代理配置”网络设置>您的网络>高级
我无法通过 UI 将它们关闭,因为它们被 VPN 计算机上的公司策略禁用/灰显,但我能够从终端运行 2 个 shell 命令,尽管这将这两个选项都关闭了在启动 Charles 之前和连接到 VPN 之前(我想您需要帐户的管理员访问权限才能运行这些)。
Wi-Fi 恰好是我正在运行的网络接口的名称。如果您是硬连线,您的可能是以太网。
这基本上取消了网络设置中的两个选项,使自动代理的 URL 保持不变。如果您可以通过 UI 取消选中这两个复选框 - 那就更好了。
到目前为止一切顺利,但您还没有完成!!
您需要找出公司代理的真实 IP 地址,并将其输入到 Charles 的“外部代理设置”下。您的 VPN 配置可能指向外部配置文件。当您取消选中“自动代理配置”时,带有配置的 URL 应显示在“代理配置文件”文本框中。下载该文件,找到代理设置,然后在 Charles 的外部代理设置中输入这些设置。
瞧 - 启动 Charles,启动 VPN - 即使我使用 VPN,所有 HTTP 流量都流经 Charles - 正是我所需要的。
希望这对您有帮助,并且您正在 MAC 上运行它:)
I had the same problem on my Mac but was able to solve it. Essentially after connecting to VPN Charles would stop recording all http traffic regardless of whether it was started before or after VPN connection was established
The problem was with Auto Proxy configuration at the system level.
I had Auto Proxy Config and Automatic Proxy Configuration turned ON in System Preferences> Network Settings>You network>Advanced
I was not able to turn them off via UI because they were disabled/greyed out by the corporate policy on the VPN machine but I was able to run 2 shell commands from the terminal though which turned both options OFF before starting Charles and before connecting to VPN (you will need admin access on your account to run these I suppose).
Wi-Fi happens to be the name of the network interface I am running. If you are hard wired, yours could be Ethernet.
This essentially unticked both options in Network Settings leaving the URL for auto proxy intact. If you can untick these 2 checkboxes via the UI - even better.
Great so far but you aren't done yet!!
You need to figure out the true IP address of your corporate proxy and enter it under External Proxy Settings in Charles. Your VPN configuration might be pointing to an external configuration file. When you uncheck "Automatic Proxy configuration", the URL with the configuration should show in the "Proxy Configuration File" text box. Download that file, find the proxy setting, and enter those in the External Proxy Settings in Charles.
Voila - start Charles, start VPN - all HTTP traffic is flowing through Charles even when I am on VPN - precisely what I needed.
Hope this helps and you are running this on a MAC :)
对于粘度:
将其添加到
连接设置中的“高级”选项卡下。
Charles 现在将使用 Viscosity :)
For Viscosity:
Add this
in the connection settings, under the tab "Advanced".
Charles will now work with Viscosity :)
在连接到您的 VPN 之前启动 Charles。
http://www.charlesproxy.com/documentation/faqs/ VPN-不与查尔斯一起工作/
Start Charles before connecting to your vpn.
http://www.charlesproxy.com/documentation/faqs/vpn-not-working-with-charles/
查尔斯代理和隧道熊
Charles proxy and Tunnel Bear
使用 Chrome 和 Viscosity 作为我的 VPN 客户端,在连接 VPN 时,我无法从 Chrome 获得任何通过 Charles 的流量。
我的解决方案是使用火狐浏览器。这可能是因为 Firefox 建立自己的代理连接(因此有自己的代理设置),而 Chrome 和 Safari 则遵循 MacOS 建立 HTTP 连接。
Using Chrome and Viscosity as my VPN client, I'm unable to get any traffic from Chrome to go through Charles while the VPN is connected.
My solution is to use Firefox. It's probably because Firefox makes its own proxy connections (and therefore has its own proxy settings), while Chrome and Safari defer to MacOS to make the HTTP connection.
我成功地使用我的 VPN 来使用 Charles,设置如下:
移动设备或远程浏览器上的证书”。这应该显示
带有代理 IP 和端口的对话框
“高级”
和“SOCKS 代理”:
它应该可以工作,直到 VPN 和 Charles 运行。 重新启动 VPN 或 Charles 后,您可以再次更改设置。
不是最好的解决方案,但至少它有效。
I managed to work Charles with my VPN with the next settings:
certificates on Mobile Device Or Remote Browser". This should show a
dialog with proxy IP and port
"Advenced"
and "SOCKS Proxy":
It should work till VPN and Charles is running. After relaunch VPN or Charles you may change settings again.
Not the best solution, but at least it works.
这是一个老问题,但不幸的是仍然有效。对于 macOS 上的 NordVPN,所有答案都不适合我,但我最终可以使用以下步骤解决它:
按照本教程在 macOS VPN 系统设置中创建 VPN 连接:https://support.nordvpn.com/hc/en-us/articles/20286152661521-How-to-connect-to-NordVPN-with-IKEv2-IPSec-on-macOS-Ventura-version
您需要使用 Nord VPN 服务凭据:https:/ /my.nordaccount.com/dashboard/nordvpn/manual-configuration/
您需要知道要连接的 Nord VPN 服务器,请使用 https:// nordvpn.com/servers/tools/ 找到合适的
在
系统设置
下 ->VPN
->您新添加的 NordVPN 连接 ->(i)
按钮 ->代理
,启用Web代理(HTTP)
和Web代理(HTTPS)
并使用127.0.0.1和端口8888(或者您配置的任何Charles使用代理)通过 macOS VPN 设置中的新条目而不是 NordVPN 应用进行连接
This is an old question but still valid unfortunately. None of the answers worked for me with NordVPN on macOS, but I finally could resolve it using the following steps:
Create a VPN connection in the macOS VPN system settings, following this tutorial: https://support.nordvpn.com/hc/en-us/articles/20286152661521-How-to-connect-to-NordVPN-with-IKEv2-IPSec-on-macOS-Ventura-version
You need to use the Nord VPN service credentials: https://my.nordaccount.com/dashboard/nordvpn/manual-configuration/
You need to know the Nord VPN server you want to connect to, use https://nordvpn.com/servers/tools/ to find the right one
Under
System Settings
->VPN
-> Your newly added NordVPN connection ->(i)
button ->Proxies
, enableWeb proxy (HTTP)
andWeb proxy (HTTPS)
and use 127.0.0.1 and port 8888 (or whatever you have configured Charles Proxy to use)Connect via the new entry in the macOS VPN settings and NOT the NordVPN app