Update config.jsonc

This commit is contained in:
patterniha 2025-02-09 09:34:38 +03:30 committed by GitHub
parent c9a5520fff
commit 6368803820
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,133 +1,150 @@
{
"log": {
"loglevel": "debug"
"dns": {
"servers": ["h2c://8.8.8.8/dns-query"],
"tag": "dns-query"
},
"inbounds": [
//
{
"port": 4431,
"listen": "127.0.0.1",
"tag": "tls-decrypt",
"tag": "mitim-h11",
"protocol": "dokodemo-door",
"settings": {
"network": "tcp",
// TLS SNI
"port": 443,
"followRedirect": true
},
"streamSettings": {
"security": "tls",
"tlsSettings": {
// http/1.1, http/1.1
// ps: http/1.1
"alpn": [
"h2",
"http/1.1"
],
"alpn": ["http/1.1"],
"certificates": [
{
"usage": "issue",
"buildChain": "true",
// 使 xray tls cert -ca
// CA MITM CA
// 访
"certificate": [],
"key": []
"certificateFile": "mycert.crt",
"keyFile": "mycert.key"
}
]
}
}
},
//
{
"port": 10801,
"port": 4432,
"listen": "127.0.0.1",
"tag": "mitim-h2",
"protocol": "dokodemo-door",
"settings": {
"network": "tcp",
"port": 443,
"followRedirect": true
},
"streamSettings": {
"security": "tls",
"tlsSettings": {
"alpn": ["h2","http/1.1"],
"certificates": [
{
"usage": "issue",
"certificateFile": "mycert.crt",
"keyFile": "mycert.key"
}
]
}
}
},
{
"port": 10808,
"listen": "127.0.0.1",
"tag": "socks-in",
"protocol": "socks",
"sniffing": {
//
"enabled": true,
"destOverride": [
"http",
"tls"
]
"destOverride": ["http","tls"]
}
}
],
"outbounds": [
// tls-decrypt
{
"tag": "redirect-out",
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "ForceIP"
}
},
{
"tag": "dns-out",
"protocol": "dns"
},
{
"tag": "redirect-out-h11",
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:4431"
}
},
// HTTPS
{
"tag": "redirect-out-h2",
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:4432"
}
},
{
"tag": "tls-repack",
"protocol": "freedom",
"settings": {
// IPIP
"redirect": "104.20.19.168:443"
"domainStrategy": "ForceIP"
},
"streamSettings": {
"security": "tls",
"tlsSettings": {
// fromMitm alpn http/1.1(wss) 使alpn, v25.2+
// alpn()
"alpn": [
"fromMitm"
],
// SNI, SNI
// ip, SNI SNI
"serverName": "11.45.1.4",
// v25.2+
//
"verifyPeerCertInNames": [
"e-hentai.org",
// Freedom SNI
"fromMitm"
]
"fingerprint": "chrome",
"serverName": "www.bing.com",
"verifyPeerCertInNames": ["fromMitM"],
"alpn": ["fromMitM"]
}
}
},
//
{
"tag": "direct",
"protocol": "freedom"
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"inboundTag": [
"tls-decrypt"
],
// tls-repark (IPSNI),
// freedom HTTPS
// tls-decrypt followRedirect,
"domain": [
"e-hentai.org"
],
"outboundTag": "tls-repack"
"outboundTag": "dns-out",
"inboundTag": ["socks-in"],
"port": 53
},
{
"inboundTag": [
"socks-in"
],
// mitm
"domain": [
"e-hentai.org"
],
"outboundTag": "redirect-out"
"outboundTag": "tls-repack",
"inboundTag": ["mitim-h11", "mitim-h2", "dns-query"]
},
{
"inboundTag": [
"socks-in"
],
"outboundTag": "direct"
"outboundTag": "redirect-out-h11",
"inboundTag": ["socks-in"],
"protocol": "tls",
"domain": ["domain:googlevideo.com"]
},
{
"outboundTag": "redirect-out-h2",
"inboundTag": ["socks-in"],
"protocol": "tls",
"domain": [
"geosite:google",
"geosite:twitter",
"geosite:reddit",
"geosite:facebook",
"geosite:instagram",
"geosite:whatsapp"
]
},
{
"outboundTag": "direct",
"inboundTag": ["socks-in"]
}
]
}
}