ubuntu wsl 子系统使用win10 系统ss代理步骤

  1. wind10 安装ss客户端 配置server 具体不多说
  2. 安装 ubuntu 子系统

3.安装python pip


 apt install python-pip

4.升级pip


pip install --upgrade pip

5.安装genpac 工具


 pip install genpac

6.生成配置


genpac --proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac --gfwlist-url="https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt"

7.编辑 /etc/profile 在文件最后添加(具体端口配置和ss 客户端保持一致)



export http_proxy=http://127.0.0.1:1080
export https_proxy=http://127.0.0.1:1080
export ftp_proxy=http://127.0.0.1:1080
  1. source /etc/profile 让配置生效

    大功告成

原文地址:https://segmentfault.com/a/1190000015913747

猜你喜欢

转载自www.cnblogs.com/lalalagq/p/9975278.html