How to use SpiltHttp? #3727
-
Hi, I'm currently using Xray v1.8.23 and here is my configuration file: {
"log": {
"access": "",
"error": "",
"loglevel": "debug"
},
"inbounds": [{
"port": 19106,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "<MyUUID>",
"alterId": 0
}]
},
"streamSettings": {
"network": "http",
"httpSettings": {
"path": "/hanadialer",
"host": "<MyHost>",
"scMaxEachPostBytes": "786432-1048576",
"scMaxConcurrentPosts": 256,
"scMinPostsIntervalMs": "24-56",
"noSSEHeader": false
}
}
}, {
"tag": "socks",
"port": 19108,
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic",
"fakedns",
"fakedns+others"
],
"routeOnly": false
},
"settings": {
"auth": "password",
"accounts": [{
"user": "<USERNAME>",
"pass": "<PASSWD>"
}],
"udp": true,
"allowTransparent": true
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
}, {
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"rules": [{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}]
}
} I have started Xray on my server and tried connecting using the client. Whether I use the CDN back-to-origin on port 443 or connect directly via the raw port, I am unable to use the proxy properly. Here are the server logs for HTTPS:
And for HTTP:
However, when I use the Socks protocol, the proxy works fine:
Could anyone help me identify if there is a misconfiguration or other problems causing the SplitHttp proxy to not work? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
does not refer to splithttp at all. it configures the http proxy protocol. I suggest to follow these examples: https://github.com/XTLS/Xray-examples/tree/main/VLESS-TLS-SplitHTTP-CaddyNginx there is also a conceptual problem: you have "splithttp" and socks both as inbound, but in fact on the client side, socks should be inbound, splithttp should be outbound. on the server, splithttp should be inbound and freedom should be outbound |
Beta Was this translation helpful? Give feedback.
-
When I set the SplitHttp inbound to: {
"port": 19106,
"protocol": "vless",
"settings": {
"clients": [{
"id": "ec448150-b64f-4ab3-8862-618bfdcf2c26",
"alterId": 0
}],
"decryption": "none"
},
"streamSettings": {
"network": "splithttp",
"splithttpSettings": {
"path": "/hanadialer",
"host": "<MyHost>",
"scMaxEachPostBytes": "786432-1048576",
"scMaxConcurrentPosts": 256,
"scMinPostsIntervalMs": "24-56",
"noSSEHeader": false
}
}
} it worked! Thanks for your guidance. |
Beta Was this translation helpful? Give feedback.
does not refer to splithttp at all. it configures the http proxy protocol. I suggest to follow these examples: https://github.com/XTLS/Xray-examples/tree/main/VLESS-TLS-SplitHTTP-CaddyNginx
there is also a conceptual problem: you have "splithttp" and socks both as inbound, but in fact on the client side, socks should be inbound, splithttp should be outbound. on the server, splithttp should be inbound and freedom should be outbound