X/lib/wgcf.json
2024-04-08 17:22:19 +08:00

277 lines
4.5 KiB
JSON

{
"log": {
"loglevel": "warn"
},
"dns": {
"disableFallbackIfMatch": true,
"hosts": {},
"queryStrategy": "UseIPv4",
"servers": [
{
"address": "tcp://1.1.1.1",
"concurrency": true
},
{
"address": "http+local://223.5.5.5/dns-query",
"concurrency": true,
"domains": [
"full:cdn-all.xn--b6gac.eu.org"
],
"skipFallback": true
}
]
},
"outbounds": [
{
"settings": {
"secretKey": "KEY",
"mtu": 1400,
"peers": [
{
"publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
"endpoint" : "engage.cloudflareclient.com:2408"
}
],
"address": [
"172.16.0.2/32",
"2606:4700:110:893c:845c:536b:5565:8106/128"
],
"kernelMode": false
},
"protocol": "wireguard",
"streamSettings": {
"network": "tcp"
},
"tag":"directwarp"
},
{
"settings": {
"secretKey": "KEY",
"mtu": 1280,
"peers": [
{
"publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
"endpoint" : "engage.cloudflareclient.com:2408"
}
],
"address": [
"172.16.0.2/32",
"2606:4700:110:893c:845c:536b:5565:8106/128"
],
"kernelMode": false
},
"protocol": "wireguard",
"streamSettings": {
"network": "tcp"
},
"tag":"warpoverwarp",
"proxySettings": {
"tag": "directwarp",
"transportLayer": true
}
},
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "cdn-all.xn--b6gac.eu.org",
"port": 443,
"users": [
{
"id": "VLESSID",
"encryption": "none",
"level":0
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "VLESSCFWORKERNAME",
"allowInsecure": true
},
"wsSettings": {
"headers": {
"Host": "VLESSCFWORKERNAME"
},
"path": "/?ed=2048"
}
},
"tag":"vlesscf"
},
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "cdn-all.xn--b6gac.eu.org",
"port": 443,
"users": [
{
"id": "VLESSID",
"encryption": "none",
"level":0
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "VLESSCFWORKERNAME",
"allowInsecure": true
},
"wsSettings": {
"headers": {
"Host": "VLESSCFWORKERNAME"
},
"path": "/?ed=2048"
}
},
"tag":"vlesscfoverwarp",
"proxySettings": {
"tag": "directwarp",
"transportLayer": true
}
}
]
,
"inbounds":[
{
"listen": "0.0.0.0",
"port": 10070,
"protocol": "http",
"settings": {
"allowTransparent": true
},
"sniffing": {
"destOverride": [
"http",
"tls",
"quic"
],
"enabled": true,
"routeOnly": true
},
"tag": "http"
},
{
"port": 10071,
"protocol": "socks",
"settings": {
"udp": true,
"auth": "noauth"
},
"tag":"socks5",
"sniffing": {
"destOverride": [
"http",
"tls",
"quic"
],
"enabled": true,
"routeOnly": true
}
},
{
"port": 10072,
"protocol": "socks",
"settings": {
"udp": true,
"auth": "noauth"
},
"tag":"socks5overvless",
"sniffing": {
"destOverride": [
"http",
"tls",
"quic"
],
"enabled": true,
"routeOnly": true
}
},
{
"port": 10073,
"protocol": "socks",
"settings": {
"udp": true,
"auth": "noauth"
},
"tag":"socks5overwarpoverwarp",
"sniffing": {
"destOverride": [
"http",
"tls",
"quic"
],
"enabled": true,
"routeOnly": true
}
},
{
"port": 10074,
"protocol": "socks",
"settings": {
"udp": true,
"auth": "noauth"
},
"tag":"socks5overvlessoverwarp",
"sniffing": {
"destOverride": [
"http",
"tls",
"quic"
],
"enabled": true,
"routeOnly": true
}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": [
"socks5"
],
"outboundTag": "directwarp"
},
{
"type": "field",
"inboundTag": [
"socks5overvless"
],
"outboundTag": "vlesscf"
},
{
"type": "field",
"inboundTag": [
"http"
],
"outboundTag": "vlesscf"
},
{
"type": "field",
"inboundTag": [
"socks5overwarpoverwarp"
],
"outboundTag": "warpoverwarp"
},
{
"type": "field",
"inboundTag": [
"socks5overvlessoverwarp"
],
"outboundTag": "vlesscfoverwarp"
}
]
}
}