Privoxy
- To bring a bridge from SOCKS5 to http
- Setup privoxy
sudo apt install privoxy nano /etc/privoxy/config add lines
remove line listen-address 127.0.0.1:8118 first in config file section 4.1
forward-socks5 / 192.168.8.100:1080 . # here is the local sock5 proxy address, or ethernet socks5 proxy address listen-address 127.0.0.1:8118 # HTTP代理地址 restart -> sudo /etc/init.d/privoxy restart
- Setup the http proxy to use
export http_proxy="http://127.0.0.1:8118" export https_proxy="http://127.0.0.1:8118" export ftp_proxy="http://127.0.0.1:8118" export ALL_PROXY="http://127.0.0.1:8118" unset ALL_PROXY
- done and test
curl -sL www.google.com curl -sL www.pornhub.com curl -sL www.youtube.com
Configuration
HTTP to Socks5 by Privoxy
# 把 HTTP 流量转发到本机 127.0.0.1:1080 的 Shadowsocks forward-socks5 / 127.0.0.1:1080 . # 可选,默认只监听本地连接 127.0.0.1:8118 # 可以允许局域网中的连接 listen-address 0.0.0.0:8118