2023-03-12 14:55:48 +05:00

65 lines
1.5 KiB
JSON

{
"log": {},
"inbounds": [
{
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
}
},
{
"port": "1081",
"protocol": "http",
"settings": {}
}
],
"outbounds": [
{
"protocol": "trojan",
"settings": {
"servers": [
{
"address": "example.com",
"port": 443,
"password": "" //fill in your password
}
]
},
"streamSettings": {
"network": "grpc",
"security": "tls",
"grpcSettings": {
"serviceName": "", //fill in your ServiceName
//"idle_timeout": 60, // When there is no data transfer during this time, a health check will be performed. Might solve some "cut-off" issues.
//"initial_windows_size": 65536, // Prevent Cloudflare CDN from sending unexpected h2 GOAWAY frames to close existing connections when passing through Cloudflare CDN.
//"permit_without_stream": true // Prevent Cloudflare CDN from closing connections when passing through Cloudflare CDN and idle (no sub-connections).
}
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "direct"
}
]
}
}