185 lines
3.5 KiB
JSON
185 lines
3.5 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "warning",
|
|
"error": "/var/log/xray/error.log",
|
|
"access": "/var/log/xray/access.log"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"tag": "all-in",
|
|
"port": 12345,
|
|
"protocol": "dokodemo-door",
|
|
"settings": {
|
|
"network": "tcp,udp",
|
|
"followRedirect": true
|
|
},
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": [
|
|
"http",
|
|
"tls"
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"sockopt": {
|
|
"tproxy": "tproxy"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"protocol": "socks",
|
|
"port": 22999,
|
|
"listen": "0.0.0.0",
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": [
|
|
"http",
|
|
"tls"
|
|
]
|
|
},
|
|
"settings": {
|
|
"auth": "noauth",
|
|
"udp": true,
|
|
"userLevel": 10
|
|
},
|
|
"streamSettings": {
|
|
"sockopt": {
|
|
"tproxy": "tproxy"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"tag": "direct",
|
|
"protocol": "freedom",
|
|
"settings": {
|
|
"domainStrategy": "UseIPv4"
|
|
},
|
|
"streamSettings": {
|
|
"sockopt": {
|
|
"mark": 233
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"tag": "proxy",
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"vnext": [
|
|
{
|
|
"address": "43.154.83.213",
|
|
"port": 29999,
|
|
"users": [
|
|
{
|
|
"id": "fc903f5d-a007-482b-928c-570da9a851f9",
|
|
"alterId": 0,
|
|
"email": "192.168.11.19@qq.com",
|
|
"security": "auto",
|
|
"encryption": "none",
|
|
"flow": "xtls-rprx-direct"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "xtls",
|
|
"xtlsSettings": {
|
|
"serverName": "tencent-hk-11.17.107421.xyz",
|
|
"allowInsecure": true,
|
|
"rejectUnknownSni": false,
|
|
"alpn": [
|
|
"h2",
|
|
"http/1.1"
|
|
],
|
|
"minVersion": "1.2",
|
|
"maxVersion": "1.3"
|
|
},
|
|
"sockopt": {
|
|
"mark": 233
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"tag": "block",
|
|
"protocol": "blackhole",
|
|
"settings": {
|
|
"response": {
|
|
"type": "http"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"tag": "dns-out",
|
|
"protocol": "dns",
|
|
"streamSettings": {
|
|
"sockopt": {
|
|
"mark": 233
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dns": {
|
|
"hosts": {
|
|
"proxy.io": "192.168.233.2"
|
|
},
|
|
"servers": [
|
|
{
|
|
"address": "223.5.5.5",
|
|
"port": 53,
|
|
"domains": [
|
|
"geosite:cn"
|
|
],
|
|
"expectIPs": [
|
|
"geoip:cn"
|
|
]
|
|
},
|
|
{
|
|
"address": "8.8.8.8",
|
|
"port": 53,
|
|
"domains": [
|
|
"geosite:geolocation-!cn"
|
|
]
|
|
},
|
|
"https+local://doh.dns.sb/dns-query"
|
|
]
|
|
},
|
|
"routing": {
|
|
"domainStrategy": "IPIfNonMatch",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"inboundTag": [
|
|
"all-in"
|
|
],
|
|
"port": 53,
|
|
"outboundTag": "dns-out"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"8.8.8.8",
|
|
"1.1.1.1"
|
|
],
|
|
"outboundTag": "proxy"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"domain": [
|
|
"geosite:category-ads-all"
|
|
],
|
|
"outboundTag": "block"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"domain": [
|
|
"travel.state.gov",
|
|
"geosite:geolocation-!cn"
|
|
],
|
|
"outboundTag": "proxy"
|
|
}
|
|
]
|
|
}
|
|
} |