2022-11-03 01:17:10 +00:00
{
"log" : {
"loglevel" : "warning"
} ,
"routing" : {
"domainStrategy" : "IPIfNonMatch" ,
"rules" : [
{
"type" : "field" ,
"domain" : [
"geosite:cn" ,
"geosite:private"
] ,
"outboundTag" : "direct"
} ,
{
"type" : "field" ,
"ip" : [
"geoip:cn" ,
"geoip:private"
] ,
"outboundTag" : "direct"
}
]
} ,
"inbounds" : [
{
2023-03-12 01:37:52 +00:00
"listen" : "127.0.0.1" , // Fill in 0.0.0.0 to allow connections from LAN
"port" : 10808 , // local socks listening port
2022-11-03 01:17:10 +00:00
"protocol" : "socks" ,
"settings" : {
"udp" : true
} ,
"sniffing" : {
"enabled" : true ,
"destOverride" : [
"http" ,
"tls"
]
}
} ,
{
2023-03-12 01:37:52 +00:00
"listen" : "127.0.0.1" , // Fill in "0.0.0.0" to allow connections from LAN
"port" : 10809 , // Local http listening port
2022-11-03 01:17:10 +00:00
"protocol" : "http" ,
"sniffing" : {
"enabled" : true ,
"destOverride" : [
"http" ,
"tls"
]
}
}
] ,
"outbounds" : [
{
"protocol" : "vless" ,
"settings" : {
"vnext" : [
{
2023-03-12 01:37:52 +00:00
"address" : "" , // Address, domain name or IP of the server
"port" : 443 , // Port, consistent with the server
2022-11-03 01:17:10 +00:00
"users" : [
{
2023-03-12 01:37:52 +00:00
"id" : "" , // User ID, consistent with the server
2022-11-03 01:17:10 +00:00
"encryption" : "none" ,
"flow" : "xtls-rprx-vision"
}
]
}
]
} ,
"streamSettings" : {
"network" : "tcp" ,
"security" : "tls" ,
"tlsSettings" : {
2023-03-12 01:37:52 +00:00
"serverName" : "" , // SNI, if "address" is filled with the domain name of the server, it can be left blank. If "address" is filled with the IP of the server, fill in the domain name contained in the certificate of the server here
2022-11-08 03:37:15 +00:00
"allowInsecure" : false ,
2023-03-12 01:37:52 +00:00
"fingerprint" : "chrome" // Used to configure the fingerprint of the specified TLS Client Hello, Xray will simulate the TLS fingerprint through the uTLS library, or generate it randomly
2022-11-03 01:17:10 +00:00
}
} ,
"tag" : "proxy"
} ,
{
"protocol" : "freedom" ,
"tag" : "direct"
2023-03-07 04:57:12 +00:00
} ,
{
"protocol" : "blackhole" ,
"tag" : "block"
2022-11-03 01:17:10 +00:00
}
]
}