1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
| { "log": { "loglevel": "warning" }, "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", "ip": [ "geoip:cn", "geoip:private" ], "outboundTag": "block" } ] }, "inbounds": [ { "port": 443, //端口 "protocol": "vless", //协议类型 "settings": { "clients": [ { "id": "uuid", //替换为你的uuid "flow": "xtls-rprx-vision" //流控 } ], "decryption": "none", "fallbacks": [ { "dest": 10010, //Trojan协议的分流端口 "xver": 1 }, { "path": "/vlessws", //vless+ws的分流路径 "dest": 10011, //分流端口 "xver": 1 }, { "path": "/vmessws", //vmess+ws的分流路径 "dest": 10012, //分流端口 "xver": 1 } ] }, "streamSettings": { "network": "tcp", "security": "tls", "tlsSettings": { "rejectUnknownSni": true, //服务端接收到的 SNI 与证书域名不匹配即拒绝 TLS 握手 "fingerprint": "chrome", //TLS指纹伪装,伪装为chrome浏览器指纹 "allowInsecure": false, //不允许不安全连接(仅用于客户端) "alpn": [ "http/1.1","h2" ], "certificates": [ { "ocspStapling": 3600, //OCSP 装订更新,与证书热重载的时间间隔 "certificateFile": "/etc/ssl/private/cert.crt", //证书位置,绝对路径 "keyFile": "/etc/ssl/private/private.key" //私钥位置,绝对路径 } ] } }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } }, { "port": 10010, //trojan节点的分流端口 "listen": "127.0.0.1", "protocol": "trojan", "settings": { "clients": [ { "password": "pass" //替换为你的密码 } ], "fallbacks": [ { "alpn": "h2", //h2回落 "dest": 81, //h2回落端口 "xver": 1 }, { "dest": 82, //http/1.1回落端口 "xver": 1 } ] }, "streamSettings": { "network": "tcp", "security": "none", "tcpSettings": { "acceptProxyProtocol": true } } }, { "port": 10011, //vless+ws节点的分流端口 "listen": "127.0.0.1", "protocol": "vless", "settings": { "clients": [ { "id": "uuid" //替换为你的uuid } ], "decryption": "none" }, "streamSettings": { "network": "ws", "security": "none", "wsSettings": { "acceptProxyProtocol": true, //若使用Nginx/Caddy等反代WS,需要删掉这行 "path": "/vlessws" //ws的路径,需要和分流的一致 } } }, { "port": 10012, //vmess+ws节点的分流端口 "listen": "127.0.0.1", "protocol": "vmess", "settings": { "clients": [ { "id": "uuid" //替换为你的uuid } ] }, "streamSettings": { "network": "ws", "security": "none", "wsSettings": { "acceptProxyProtocol": true, //若使用Nginx/Caddy等反代WS,需要删掉这行 "path": "/vmessws" //ws的路径,需要和分流的一致 } } } ], "outbounds": [ { "protocol": "freedom", "tag": "direct" }, { "protocol": "blackhole", "tag": "block" } ] }
|