搭建shadowsocks服务器

安装shadowsocks:

[root@localhost ~]# yum install -y epel-release 
[root@localhost ~]# yum install -y python-pip
[root@localhost ~]# pip install shadowsocks

在/etc目录下创建 shadowsocks.json 文件,将下面的内容放进去:

[root@localhost ~]# vi /etc/shadowsocks.json
{
    "server":"0.0.0.0",
    "server_port":8388,
    "local_address": "0.0.0.0",
    "local_port":1080,
    "password":"mypassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false,
    "workers": 1
}

启动运行 shadowsocks服务器端:

[root@localhost ~]# ssserver -c /etc/shadowsocks.json -d start
启动

[root@localhost ~]# ssserver -c /etc/shadowsocks.json -d stop
停止

[root@localhost ~]# ssserver -c /etc/shadowsocks.json -d restart
重启

shadowsocks就可以使用了

shadowsocks多端口配置:

{
    "server":"0.0.0.0",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "port_password":{
        "8":"123455",
        "88":"123456",
        "888":"123456",
        "8888":"123456"
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false,
    "workers": 1
}

Add a Comment

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