@dume2007
2017-03-23T16:37:34.000000Z
字数 2410
阅读 11664
shadowsocks
翻墙工具
Shadowsocks即有服务端还有专门的客户端,支持全平台,神马Windows、Linux、Mac、Android、iOS、OpenWrt...统统都支持。下面主要介绍server和client的安装过程。
平台 | 下载地址 |
---|---|
Windows | shadowsocks-win: GitHub,百度云盘 密码: 9kef Shadowsocks-Qt5: GitHub,百度云盘 密码: q5kw |
Mac OS X | ShadowsocksX-NG: GitHub |
Linux | Shadowsocks-Qt5: GitHub |
Android | shadowsocks-android:Google Play |
iOS | Potatso:App Store |
OpenWRT | opkg install shadowsocks-libev |
客户端就是一个启动文件,双击它启动,右下角有个纸飞机的图标就是它了。右键点击图标->服务器->编辑服务器,如图:
革命尚未成功,同志仍需努力。还得在浏览器装个扩展程序,比如SwitchyOmega 或 SwitchySharp什么的都可以。
有了客户端,没有服务端可连接怎么办?可以自己买台国外的vps安装一下就可以了,或者去网上买收费的。
pip install shadowsocks
没有安装pip,Centos用户使用以下命令:
yum install python-setuptools
easy_install pip
Debian 和 Ubuntu:
sudo apt-get install python-pip
go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-server
sudo apt-get install --no-install-recommends build-essential autoconf libtool \
libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc \
xmlto apg libpcre3-dev zlib1g-dev libev-dev libudns-dev libsodium-dev
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init
./autogen.sh && ./configure && make
sudo make install
编写/etc/shadowsocks.json配置文件,如下:
{
"server":"0.0.0.0",
"server_port":8388,
"local_port":1080,
"password":"barfoo!",
"timeout":600,
"method":"aes-256-cfb"
}
配置参数说明:
- server: your hostname or server IP (IPv4/IPv6).
- server_port: server port number.
- local_port: local port number.
- password: a password used to encrypt transfer.
- timeout: connections timeout in seconds.
- method: encryption method, "bf-cfb", "aes-256-cfb", "des-cfb", "rc4", etc. Default is table, which is not secure. "aes-256-gcm" is recommended.
启动命令:
ssserver -c /etc/shadowsocks.json -d start --log-file /tmp/shadowsocks.log
所有启动参数:
Proxy options:
-c CONFIG path to config file
-s SERVER_ADDR server address, default: 0.0.0.0
-p SERVER_PORT server port, default: 8388
-k PASSWORD password
-m METHOD encryption method, default: aes-256-cfb
-t TIMEOUT timeout in seconds, default: 300
--fast-open use TCP_FASTOPEN, requires Linux 3.7+
--workers WORKERS number of workers, available on Unix/Linux
--forbidden-ip IPLIST comma seperated IP list forbidden to connect
--manager-address ADDR optional server manager UDP address, see wiki
General options:
-h, --help show this help message and exit
-d start/stop/restart daemon mode
--pid-file PID_FILE pid file for daemon mode
--log-file LOG_FILE log file for daemon mode
--user USER username to run as
-v, -vv verbose mode
-q, -qq quiet mode, only show warnings/errors
--version show version information
https://shadowsocks.org/en/index.html 官网地址得翻墙才能访问。