shadowsocks / shadowsocks-nodejs

https://github.com/shadowsocks/shadowsocks
Other
1.25k stars 724 forks source link

config multi password? #44

Closed italy2010 closed 11 years ago

italy2010 commented 11 years ago

Hello, is there any new example for config multi password (with encryption methods)? thanks

clowwindy commented 11 years ago

https://github.com/clowwindy/shadowsocks-nodejs/blob/master/test/config-multi-passwd.json

You can use only one encryption method for all password.

cyfdecyf commented 11 years ago

@clowwindy Do you have any plan to support different encryption methods for different ports?

clowwindy commented 11 years ago

@cyfdecyf Currently no. But we can discuss on it. We have to use a new config format to support that.

italy2010 commented 11 years ago

this config is for 5 months ago, and dont have a method options. can you add method options in it? something like this:

{ "server":"127.0.0.1", "server_port":8388, "local_port":1081, "password":"barfoo!", "timeout":600, "method":"des-cfb" } "port_password": { "8381": "foobar1", "8382": "foobar2", "8383": "foobar3", "8384": "foobar4", "8385": "foobar5", "8386": "foobar6", "8387": "foobar7", "8388": "foobar8", "8389": "foobar9", "8390": "foobar10", "8391": "foobar11", "8392": "foobar12" }, "timeout":60 }

clowwindy commented 11 years ago
{
    "server":"127.0.0.1",
        "server_port":8388,
        "local_port":1081,
        "password":"barfoo!",
        "port_password": {
            "8381": "foobar1",
            "8382": "foobar2",
            "8383": "foobar3",
            "8384": "foobar4",
            "8385": "foobar5",
            "8386": "foobar6",
            "8387": "foobar7",
            "8388": "foobar8",
            "8389": "foobar9",
            "8390": "foobar10",
            "8391": "foobar11",
            "8392": "foobar12"
        },
        "timeout":60,
        "method":"aes-256-cfb"
}
italy2010 commented 11 years ago

sometimes i get this error:

root@ubuntu:~/shadowsocks-nodejs# node server.js shadowsocks-nodejs v1.2.2 3 Jun 16:54:15 - warning: port_password should not be used with server_port and password. server_port and password will be ignored

/root/shadowsocks-nodejs/server.js:220 util.warn("Address in use, aborting"); ^ TypeError: Object # has no method 'warn' at Server._fn (/root/shadowsocks-nodejs/server.js:220:14) at Server.EventEmitter.emit (events.js:96:17) at Server._listen2._connectionKey (net.js:914:12) at process.startup.processNextTick.process._tickCallback (node.js:245:9)

i dont know why?

italy2010 commented 11 years ago

Hi dear, is it possible run shadowsocks server on windows server 2003? thanks

On Tue, May 28, 2013 at 7:16 AM, clowwindy notifications@github.com wrote:

{ "server":"127.0.0.1", "server_port":8388, "local_port":1081, "password":"barfoo!", "port_password": { "8381": "foobar1", "8382": "foobar2", "8383": "foobar3", "8384": "foobar4", "8385": "foobar5", "8386": "foobar6", "8387": "foobar7", "8388": "foobar8", "8389": "foobar9", "8390": "foobar10", "8391": "foobar11", "8392": "foobar12" }, "timeout":60, "method":"aes-256-cfb" }

— Reply to this email directly or view it on GitHubhttps://github.com/clowwindy/shadowsocks-nodejs/issues/44#issuecomment-18522023 .

clowwindy commented 11 years ago

8388 appeared twice in your config. Change one of them into another number.

Though I've never tested, I think it's possible to run it on Windows Server.

italy2010 commented 11 years ago

sometimes with reboot i dont see this error.

timeoute setting should be 60 or 600? thanks

clowwindy commented 11 years ago

600 is recommended