Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggest][建议] 我想让流量经过代理 I want the traffic to go through the proxy. #576

Open
pengxiandyou opened this issue Mar 14, 2025 · 3 comments

Comments

@pengxiandyou
Copy link

使用这个程序会在手机上建立vpn,但是这样的话,我就无法访问一些网站了,如www.google.com。

我尝试在电脑上使用clash,并启用全局,但没有效果。

我尝试使用@java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=7890 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=7890 -jar gnirehtet.jar run @pause 也没有效果。

Using this program establishes a VPN on my phone, but doing so prevents me from accessing certain websites, such as www.google.com.

I tried using Clash on my computer and enabled the global mode, but it didn't work.

I also tried using @java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=7890 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=7890 -jar gnirehtet.jar run @Pause but that didn't work either.

@pengxiandyou
Copy link
Author

有一个方法可以达到这个效果,使得电脑开clash,手机可以使用这个代理。

  1. 按照上面的修改,修改一下启动命令。我不知道有没有效果,也不想测试。
  2. 访问https://www.proxifier.com/ 下载proxifier并安装
  3. 启动chash。打开Proxifier。转到“Profile”菜单,选择“Proxy Servers…”。点击“Add…”按钮添加一个新的代理服务器。在弹出的窗口中,输入以下信息:Type: 根据你的Clash配置选择SOCKS5或HTTP。Address: 127.0.0.1(即本机回环地址)。Port: 输入Clash代理服务的实际端口号,例如1080或7890。点击“OK”保存设置。
  4. 在同一“Profile”菜单下,选择“Proxy Rules…”。默认情况下,可能已经有一些预设规则。你可以编辑这些规则或将你的Java应用添加为需要通过代理的新规则。若要为特定的应用程序设置规则,点击“Add…”按钮,在“Target”选项卡中选择“Applications”(手动填写java.exe),然后浏览并选择你的gnirehtet.jar或其他需要通过代理的应用程序(不用)。确保新规则(选择之前配置的规则)指向你在步骤3中配置的代理服务器。点击“OK”保存所有更改。
  5. 自己测试。

@pengxiandyou
Copy link
Author

激活码网上可以找到

@warm-ocean
Copy link

@pengxiandyou TUN mode works just fine 😆
no need for any other tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants