openwrt安装privoxy转换socks5到http代理

openwrt安装privoxy转换socks5到http代理

很多软件不支持socks5代理,只支持http代理,比如cmd和powershell

选择 luci-app-privoxy

1
2
opkg update
opkg install privoxy

打开 /etc/config/privoxy

通常需要修改这三处配置

1
2
3
list    listen_address '0.0.0.0:1071'           ## 1071为privoxy监听的端口
option  forward_socks5 '/ 0.0.0.0:1111    .'    ## 1070为socks5服务端口
list    permit_access  '10.18.18.0/24'          ## 10.18.18.0为LAN网段

forward_socks5最好自建一个socks5的server,这样http也能共享代理软件的规则。

/etc/init.d/privoxy restart

curl -x 127.0.0.1:8118 -I https://www.google.com

常见客户端代理设置可见 常见工具的代理设置.