shadowsocks-rust icon indicating copy to clipboard operation
shadowsocks-rust copied to clipboard

Feature Request: Enable multiuser support through a single port

Open miladrahimi opened this issue 1 year ago • 3 comments

Since Shadowsocks 2022 is a different protocol that many clients don't support, the standard Shadowsocks server should enable multiuser functionality through a single port. While Xray-core already has a similar feature, it's important for the official project to adopt this capability as well.

Xray-core configuration sample that support similar functionality:

{
    "inbounds": [
        {
            "port": 1234,
            "protocol": "shadowsocks",
            "settings": {
                "clients": [
                    {
                        "password": "example_user_1",
                        "method": "aes-128-gcm"
                    },
                    {
                        "password": "example_user_2",
                        "method": "aes-256-gcm"
                    },
                    {
                        "password": "example_user_3",
                        "method": "chacha20-poly1305"
                    }
                ],
                "network": "tcp,udp"
            }
        }
    ],
}

miladrahimi avatar Nov 29 '23 20:11 miladrahimi

Currently not interested in supporting multi-users for AEAD cipher protocols. Since the AEAD protocol itself doesn’t contain any user informations, so the only way to support multi-user is to “try” decrypt with all configured keys. Quite ugly and inefficient.

zonyitoo avatar Dec 01 '23 07:12 zonyitoo