mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-28 03:21:27 +00:00
67 lines
1.5 KiB
JSON
67 lines
1.5 KiB
JSON
|
{
|
||
|
"log": {
|
||
|
"loglevel": "warning"
|
||
|
},
|
||
|
"routing": {
|
||
|
"domainStrategy": "AsIs",
|
||
|
"rules": [
|
||
|
{
|
||
|
"type": "field",
|
||
|
"ip": [
|
||
|
"geoip:private"
|
||
|
],
|
||
|
"outboundTag": "direct"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"listen": "127.0.0.1",
|
||
|
"port": "1080",
|
||
|
"protocol": "socks",
|
||
|
"settings": {
|
||
|
"auth": "noauth",
|
||
|
"udp": true,
|
||
|
"ip": "127.0.0.1"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"listen": "127.0.0.1",
|
||
|
"port": "1081",
|
||
|
"protocol": "http"
|
||
|
}
|
||
|
],
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"protocol": "socks",
|
||
|
"settings": {
|
||
|
"servers": [
|
||
|
{
|
||
|
"address": "",
|
||
|
"port": 1234,
|
||
|
"users": [
|
||
|
{
|
||
|
"user": "",
|
||
|
"pass": ""
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"streamSettings": {
|
||
|
"network": "tcp",
|
||
|
"security": "tls",
|
||
|
"tlsSettings": {
|
||
|
"serverName": "example.domain",
|
||
|
"allowInsecure": false
|
||
|
}
|
||
|
},
|
||
|
"tag": "proxy"
|
||
|
},
|
||
|
{
|
||
|
"protocol": "freedom",
|
||
|
"tag": "direct"
|
||
|
}
|
||
|
]
|
||
|
}
|