[Clash模板] XHTTP stream-up + Reality + 上下行v4/v6分离+ xmux + ..... #6078
Chen017
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
|
Hi, thanks for sharing this template — really helpful! I'm trying to replicate it on my own VPS. I've already generated my UUID, Reality keypair, and 4 short IDs. The part I'm unsure about is choosing the target domains (目标域名甲/乙/丙) for the Reality A few questions:
Thanks again! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
配置了一下xhttp,跑通了,不知道有什么可以改进的,发出来给大家看看
准确地说组合是 XHTTP stream-up + Reality + 上下行v4/v6分离+ xmux + BBR + TFO + MPTCP+ Header padding (Referer)
如果要照抄记得更新mihomo内核到最新
服务端
{ "log": { "loglevel": "warning" }, "dns": { "servers": ["localhost"] }, "inbounds": [ { "tag": "public_443_v6", "listen": "::", "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "用户UUID", "flow": "xtls-rprx-vision", "email": "vision-us-v6" } ], "decryption": "none", "fallbacks": [ { "dest": "@xhttp_inner" } ] }, "streamSettings": { "network": "raw", "security": "reality", "realitySettings": { "show": false, "dest": "目标域名甲:443", "serverNames": [ "目标域名甲" ], "privateKey": "服务端私钥", "shortIds": [ "", "短ID甲" ] }, "sockopt": { "tcpFastOpen": true, "tcpCongestion": "bbr" } }, "sniffing": { "enabled": true, "destOverride": ["http", "tls", "quic"], "routeOnly": true } }, { "tag": "public_443_v4", "listen": "0.0.0.0", "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "用户UUID", "flow": "xtls-rprx-vision", "email": "vision-us-v4" } ], "decryption": "none", "fallbacks": [ { "dest": "@xhttp_inner" } ] }, "streamSettings": { "network": "raw", "security": "reality", "realitySettings": { "show": false, "dest": "目标域名乙:443", "serverNames": [ "目标域名乙", "目标域名丙" ], "privateKey": "服务端私钥", "shortIds": [ "", "短ID乙", "短ID丙", "短ID丁" ] }, "sockopt": { "tcpFastOpen": true, "tcpCongestion": "bbr" } }, "sniffing": { "enabled": true, "destOverride": ["http", "tls", "quic"], "routeOnly": true } }, { "tag": "local_xhttp_stream_up", "listen": "@xhttp_inner", "protocol": "vless", "settings": { "clients": [ { "id": "用户UUID", "flow": "", "email": "xhttp-stream-up" } ], "decryption": "none" }, "streamSettings": { "network": "xhttp", "security": "none", "xhttpSettings": { "mode": "stream-up", "host": "", "path": "/api/v1/updates", "uplinkMethod": "PUT", "noSSEHeader": false, "xPaddingBytes": "100-1000", "xPaddingObfsMode": true, "xPaddingPlacement": "queryInHeader", "xPaddingMethod": "tokenish", "xPaddingKey": "x_padding", "xPaddingHeader": "Referer", "sessionPlacement": "path", "seqPlacement": "path", "scStreamUpServerSecs": "20-80", "xmux": { "maxConcurrency": "16-32", "cMaxReuseTimes": 0, "hMaxRequestTimes": "600-900", "hMaxReusableSecs": "1800-3000", "hKeepAlivePeriod": 0 } } }, "sniffing": { "enabled": true, "destOverride": ["http", "tls", "quic"], "routeOnly": true } } ], "outbounds": [ { "protocol": "freedom", "tag": "direct" }, { "protocol": "blackhole", "tag": "block" } ], "routing": { "domainStrategy": "UseIP", "rules": [ { "type": "field", "ip": [ "0.0.0.0/8", "10.0.0.0/8", "100.64.0.0/10", "127.0.0.0/8", "169.254.0.0/16", "172.16.0.0/12", "192.0.0.0/24", "192.168.0.0/16", "198.18.0.0/15", "198.51.100.0/24", "203.0.113.0/24", "::1/128", "fc00::/7", "fe80::/10" ], "outboundTag": "block" }, { "type": "field", "protocol": ["bittorrent"], "outboundTag": "block" } ] } }客户端mihomo
Beta Was this translation helpful? Give feedback.
All reactions