[关闭]
@dume2007 2017-03-23T08:37:34.000000Z 字数 2410 阅读 5971

Shadowsocks完整安装大全

shadowsocks 翻墙工具


Shadowsocks即有服务端还有专门的客户端,支持全平台,神马Windows、Linux、Mac、Android、iOS、OpenWrt...统统都支持。下面主要介绍server和client的安装过程。

Clients

平台 下载地址
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安装一下就可以了,或者去网上买收费的。

Servers

Python版

  1. pip install shadowsocks

没有安装pip,Centos用户使用以下命令:

  1. yum install python-setuptools
  2. easy_install pip

Debian 和 Ubuntu:

  1. sudo apt-get install python-pip

Go版

  1. go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-server

C with libev

  1. sudo apt-get install --no-install-recommends build-essential autoconf libtool \
  2. libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc \
  3. xmlto apg libpcre3-dev zlib1g-dev libev-dev libudns-dev libsodium-dev
  4. git clone https://github.com/shadowsocks/shadowsocks-libev.git
  5. cd shadowsocks-libev
  6. git submodule update --init
  7. ./autogen.sh && ./configure && make
  8. sudo make install

启动Server端

编写/etc/shadowsocks.json配置文件,如下:

  1. {
  2. "server":"0.0.0.0",
  3. "server_port":8388,
  4. "local_port":1080,
  5. "password":"barfoo!",
  6. "timeout":600,
  7. "method":"aes-256-cfb"
  8. }

配置参数说明:
- 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.

启动命令:

  1. ssserver -c /etc/shadowsocks.json -d start --log-file /tmp/shadowsocks.log

所有启动参数:

  1. Proxy options:
  2. -c CONFIG path to config file
  3. -s SERVER_ADDR server address, default: 0.0.0.0
  4. -p SERVER_PORT server port, default: 8388
  5. -k PASSWORD password
  6. -m METHOD encryption method, default: aes-256-cfb
  7. -t TIMEOUT timeout in seconds, default: 300
  8. --fast-open use TCP_FASTOPEN, requires Linux 3.7+
  9. --workers WORKERS number of workers, available on Unix/Linux
  10. --forbidden-ip IPLIST comma seperated IP list forbidden to connect
  11. --manager-address ADDR optional server manager UDP address, see wiki
  12. General options:
  13. -h, --help show this help message and exit
  14. -d start/stop/restart daemon mode
  15. --pid-file PID_FILE pid file for daemon mode
  16. --log-file LOG_FILE log file for daemon mode
  17. --user USER username to run as
  18. -v, -vv verbose mode
  19. -q, -qq quiet mode, only show warnings/errors
  20. --version show version information

参考资料

官网

https://shadowsocks.org/en/index.html 官网地址得翻墙才能访问。

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注