修改允许应用或功能通过 Windows Defender防火墙
Control Panel > System and Security > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall.
- 找是否有clash-win64.exe的规则配置,注意不是 Clash For Windows ,CFW本身只是clash的一个前端,在启动CFW的时候有概率防火墙只添加CFW本身,而不添加作为核心的clash的防火墙规则,这个时候则需要我们手动修改。
- 如果已经有了clash-win64.exe的规则,则只需要配置专有和公共网络同时允许即可。
- 如果没有clash-win64.exe的规则,可以通过下方的允许其他应用手动添加规则,具体clash核心文件的路径可以通过任务管理器后台或 Clash for Windows\resources\static\files\win\x64\clash-win64.exe 类似的路径查询到。添加规则的时候同时允许专用和公共即可。
在wsl中配置代理(方案一)
将下面几行脚本加入你的bashrc或者zshrc:
1 | # proxy |
在wsl中配置代理(方案二)
将下面几行脚本加入你的bashrc或者zshrc:
1 | # proxy |
镜像网络(方案三)
1 | # Settings apply across all Linux distros running on WSL 2 |
参见 WSL 中的高级设置配置
Reference
What’s the difference between hostip
and windows ip
when set WSL2 proxy by Clash Allow LAN
?
-------------本文结束感谢您的阅读-------------
本文作者:
Corner
本文链接: http://corner430.github.io/2023/04/05/How-do-I-use-clash-proxy-wsl-in-windows/
版权声明: 本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。转载请注明出处!
本文链接: http://corner430.github.io/2023/04/05/How-do-I-use-clash-proxy-wsl-in-windows/
版权声明: 本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。转载请注明出处!
