ninehills / blog

https://ninehills.tech
747 stars 65 forks source link

WSL2 使用 Clash for Windows 的 TUN 模式全局访问外网 #93

Open ninehills opened 1 year ago

ninehills commented 1 year ago

有两种方法:

第一种,配置 HTTP(S)/SOCKS 代理

但是这种代理并非全局,依赖于程序自身实现。

第二种,配置 TUN 模式代理。

注:这种模式下,需要让 Clash 以管理员权限启动才能让 WSL2 使用代理,可以右键点击 Clash,配置属性来让 Clash 具备管理员权限。