|
|
@ -3,65 +3,53 @@ |
|
|
|
"loglevel": "warning" |
|
|
|
"loglevel": "warning" |
|
|
|
}, |
|
|
|
}, |
|
|
|
"routing": { |
|
|
|
"routing": { |
|
|
|
"domainStratedy": "AsIs", |
|
|
|
"domainStrategy": "AsIs", |
|
|
|
"rules": [ |
|
|
|
"rules": [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
"type": "field", |
|
|
|
"type": "field", |
|
|
|
"ip": [ |
|
|
|
"ip": [ |
|
|
|
"geoip:private" |
|
|
|
"geoip:private" |
|
|
|
], |
|
|
|
], |
|
|
|
"tag": "direct" |
|
|
|
"outboundTag": "block" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
"inbounds": [ |
|
|
|
"inbounds": [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
"listen": "127.0.0.1", |
|
|
|
"listen": "0.0.0.0", |
|
|
|
"port": "1080", |
|
|
|
"port": 1234, |
|
|
|
"protocol": "socks", |
|
|
|
|
|
|
|
"settings": { |
|
|
|
|
|
|
|
"auth": "noauth", |
|
|
|
|
|
|
|
"udp": "true", |
|
|
|
|
|
|
|
"ip": "127.0.0.1" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"listen": "127.0.0.1", |
|
|
|
|
|
|
|
"port": "1081", |
|
|
|
|
|
|
|
"protocol": "http" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"outbounds": [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"protocol": "vmess", |
|
|
|
"protocol": "vmess", |
|
|
|
"settings": { |
|
|
|
"settings": { |
|
|
|
"vnext": [ |
|
|
|
"clients": [ |
|
|
|
{ |
|
|
|
|
|
|
|
"address": "", |
|
|
|
|
|
|
|
"port": 1234, |
|
|
|
|
|
|
|
"user": [ |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
"id": "", |
|
|
|
"id": "", |
|
|
|
"alterId": 4, |
|
|
|
"alterId": 4 |
|
|
|
"security": "none" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
], |
|
|
|
|
|
|
|
"disableInsecureEncryption": false |
|
|
|
}, |
|
|
|
}, |
|
|
|
"streamSettings": { |
|
|
|
"streamSettings": { |
|
|
|
"network": "tcp", |
|
|
|
"network": "tcp", |
|
|
|
"security": "tls", |
|
|
|
"security": "tls", |
|
|
|
"tlsSettings": { |
|
|
|
"tlsSettings": { |
|
|
|
"serverName": "example.domain", |
|
|
|
"certificates": [ |
|
|
|
"allowInsecure": false |
|
|
|
{ |
|
|
|
|
|
|
|
"certificateFile": "/path/to/certificate.crt", |
|
|
|
|
|
|
|
"keyFile": "/path/to/key.key" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
"tag": "proxy" |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"outbounds": [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
"protocol": "freedom", |
|
|
|
"protocol": "freedom", |
|
|
|
"tag": "direct" |
|
|
|
"tag": "direct" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"protocol": "blackhole", |
|
|
|
|
|
|
|
"tag": "block" |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|