Shadowsocks使用相关问题


privoxy代理

配置代理

# 注释listen-address  localhost:8118并在最后一行添加,这里1081是设置的另一个端口
forward-socks5 / 127.0.0.1:1081 .
listen-address 0.0.0.0:8118

sudo service privoxy restart

Privoxy搭建代理映射

Mac下安装privoxy

brew install privoxy 开机自启 启动privoxy

/usr/local/Cellar/privoxy/3.0.26/sbin/privoxy /usr/local/etc/privoxy/config

修改LaunchAgents的文件,并执行下述命令自启

sudo launchctl load /Library/LaunchAgents/local.privoxy.plist
# 查看系统是否真正启动privoxy
ps aux  | grep privoxy
# vim /Library/LaunchAgents/local.privoxy.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>local.arcueid.privoxy</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/sbin/privoxy</string>
        <string>--no-daemon</string>
        <string>/usr/local/etc/privoxy/config</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/usr/local/Cellar/privoxy/3.0.26/sbin/privoxy.log</string>
    <key>StandardOutPath</key>
    <string>/usr/local/Cellar/privoxy/3.0.26/sbin/privoxy.log</string>
</dict>
</plist>

使用Privoxy做智能代理切换

ubuntu使用shadowsocks