Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Accept multiple passwords on a single port #489

Closed
database64128 opened this issue Apr 9, 2021 · 8 comments
Closed

[Feature Request] Accept multiple passwords on a single port #489

database64128 opened this issue Apr 9, 2021 · 8 comments

Comments

@database64128
Copy link
Contributor

Reference implementations

Possible config format

{
    "servers": [
        {
            "server": "::",
            "server_port": 12345,
            "method": "aes-256-gcm",
            "passwords": {
                "0": "144537e6-08f4-4110-a7f4-aba6da8be7f2", // When reloading, identify individual passwords with the number (0 in this case).
                "1": "33ae69d4-6bd6-41ec-b6b9-05f0412e7171"
            },
            "remarks": "Service A",
            "id": "5d91abc7-3ee7-41c9-a9e8-49a7e84450c7" // Used to identify servers when reloading.
        },
        {
            "server": "example.com",
            "server_port": 54321,
            "method": "chacha20-ietf-poly1305",
            "password": "example",
            "remarks": "Service B",
            "id": "9185279e-25c2-4438-913a-dfe3d01f9bb4" // Used to identify servers when reloading.
        }
    ]
}
@zonyitoo

This comment has been minimized.

@pyy
Copy link

pyy commented Jun 13, 2021

Will in this way it save memory usage on the remote server? compare to multiple instance on different port.

@zonyitoo
Copy link
Collaborator

It will, but shouldn’t be significant.

@lzm0
Copy link
Contributor

lzm0 commented Nov 12, 2021

Would like to see this feature to be supported

@kallydev
Copy link
Contributor

kallydev commented Nov 13, 2021

Would like to see this feature to be supported

Since shadowsocks protocol doesn't consider multi-user authentication, I recommend implementing it in SIP 003 plugin.

@fortuna
Copy link

fortuna commented Nov 18, 2021

I have a discussion on the optimizations we did for Outline at shadowsocks/shadowsocks-org#130

In practice, the trial decryption is not an issue at all.

@database64128
Copy link
Contributor Author

database64128 commented May 16, 2022

Now that we have Shadowsocks 2022 Extensible Identity Headers for native multi-user support (although shadowsocks-rust hasn't implemented it yet), I'm closing this issue.

@database64128
Copy link
Contributor Author

Support for Shadowsocks 2022 EIH just landed: ac225f0

We now also have the equivalent of mmp-go for Shadowsocks 2022: https://github.com/SagerNet/sing-tools/tree/main/cli/ss-relay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants