Skip to content

Latest commit

 

History

History
81 lines (73 loc) · 2.08 KB

单端口多用户的坑.md

File metadata and controls

81 lines (73 loc) · 2.08 KB

不要将面板里的配置提示直接复制进去,否则会出现 chr() 错误(因为是html拼接,带有\r\n符号)

可以复制以下内容:

{
    "server": "0.0.0.0",
    "server_ipv6": "::",
    "server_port": 8388,
    "local_address": "127.0.0.1",
    "local_port": 1080,

    "password": "m",
    "method": "aes-256-cfb",
    "protocol": "auth_sha1_v4_compatible",
    "protocol_param": "",
    "obfs": "tls1.2_ticket_auth_compatible",
    "obfs_param": "",
    "speed_limit_per_con": 0,
    "speed_limit_per_user": 0,

## 单端口:配置
"additional_ports" : {
    "443": {
        "passwd": "pass",
        "method": "aes-256-cfb",
        "protocol": "auth_aes128_md5",
        "protocol_param": "#",
        "obfs": "tls1.2_ticket_auth_compatible",
        "obfs_param": ""
    }
},

## 单端口:改为true为严格模式,默认false为兼容模式,严格模式下用户无法使用原来的端口访问
"additional_ports_only" : false,

    "timeout": 120,
    "udp_timeout": 60,
    "dns_ipv6": false,
    "connect_verbose_info": 1,
    "redirect": "",
    "fast_open": false
}

完整配置示例(严格模式,用户只能连接8880端口)

{
    "server": "0.0.0.0",
    "server_ipv6": "::",
    "server_port": 8388,
    "local_address": "127.0.0.1",
    "local_port": 1080,

    "password": "m",
    "method": "aes-192-ctr",
    "protocol": "auth_sha1_v4_compatible",
    "protocol_param": "",
    "obfs": "tls1.2_ticket_auth_compatible",
    "obfs_param": "",
    "speed_limit_per_con": 0,
    "speed_limit_per_user": 0,

    "additional_ports" : {
        "8880": {
            "passwd": "p4ssw0rd",
            "method": "aes-256-cfb",
            "protocol": "auth_chain_a",
            "protocol_param": "#",
            "obfs": "plain",
            "obfs_param": ""
        }
    },
    "additional_ports_only" : true,
    "timeout": 120,
    "udp_timeout": 60,
    "dns_ipv6": false,
    "connect_verbose_info": 1,
    "redirect": ["www.amazon.com", "images-na.ssl-images-amazon.com", "m.media-amazon.com", "kdp.amazon.com", "php.net"],
    "fast_open": false
}