222.jpg

操作系统:CentOS6

安装shadowsocks服务端(参考官方Shadowsocks 使用说明):

CentOS:


yum install python-setuptools && easy_install pip  

pip install shadowsocks  



编写配置(参考Configuration via Config File):

vi新建配置



vi /etc/shadowsocks.json  


内容如下:


{  

    "server":"填写服务器IP",  

    "server_port":8388,  

    "local_address": "127.0.0.1",  

    "local_port":1080,  

    "password":"mypassword",  

    "timeout":300,  

    "method":"aes-256-cfb",  

    "fast_open": false  


 

如要多个帐号 (多个SS账号) 以下格式



{  

    "server":"填写服务器IP",  

    "port_password":{  

     "8381":"xxxxxxx",  

     "8382":"xxxxxxx",  

     "8383":"xxxxxxx",  

     "8384":"xxxxxxx"  

     },  

    "timeout":300,  

    "method":"aes-256-cfb",  

    "fast_open": false  

}  



配置说明:

字段说明

serverss服务监听地址

server_portss服务监听端口

local_address本地的监听地址

local_port本地的监听端口

password密码

timeout超时时间,单位秒

method加密方法,默认是aes-256-cfb

fast_open使用TCP_FASTOPEN, true / false

workersworkers数,只支持Unix/Linux系统


启动:

前台启动


ssserver -c /etc/shadowsocks.json  


后台启动与停止


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

ssserver -c /etc/shadowsocks.json -d stop  


如需开机启动

打开rc.local



vi /etc/rc.local  

输入


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

shadowsocks 的日志保存在 /var/log/shadowsocks.log


安装shadowsocks客户端

下载地址:



Windows   

https://github.com/shadowsocks/shadowsocks-windows/releases   

  

Mac OS X   

https://github.com/shadowsocks/ShadowsocksX-NG/releases  



linux   

https://github.com/shadowsocks/shadowsocks-qt5/wiki/Installation   

https://github.com/shadowsocks/shadowsocks-qt5/releases  



iOS   

https://itunes.apple.com/app/apple-store/id1070901416?pt=2305194&ct=shadowsocks.org&mt=8   

https://github.com/shadowsocks/shadowsocks-iOS/releases  



Android   

https://play.google.com/store/apps/details?id=com.github.shadowsocks   

https://github.com/shadowsocks/shadowsocks-android/releases  



分类标签: vpn


评论 (0)
暂无评论