| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- {
- "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": [
- {
- "listen": "127.0.0.1", // 填 0.0.0.0 表示允许来自局域网的连接
- "port": 10808, // v2rayN 本地socks监听端口
- "protocol": "socks",
- "settings": {
- "udp": true
- },
- "sniffing": {
- "enabled": true,
- "destOverride": [
- "http",
- "tls"
- ]
- }
- },
- {
- "listen": "127.0.0.1", // 填 "0.0.0.0" 表示允许来自局域网的连接
- "port": 10809, // v2rayN 本地http监听端口
- "protocol": "http",
- "sniffing": {
- "enabled": true,
- "destOverride": [
- "http",
- "tls"
- ]
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "vless",
- "settings": {
- "vnext": [
- {
- "address": "", // 地址,服务端的域名或IP
- "port": 443, // 端口,与服务端一致
- "users": [
- {
- "id": "", // 用户ID,与服务端一致
- "encryption": "none",
- "flow": "xtls-rprx-vision"
- }
- ]
- }
- ]
- },
- "streamSettings": {
- "network": "tcp",
- "security": "tls",
- "tlsSettings": {
- "serverName": "", // SNI,如果"address"填的是服务端的域名,可留空,如果"address"填的是服务端的IP,此处填服务端的证书中包含的域名
- "allowInsecure": false,
- "fingerprint": "chrome" // 用于配置指定 TLS Client Hello 的指纹,Xray 将通过 uTLS 库 模拟 TLS 指纹,或随机生成
- }
- },
- "tag": "proxy"
- },
- {
- "protocol": "freedom",
- "tag": "direct"
- },
- {
- "protocol": "blackhole",
- "tag": "block"
- }
- ]
- }
|