mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 04:06:18 +00:00

In scenarios where using domainStrategy: "AsIs", the geoip database is sometimes ignored, and only the geosite database is checked. To ensure that both geosite and geoip databases are considered, it’s recommended to use domainStrategy: "IPIfNonMatch". surprisingly I discoverd when sniffing is enabled at client side, multi routing does not work properly (just sometimes) but after disabling sniffing at client side, multirouting works perfectly fine.
87 lines
1.4 KiB
JSON
87 lines
1.4 KiB
JSON
{
|
|
"remarks": "",
|
|
"dns": {
|
|
"tag": "dns_out",
|
|
"queryStrategy": "UseIP",
|
|
"servers": [
|
|
{
|
|
"address": "8.8.8.8",
|
|
"skipFallback": false
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"port": 10808,
|
|
"protocol": "socks",
|
|
"settings": {
|
|
"auth": "noauth",
|
|
"udp": true,
|
|
"userLevel": 8
|
|
},
|
|
"sniffing": {
|
|
"destOverride": [
|
|
"http",
|
|
"tls",
|
|
"fakedns"
|
|
],
|
|
"enabled": false
|
|
},
|
|
"tag": "socks"
|
|
},
|
|
{
|
|
"port": 10809,
|
|
"protocol": "http",
|
|
"settings": {
|
|
"userLevel": 8
|
|
},
|
|
"tag": "http"
|
|
}
|
|
],
|
|
"log": {
|
|
"loglevel": "warning"
|
|
},
|
|
"outbounds": [
|
|
{
|
|
"tag": "direct",
|
|
"protocol": "freedom",
|
|
"settings": {
|
|
"domainStrategy": "UseIP"
|
|
}
|
|
},
|
|
{
|
|
"tag": "block",
|
|
"protocol": "blackhole",
|
|
"settings": {
|
|
"response": {
|
|
"type": "http"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"policy": {
|
|
"levels": {
|
|
"8": {
|
|
"connIdle": 300,
|
|
"downlinkOnly": 1,
|
|
"handshake": 4,
|
|
"uplinkOnly": 1
|
|
}
|
|
},
|
|
"system": {
|
|
"statsOutboundUplink": true,
|
|
"statsOutboundDownlink": true
|
|
}
|
|
},
|
|
"routing": {
|
|
"domainStrategy": "IPIfNonMatch",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"network": "tcp,udp",
|
|
"outboundTag": "proxy"
|
|
}
|
|
]
|
|
},
|
|
"stats": {}
|
|
}
|