You've already forked Xray-examples
mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-12-14 18:13:58 +08:00
refactor: clean up configuration files by removing deprecated "type": "field" in routing rules
This commit is contained in:
@@ -42,7 +42,8 @@
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{ "email": "general@vless-tcp-xtls", //Change to your own email
|
||||
{
|
||||
"email": "general@vless-tcp-xtls", //Change to your own email
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797", //Change to your own email
|
||||
"flow": "xtls-rprx-vision",
|
||||
"level": 0
|
||||
@@ -175,10 +176,10 @@
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{ "email":"general@vless-ws", //Change to your own email
|
||||
{
|
||||
"email": "general@vless-ws", //Change to your own email
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797", //Change to your own UUID
|
||||
"level": 0
|
||||
|
||||
}
|
||||
],
|
||||
"decryption": "none"
|
||||
@@ -205,7 +206,7 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email": "general@vmess-ws",
|
||||
"email": "general@vmess-ws",
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797",
|
||||
"level": 0
|
||||
}
|
||||
@@ -233,7 +234,7 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@trojan-ws",
|
||||
"email": "general@trojan-ws",
|
||||
"password": "desdemona99",
|
||||
"level": 0
|
||||
}
|
||||
@@ -261,7 +262,7 @@
|
||||
"port": 4001,
|
||||
"protocol": "shadowsocks",
|
||||
"settings": {
|
||||
"email":"general@shadowsocks-ws",
|
||||
"email": "general@shadowsocks-ws",
|
||||
"method": "chacha20-ietf-poly1305",
|
||||
"password": "desdemona99",
|
||||
"level": 0
|
||||
@@ -290,7 +291,7 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@trojan-tcp",
|
||||
"email": "general@trojan-tcp",
|
||||
"password": "desdemona99",
|
||||
"level": 0
|
||||
}
|
||||
@@ -324,9 +325,9 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@vless-tcp",
|
||||
"email": "general@vless-tcp",
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797",
|
||||
"level": 0
|
||||
"level": 0
|
||||
}
|
||||
],
|
||||
"decryption": "none"
|
||||
@@ -360,7 +361,7 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@vmess-tcp",
|
||||
"email": "general@vmess-tcp",
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797",
|
||||
"level": 0
|
||||
}
|
||||
@@ -401,7 +402,7 @@
|
||||
"method": "chacha20-ietf-poly1305",
|
||||
"password": "desdemona99",
|
||||
"email": "general@shadowsocks-tcp",
|
||||
"level":0
|
||||
"level": 0
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
@@ -435,10 +436,10 @@
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
{
|
||||
"email": "general@trojan-grpc",
|
||||
"password": "desdemona99",
|
||||
"level":0
|
||||
"level": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -458,7 +459,7 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@vless-grpc",
|
||||
"email": "general@vless-grpc",
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797",
|
||||
"level": 0
|
||||
}
|
||||
@@ -481,7 +482,7 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@vmess-grpc",
|
||||
"email": "general@vmess-grpc",
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797", //Change to your own UUID
|
||||
"level": 0
|
||||
}
|
||||
@@ -527,8 +528,8 @@
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@trojan-h2",
|
||||
{
|
||||
"email": "general@trojan-h2",
|
||||
"password": "desdemona99",
|
||||
"level": 0
|
||||
}
|
||||
@@ -548,7 +549,7 @@
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@vless-h2", //Change to your own email
|
||||
"email": "general@vless-h2", //Change to your own email
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797", //Change to your own UUID
|
||||
"level": 0
|
||||
}
|
||||
@@ -575,8 +576,8 @@
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"email":"general@vmess-h2",
|
||||
{
|
||||
"email": "general@vmess-h2",
|
||||
"id": "90e4903e-66a4-45f7-abda-fd5d5ed7f797",
|
||||
"level": 0
|
||||
}
|
||||
@@ -704,26 +705,22 @@
|
||||
"inboundTag": [
|
||||
"api"
|
||||
],
|
||||
"outboundTag": "api",
|
||||
"type": "field"
|
||||
"outboundTag": "api"
|
||||
},
|
||||
// {
|
||||
// // DNS Cache rule
|
||||
// "type": "field",
|
||||
// "port": 53,
|
||||
// "network": "tcp,udp",
|
||||
// "outboundTag": "DNS-Internal"
|
||||
// },
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "blocked",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "field", // Block BitTorrent protocol
|
||||
"outboundTag": "blocked",
|
||||
"outboundTag": "blocked", // Block BitTorrent protocol
|
||||
"protocol": [
|
||||
"bittorrent"
|
||||
]
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"bridge"
|
||||
],
|
||||
@@ -47,7 +46,6 @@
|
||||
"outboundTag": "interconn"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"bridge"
|
||||
],
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"port": "0-65535",
|
||||
"outboundTag": "proxy"
|
||||
}
|
||||
|
||||
@@ -35,14 +35,12 @@
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"external"
|
||||
],
|
||||
"outboundTag": "portal"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"interconn"
|
||||
],
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"bridge"
|
||||
],
|
||||
@@ -59,7 +58,6 @@
|
||||
"outboundTag": "interconn"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"bridge"
|
||||
],
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"port": "0-65535",
|
||||
"outboundTag": "proxy"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"port": "0-65535",
|
||||
"outboundTag": "proxy"
|
||||
}
|
||||
|
||||
@@ -115,7 +115,6 @@
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"external",
|
||||
"externalws"
|
||||
@@ -128,7 +127,6 @@
|
||||
"outboundTag": "portal"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"interconn"
|
||||
],
|
||||
@@ -137,7 +135,6 @@
|
||||
},
|
||||
// 以下路由只会在第一条路由没被匹配到的情况下使用,因此无需额外处理
|
||||
{
|
||||
"type": "field",
|
||||
"port": "0-65535",
|
||||
"outboundTag": "direct"
|
||||
}
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"bridge"
|
||||
],
|
||||
@@ -50,7 +49,6 @@
|
||||
"outboundTag": "interconn"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"bridge"
|
||||
],
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"port": "0-65535",
|
||||
"outboundTag": "proxy"
|
||||
}
|
||||
|
||||
@@ -45,14 +45,12 @@
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"external"
|
||||
],
|
||||
"outboundTag": "portal"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"interconn"
|
||||
],
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -22,7 +21,7 @@
|
||||
"settings": {
|
||||
"method": "chacha20-ietf-poly1305",
|
||||
"password": "{{ password }}"
|
||||
},
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp"
|
||||
}
|
||||
@@ -38,4 +37,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -63,4 +62,4 @@
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -54,4 +53,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -53,7 +53,6 @@
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -61,4 +60,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -45,4 +44,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,6 @@
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -67,4 +66,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -46,4 +45,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,69 +1,68 @@
|
||||
{
|
||||
"log":{},
|
||||
"inbounds":[
|
||||
"log": {},
|
||||
"inbounds": [
|
||||
{
|
||||
"port":"1080",
|
||||
"protocol":"socks",
|
||||
"settings":{
|
||||
"auth":"noauth",
|
||||
"udp":true
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"port":"1081",
|
||||
"protocol":"http",
|
||||
"settings":{}
|
||||
"port": "1081",
|
||||
"protocol": "http",
|
||||
"settings": {}
|
||||
}
|
||||
],
|
||||
"outbounds":[
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol":"vless",
|
||||
"settings":{
|
||||
"vnext":[
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address":"xx.com",
|
||||
"port":443,
|
||||
"users":[
|
||||
"address": "xx.com",
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id":"",
|
||||
"encryption":"none"
|
||||
"id": "",
|
||||
"encryption": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings":{
|
||||
"network":"h2",
|
||||
"security":"tls",
|
||||
"httpSettings":{
|
||||
"host":[
|
||||
"streamSettings": {
|
||||
"network": "h2",
|
||||
"security": "tls",
|
||||
"httpSettings": {
|
||||
"host": [
|
||||
"xx.com"
|
||||
],
|
||||
"path":"/path"
|
||||
"path": "/path"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag":"direct",
|
||||
"protocol":"freedom",
|
||||
"settings":{}
|
||||
"tag": "direct",
|
||||
"protocol": "freedom",
|
||||
"settings": {}
|
||||
},
|
||||
{
|
||||
"tag":"blocked",
|
||||
"protocol":"blackhole",
|
||||
"settings":{}
|
||||
"tag": "blocked",
|
||||
"protocol": "blackhole",
|
||||
"settings": {}
|
||||
}
|
||||
],
|
||||
"routing":{
|
||||
"domainStrategy":"IPOnDemand",
|
||||
"rules":[
|
||||
"routing": {
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [
|
||||
{
|
||||
"type":"field",
|
||||
"ip":[
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
"outboundTag":"direct"
|
||||
"outboundTag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -52,4 +51,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,73 +1,74 @@
|
||||
{
|
||||
"log":{},
|
||||
"inbounds":[
|
||||
"log": {},
|
||||
"inbounds": [
|
||||
{
|
||||
"port":"1080",
|
||||
"protocol":"socks",
|
||||
"settings":{
|
||||
"auth":"noauth",
|
||||
"udp":true
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"port":"1081",
|
||||
"protocol":"http",
|
||||
"settings":{}
|
||||
"port": "1081",
|
||||
"protocol": "http",
|
||||
"settings": {}
|
||||
}
|
||||
],
|
||||
"outbounds":[
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol":"vless",
|
||||
"settings":{
|
||||
"vnext":[
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address":"xx.com",
|
||||
"port":443,
|
||||
"users":[
|
||||
"address": "xx.com",
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id":"",
|
||||
"encryption":"none"
|
||||
"id": "",
|
||||
"encryption": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings":{
|
||||
"network":"http",
|
||||
"security":"tls",
|
||||
"httpSettings":{
|
||||
"host":[
|
||||
"streamSettings": {
|
||||
"network": "http",
|
||||
"security": "tls",
|
||||
"httpSettings": {
|
||||
"host": [
|
||||
"xx.com"
|
||||
],
|
||||
"path":"/path"
|
||||
"path": "/path"
|
||||
}
|
||||
},
|
||||
"tlsSettings":{
|
||||
"alpn":["h3"],
|
||||
"serverName":"xx.com"
|
||||
"tlsSettings": {
|
||||
"alpn": [
|
||||
"h3"
|
||||
],
|
||||
"serverName": "xx.com"
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag":"direct",
|
||||
"protocol":"freedom",
|
||||
"settings":{}
|
||||
"tag": "direct",
|
||||
"protocol": "freedom",
|
||||
"settings": {}
|
||||
},
|
||||
{
|
||||
"tag":"blocked",
|
||||
"protocol":"blackhole",
|
||||
"settings":{}
|
||||
"tag": "blocked",
|
||||
"protocol": "blackhole",
|
||||
"settings": {}
|
||||
}
|
||||
],
|
||||
"routing":{
|
||||
"domainStrategy":"IPOnDemand",
|
||||
"rules":[
|
||||
"routing": {
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [
|
||||
{
|
||||
"type":"field",
|
||||
"ip":[
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
"outboundTag":"direct"
|
||||
"outboundTag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,12 +28,14 @@
|
||||
"tlsSettings": {
|
||||
// "rejectUnknownSni": true,
|
||||
"minVersion": "1.3",
|
||||
"alpn": ["h3"],
|
||||
"alpn": [
|
||||
"h3"
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"certificateFile": "CA.crt", // 换成你的证书,绝对路径
|
||||
"keyFile": "priv.key" // 换成你的私钥,绝对路径
|
||||
}
|
||||
{
|
||||
"certificateFile": "CA.crt", // 换成你的证书,绝对路径
|
||||
"keyFile": "priv.key" // 换成你的私钥,绝对路径
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -55,7 +57,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -63,4 +64,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,73 +1,74 @@
|
||||
{
|
||||
"log":{},
|
||||
"inbounds":[
|
||||
"log": {},
|
||||
"inbounds": [
|
||||
{
|
||||
"port":"1080",
|
||||
"protocol":"socks",
|
||||
"settings":{
|
||||
"auth":"noauth",
|
||||
"udp":true
|
||||
"port": "1080",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"port":"1081",
|
||||
"protocol":"http",
|
||||
"settings":{}
|
||||
"port": "1081",
|
||||
"protocol": "http",
|
||||
"settings": {}
|
||||
}
|
||||
],
|
||||
"outbounds":[
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol":"vless",
|
||||
"settings":{
|
||||
"vnext":[
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address":"xx.com",
|
||||
"port":443,
|
||||
"users":[
|
||||
"address": "xx.com",
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id":"",
|
||||
"encryption":"none"
|
||||
"id": "",
|
||||
"encryption": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings":{
|
||||
"network":"http",
|
||||
"security":"tls",
|
||||
"httpSettings":{
|
||||
"host":[
|
||||
"streamSettings": {
|
||||
"network": "http",
|
||||
"security": "tls",
|
||||
"httpSettings": {
|
||||
"host": [
|
||||
"xx.com"
|
||||
],
|
||||
"path":"/path"
|
||||
"path": "/path"
|
||||
},
|
||||
"tlsSettings":{
|
||||
"alpn":["h3"],
|
||||
"serverName":"xx.com"
|
||||
"tlsSettings": {
|
||||
"alpn": [
|
||||
"h3"
|
||||
],
|
||||
"serverName": "xx.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag":"direct",
|
||||
"protocol":"freedom",
|
||||
"settings":{}
|
||||
"tag": "direct",
|
||||
"protocol": "freedom",
|
||||
"settings": {}
|
||||
},
|
||||
{
|
||||
"tag":"blocked",
|
||||
"protocol":"blackhole",
|
||||
"settings":{}
|
||||
"tag": "blocked",
|
||||
"protocol": "blackhole",
|
||||
"settings": {}
|
||||
}
|
||||
],
|
||||
"routing":{
|
||||
"domainStrategy":"IPOnDemand",
|
||||
"rules":[
|
||||
"routing": {
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [
|
||||
{
|
||||
"type":"field",
|
||||
"ip":[
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
"outboundTag":"direct"
|
||||
"outboundTag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -52,4 +51,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -69,4 +68,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"domain": [
|
||||
"geosite:cn",
|
||||
"geosite:private"
|
||||
@@ -14,7 +13,6 @@
|
||||
"outboundTag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:cn",
|
||||
"geoip:private"
|
||||
@@ -90,4 +88,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:cn"
|
||||
],
|
||||
@@ -81,4 +80,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,7 +51,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -59,4 +58,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,10 +60,11 @@
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": ["geoip:private"],
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
"outboundTag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"port": 1234 ,
|
||||
"port": 1234,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
@@ -21,13 +21,13 @@
|
||||
"path": "/Path2WS" // 填写你的 path
|
||||
}
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
@@ -46,7 +46,6 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:cn",
|
||||
"geoip:private"
|
||||
@@ -55,4 +54,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,14 +8,12 @@
|
||||
"outboundTag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:cn"
|
||||
],
|
||||
"outboundTag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"domain": [
|
||||
"geosite:cn"
|
||||
],
|
||||
@@ -72,6 +70,5 @@
|
||||
"protocol": "blackhole",
|
||||
"tag": "block"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -2,20 +2,18 @@
|
||||
"routing": {
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:cn"
|
||||
],
|
||||
"outboundTag": "block"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"domain": [
|
||||
"geosite:cn"
|
||||
],
|
||||
"outboundTag": "block"
|
||||
}
|
||||
{
|
||||
"ip": [
|
||||
"geoip:cn"
|
||||
],
|
||||
"outboundTag": "block"
|
||||
},
|
||||
{
|
||||
"domain": [
|
||||
"geosite:cn"
|
||||
],
|
||||
"outboundTag": "block"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inbounds": [
|
||||
@@ -43,8 +41,8 @@
|
||||
// 目标网站最低标准:国外网站,支持 TLSv1.3 与 H2,域名非跳转用(主域名可能被用于跳转到 www)。详见 https://github.com/XTLS/REALITY
|
||||
"target": "example.com:443",
|
||||
"serverNames": [
|
||||
// 客户端可用的 serverName 列表,暂不支持 * 通配符
|
||||
// 执行 xray tls ping 目标网站网址,填 "Allowed domains" 的值
|
||||
// 客户端可用的 serverName 列表,暂不支持 * 通配符
|
||||
// 执行 xray tls ping 目标网站网址,填 "Allowed domains" 的值
|
||||
],
|
||||
"privateKey": "", // 执行 xray x25519 生成,填 "Private key" 的值
|
||||
"shortIds": [ // 客户端可用的 shortId 列表,可用于区分不同的客户端
|
||||
@@ -74,6 +72,5 @@
|
||||
"protocol": "blackhole",
|
||||
"tag": "block"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -20,8 +20,8 @@
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id": "", //填写你的 UUID
|
||||
"encryption": "none"
|
||||
"id": "", //填写你的 UUID
|
||||
"encryption": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -75,7 +75,6 @@
|
||||
"domainStrategy": "IPOnDemand",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -83,4 +82,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -47,4 +46,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,10 @@
|
||||
"protocol": "socks",
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": ["http", "tls"],
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
],
|
||||
"routeOnly": false
|
||||
},
|
||||
"settings": {
|
||||
@@ -28,7 +31,10 @@
|
||||
"protocol": "http",
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": ["http", "tls"],
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
],
|
||||
"routeOnly": false
|
||||
},
|
||||
"settings": {
|
||||
@@ -104,25 +110,29 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"inboundTag": ["api"],
|
||||
"inboundTag": [
|
||||
"api"
|
||||
],
|
||||
"outboundTag": "api",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "5708766234462982042",
|
||||
"type": "field",
|
||||
"outboundTag": "direct",
|
||||
"ip": ["127.0.0.1", "192.168.1.1"],
|
||||
"ip": [
|
||||
"127.0.0.1",
|
||||
"192.168.1.1"
|
||||
],
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "4875564606963903266",
|
||||
"type": "field",
|
||||
"outboundTag": "proxy",
|
||||
"domain": ["dns.digitalsize.net"],
|
||||
"domain": [
|
||||
"dns.digitalsize.net"
|
||||
],
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,14 +6,14 @@
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"port": "80",
|
||||
"network": "udp",
|
||||
"outboundTag": "block"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"ip": ["geoip:private"],
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
"outboundTag": "block"
|
||||
}
|
||||
]
|
||||
@@ -39,9 +39,14 @@
|
||||
"show": false,
|
||||
"dest": "www.yahoo.com:443",
|
||||
"xver": 0,
|
||||
"serverNames": ["www.yahoo.com", "news.yahoo.com"],
|
||||
"serverNames": [
|
||||
"www.yahoo.com",
|
||||
"news.yahoo.com"
|
||||
],
|
||||
"privateKey": "kOsBHSgxhAfCeQIQyJvupiXTmQrMmsqi6y6Wc5OQZXc",
|
||||
"shortIds": ["d49d578f280fd83a"]
|
||||
"shortIds": [
|
||||
"d49d578f280fd83a"
|
||||
]
|
||||
},
|
||||
"grpcSettings": {
|
||||
"serviceName": ""
|
||||
@@ -49,7 +54,11 @@
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": ["http", "tls", "quic"]
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls",
|
||||
"quic"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -71,4 +80,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -88,4 +87,4 @@
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -68,4 +67,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -62,4 +61,4 @@
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -50,4 +49,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -59,4 +58,4 @@
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -50,4 +49,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -41,4 +40,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -62,4 +61,4 @@
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -50,4 +49,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -57,4 +56,4 @@
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
@@ -42,4 +41,4 @@
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user