官方论坛产品帮助刷图视频问题反馈

Configure Multiple Users For Shodwsocks

发表于 秦海传媒

    Currently Python and Go servers support multiple users.

    You can use different passwords on different ports like this:

    {
        "server": "0.0.0.0",
        "port_password": {
            "8381": "foobar1",
            "8382": "foobar2",
            "8383": "foobar3",
            "8384": "foobar4"
        },
        "timeout": 300,
        "method": "aes-256-cfb"
    }
    

    If you want to build a user management system, check the Manager API.

     

    You can use a configuration file instead of command line arguments.

    Create a config file /etc/shadowsocks.json. Example:

    {
        "server":"my_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
    }
    

    Explanation of the fields:

    Name Explanation
    server the address your server listens
    server_port server port
    local_address the address your local listens
    local_port local port
    password password used for encryption
    timeout in seconds
    method default: “aes-256-cfb”, see Encryption
    fast_open use TCP_FASTOPEN, true / false
    workers number of workers, available on Unix/Linux

    To run in the foreground:

    ssserver -c /etc/shadowsocks.json
    

    To run in the background:

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


    cat > /etc/init.d/cron-sserver.sh < > /var/spool/cron/root.cron

  • 此条目发表在 闲言碎语 分类目录。将固定链接加入收藏夹。

Google ADs

除非另有声明,本站文章遵循知识共享署名-非商业性使用 2.5 中国大陆许可协议。 Copyright © 2008-2012 99288.NET.CN.