sslocal comman line / Proxychain

Ubuntu下使用sslocal和proxychain为命令行启用代理,记录下来以供各位参考或日后使用。

sudo apt-get install python-pip privoxy
sudo pip install shadowsocks

vi /usr/bin/shadowsocks.json

{
"server":"202.168.155.84",
"server_port":11025,
"local_port":1080,
"password":"mima",
"timeout":600,
"method":"aes-256-cfb"
}

启动sslocal

sudo apt-get install supervisor

sudo vi /etc/supervisor/conf.d/ss.conf

[program:sslocal]
command = /usr/local/bin/sslocal -c /usr/bin/shadowsocks.json
autostart = true
autorestart = true
stdout_logfile = /var/log/supervisor/ss/ss.log
stderr_logfile = /var/log/supervisor/ss/err_ss.log

编辑/etc/privoxy/config,注释掉:
listen-address localhost:8118

在最后加上:
listen-address localhost:8118
forward-socks5 / 127.0.0.1:1080 .

重启
sudo service privoxy restart

对当前命令行有用的代理:
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118

sudo apt-get install proxychains

sudo vi /etc/proxychains.conf

注释掉原有的
socks4 127.0.0.1 9050
添加上
socks5 127.0.0.1 1080

proxychains wget https://www.google.com
proxychains chrome

测试wordpress中文版自动转换引号为中文引号问题 “” “”

发表回复

您的电子邮箱地址不会被公开。