Skip to content

Latest commit

 

History

History
142 lines (101 loc) · 2.76 KB

shadowsocks.md

File metadata and controls

142 lines (101 loc) · 2.76 KB

Shadowsocks-Qt5

安装

shell> add-apt-repository ppa:hzwhuang/ss-qt5
shell> apt-get update
shell> apt-get install shadowsocks-qt5

SwitchyOmega

安装

GFWList URL

https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt

Polipo

安装

shell> apt-get install polipo

配置

shell> vim /etc/polipo/config
logSyslog = true
logFile = /var/log/polipo/polipo.log

proxyAddress = "0.0.0.0"

socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5

chunkHighMark = 50331648
objectHighMark = 16384

serverMaxSlots = 64
serverSlots = 16
serverSlots1 = 32

重启服务

shell> service polipo restart

测试代理是否正常

shell> curl http://127.0.0.1:8123/

为终端配置 http 代理

shell> export http_proxy="http://127.0.0.1:8123/"
shell> export https_proxy="http://127.0.0.1:8123/"

查看 IP 信息

shell> curl ip.cn

其他

支持 chacha20-ietf-poly1305 加密算法

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev

启动多个 ss-local 实例

shell> vim /etc/ss0.json
{
  "server": "", 
  "server_port": "",
  "local_port": 1080,
  "password": "",
  "timeout": 600,
  "method": "chacha20-ietf-poly1305"
}
shell> vim /etc/ss1.json
{
  "server": [
	"x.x.x.x", 
	"y.y.y.y"
  ],
  "server_port": "",
  "local_port": 1081,
  "password": "",
  "timeout": 600,
  "method": "aes-256-cfb"
}
shell> nohup ss-local -c /etc/ss0.json > ss0.log 2>&1 &
shell> nohup ss-local -c /etc/ss1.json > ss1.log 2>&1 &

开机启动

shell> /etc/rc.local
ss-local -c /etc/ss0.json
ss-local -c /etc/ss1.json

windows终端命令行下如何使用代理?

参考文献