solidSpoon / solidSpoon.github.io.old

欢迎来到 Hide 博客!这里是 solidSpoon 的个人空间,分享技术心得、生活点滴和有趣事物。
https://solidspoon.xyz
0 stars 0 forks source link

2021/02/17/%E9%85%8D%E7%BD%AEWSL2%E4%BD%BF%E7%94%A8Windows%E4%BB%A3%E7%90%86%E4%B8%8A%E7%BD%91/ #35

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

配置 WSL2 使用 Windows 代理上网 - Hide

solidSpoon 的博客

https://solidspoon.xyz/2021/02/17/%E9%85%8D%E7%BD%AEWSL2%E4%BD%BF%E7%94%A8Windows%E4%BB%A3%E7%90%86%E4%B8%8A%E7%BD%91/

Mvbbb commented 3 years ago

简单,清晰,明了. 博主写得真好, 谢谢了

larricane commented 2 years ago

Thanks a lot!

levie-vans commented 2 years ago

如果wsl连接不到主机,直接放开 vEthernet (WSL) 这张网卡的防火墙,执行: New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow

vinsonw commented 2 years ago

It works for me, and now I know what "allow lan" means, so thx.

kumiko42 commented 2 years ago

Thanks for your help!

brucmao commented 2 years ago

奇怪,我也是zsh,用https_proxy代理没问题,用socks5 代理就报错 Unable to communicate securely with peer: requested domain name does not match the server's certificate 单独执行export all_proxy="https://ip.1:7890" 也没有问题

brucmao commented 2 years ago

破案了,单独执行 export all_proxy="socks5://ip:7890" 也不行,看来是socks5代理不能用

larricane commented 2 years ago

建议使用 ClashXTUN 模式

brucmao commented 2 years ago

有没有试过配置 socat 以转发 Windows 端的代理给wsl2 https://github.com/escape0707/markdown-practice/blob/master/notes/install-arch-wsl2.md

cg126 commented 2 years ago

请问下ip和端口怎么找呀

WenQizhaNg1 commented 2 years ago

It works, THANKSBRO!

pluto0x0 commented 1 year ago

配置socks5的all_proxy不行,但是分别配置http_proxy和http_proxy的http代理就可以

Wh1isper commented 1 year ago

可以试试$(hostname).local,解析出来就是windows的ip

Alumsr commented 8 months ago

感谢😄👍

jaycecd commented 8 months ago

terminal里面wget和curl可以正常代理了,但是WSL2上面安装的chrome浏览器和pycharm貌似没用~~大家有解决办法嘛?