文章目录
  1. 1. 搭建shadowsocks实现科学上网
    1. 1.0.1. 运行方式
      1. 1.0.1.1. 后台运行
      2. 1.0.1.2. 使用配置文件修改配置

搭建shadowsocks实现科学上网


搭建环境:

  • 使用的是搬瓦工的vps,最低配,价格也是最便宜。这个只是范例,请根据自己的需求选择不同的服务器提供商。
  • 选择的系统为centos6 x86_64

安装支持插件

yum install -y python-setuptools && easy_install pip

再使用pip命令安装shadowsocks插件

pip install shadowsocks

运行方式


后台运行

ssserver -p 8888 -k password -m rc4-md5 -d start

注:端口为8888,password改为自己的密码

使用配置文件修改配置

打开配置文件

vi /etc/shadowsocks.json

{
"server":"your ip",
"server_port":8888,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"your password",
"timeout":300,
"method":"rc4-md5"
}
#服务器IP地址和密码根据具体情况修改

使用配置文件直接在后台运行

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

提示如下证明设置成功

[root@localhost ~]# ssserver -c /etc/shadowsocks.json -d start
INFO: loading config from /etc/shadowsocks.json
2017-04-17 12:31:25 INFO     loading libcrypto from libcrypto.so.10
started

停止shadowsocks服务

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

客户端下载地址:https://github.com/shadowsocks/shadowsocks-windows.git

客户端配置只需要按照刚刚设置的IP地址和密码填写,注意要选择正确的加密方式,和端口填写正确。