Closed mokhtarabadi closed 1 year ago
Set alpn
to http/1.1
Set
alpn
tohttp/1.1
I did it before, I change it to http/1.1
and h2
, but no chance also I fill in other properties like path
and sni
but always I get a 404 Not Found
error
I think (not sure) maybe Xray(R) not calling the fallback destination, because I didn't any logs about in the Nginx fallback server access logs
Also for the correct path, meaning the path I configured in the panel I get the 400 Bad Request
error. And for all other paths get 404 Not Found
After changing some properties in configs, now I see some logs about fallback in XrayR logs.
2023/01/22 17:33:33 [Info] [1570693488] proxy/trojan: firstLen = 311
2023/01/22 17:33:33 [Info] [1570693488] proxy/trojan: fallback starts > proxy/trojan: not a valid user
2023/01/22 17:33:33 [Info] [1570693488] app/proxyman/inbound: connection ends > proxy/trojan: fallback ends > proxy/trojan: failed to fallback request payload > read tcp 127.0.0.1:10000->127.0.0.1:40124: use of closed network connection
Google nginx set_real_ip_from
Open proxyprotocol on nginx.
I add these lines to the fallback Nginx config file:
real_ip_header proxy_protocol;
set_real_ip_from 0.0.0.0/0;
And add proxy_protocol
end of listen
and change ProxyProtocolVer
in XrayR to 1 and 2 but always I get a 404 HTTP error.
Also, I change set_real_ip_from
to 127.0.0.1
but not working.
Try to remove nginx stream, directly use xrayr for inbound server. All the nginx config should add proxy protocol
Try to remove nginx stream, directly use xrayr for inbound server. All the nginx config should add proxy protocol
I want to use multiple domains and xrayr does not support it.
In nginx logs i see something about invalid request, what is that?
2023/01/23 20:19:05 [info] 119434#119434: *47934 client sent invalid method while reading client request line, client: 127.0.0.1, server: _, request: "18643d3e89bfb17a95ac257e420e874fa82c950b331df25f92cf7cf7"
Turn on all proxy protocol on nginx config which you listened.
Turn on all proxy protocol on nginx config which you listened.
I did it before, but now I migrate to Nginx HTTP WebSocket upgrade mode, and all things work also I think the speed and latency is better than stream mode.
but i think there is a bug in trojan fallback.
Turn on all proxy protocol on nginx config which you listened.
I did it before, but now I migrate to Nginx HTTP WebSocket upgrade mode, and all things work also I think the speed and latency is better than stream mode.
but i think there is a bug in trojan fallback.
i meet exactly same issue with you. i also use stream to distribute different domain name.
can you share your config for "Nginx HTTP WebSocket upgrade mode"
thank you.
I read the Xray-core & XrayR fallback documentation, and change my configs many times, for example, changing the port, changing to http2 in fallback Nginx config, proxy protocol version in xrayr config, but all times failed, in xrayr logs, I can't find anything about fallback and also I didn't see any requests from xrayr in Nginx logs
fallback Nginx config:
nginx config:
xrayr config