在ubuntu 上设置 shadowsocks 翻墙

第一,服务器端设置

服务器端shadowsocks配置

sudo apt-get -y install python-gevent python-pip
sudo pip install shadowsocks
sudo apt-get -y install python-m2crypto

shadowsockers 安装完毕后,可以查看使用sserver 命令进行查看如下:

webp - Ubuntu 16.04 搭建Shadowsock Server
给服务增加一个配置文件:shadowsocks.json
vim /etc/shadowsocks.json
{
  "server":"0.0.0.0",
  "server_port":1194,
  "local_address":"127.0.0.1",
  "password":"123!@#ljt",
  "timeout":300,
  "method":"aes-256-cfb",
  "fast_open":false,
  "workers":1
}

启动服务

ssserver -c /etc/shadowsocks/config.json -d start

INFO: loading config from /etc/shadowsocks/config.json

2016-09-12 13:21:09 INFO loading libcrypto from libcrypto.so.1.0.0

Started

账号配置

shadowsocks.json里面需要设置为自己vps的ip地址

{
 "server":"11.32.15.21",
 "local_address":"127.0.0.1",
 "local_port":1080,
 "port_password":{
   "9001":"10001",
   "9002":"10002",
   "9003":"10003"
 },
 "timeout":300,
 "method":"aes-256-cfb",
 "fast_open": false
}

服务启动重启 停止 命令

后台运行:ssserver -c /etc/shadowsocks.json -d start
后台停止:ssserver -c /etc/shadowsocks.json -d stop

参考:官网地址,https://github.com/Shadowsocks-Wiki/shadowsocks/blob/master/1-introduction-of-client-portal.md

https://blog.huihut.com/2016/12/03/BandwagonShadowsocksServer/

1 对 “Ubuntu 16.04 搭建Shadowsock Server”的想法;

发表评论

邮箱地址不会被公开。 必填项已用*标注