1 socket5 服务器地址
192.168.1.12
2 启动命令
192.168.1.12 上启动如下命令
ssh -C2qTnN -D 0.0.0.0:1080 -p 22 127.0.0.1
3 socket5 服务器地址端口
192.168.1.12 1080 端口
4 firefox 配置为socket5 客户端
5 使用privoxy将socket5 服务器 暴露为http 正向代理服务器
6 privoxy 服务器地址
192.168.1.184
7 privoxy 服务器配置
cat /etc/privoxy/config
输出如下:
confdir /etc/privoxy
logdir /var/log/privoxy
actionsfile match-all.action
actionsfile default.action
actionsfile user.action
filterfile default.filter
filterfile user.filter
logfile logfile
toggle 1
enable-remote-toggle 0
enable-remote-http-toggle 0
enable-edit-actions 0
enforce-blocks 0
buffer-limit 4096
enable-proxy-authentication-forwarding 0
forwarded-connect-retries 0
accept-intercepted-requests 0
allow-cgi-request-crunching 0
split-large-forms 0
keep-alive-timeout 5
tolerate-pipelining 1
socket-timeout 300
####
listen-address 0.0.0.0:3008
forward-socks5 / 192.168.1.12:1080 .
8 firefox 配置为privoxy 的客户端
9 直接使用curl 作为socket5 server 的客户端
curl --socks5 192.168.1.12:1080 https://www.baidu.com --resolve www.baidu.com:443:103.235.46.39