{
"type": "naive",
"tag": "naive-in",
"network": "tcp",
"listen": "::",
"listen_port": 443,
"tcp_fast_open": true,
"sniff": true,
"sniff_override_destination": false,
"domain_strategy": "prefer_ipv4",
"udp_timeout": 300,
"proxy_protocol": false,
"users": [
{
"username": "user1",
"password": ""
},
{
"username": "user2",
"password": ""
},
{
"username": "user3",
"password": ""
}
],
"tls": {
"enabled": true,
"min_version": "1.2",
"max_version": "1.3",
"alpn": ["h2",
"http/1.1"],
"certificate_path": "/usr/local/etc/sing-box/cert.pem",
"key_path": "/usr/local/etc/sing-box/key.pem"
}
},
然后我有几个不同的outbound,分别是out1,out2.....
在分流规则中,我希望不同的用户走不同的outbound,所以这么配置
{
"network": "tcp",
"auth_user": "user1",
"outbound": "out1"
},
{
"network": "tcp",
"auth_user": "user2",
"outbound": "out2"
},
但是失败,似乎并没有检测到不同用户。
+0800 2023-01-17 14:23:38 INFO [2083906573] inbound/naive[naive-in]: inbound connection from xxxxxx:51511
+0800 2023-01-17 14:23:38 INFO [2083906573] inbound/naive[naive-in]: inbound connection to xxxxxx:443
+0800 2023-01-17 14:23:38 INFO [1797004494] inbound/naive[naive-in]: inbound connection from xxxxx:51511
+0800 2023-01-17 14:23:38 INFO [1797004494] inbound/naive[naive-in]: inbound connection to xxxxxx:443
请问大佬们,naive到底支不支持这样分流,支持的话要怎么配置才可以呢?