• 目录:

    popipo 将 socks5代理 转换为 http代理


    手机、平板 等移动端,通常在 wifi 的高级配置中,可以设置代理,但只支持 http 代理。

    ssh -D 命令可以很方便的启动 socks5 代理。

    需要一个同样方便的方案(安装简单、配置简单、开机自启、自动恢复、无需维护),把 socks5 代理 转换为 http 代理。

    安裝

    apt install polipo
    

    配置

    # /etc/polipo/config
    
    proxyAddress = "::0"
    proxyPort = 17890
    
    socksParentProxy = "localhost:7890"
    socksProxyType = socks5
    
    service polipo restart
    

    测试

    curl http://google.com
    
    export http_proxy=http://192.168.5.16:17890
    
    curl http://google.com
    

    上线

    https://feling.net/proxy1604.pac