Replies: 1 comment 1 reply
-
|
openvpn over stunnel is a known patters, but your request for xray is unclear (to me at least) what do you want ? if you want xray protocol over stunnel , you configure stunnel, then configure xray server (inbounds) and xray client (outbounds) which xray client (outbounds) should connect to stunnel and from there to xray servers # normal
[ xray client (outbound)] ===> [ xray server (inbound)]
# stunnel
[ xray client (outbound)] ===> [stunnel (local)] ===> [stunnel (remote)] ===> [ xray server (inbound)]if you want other protocols over xray, you configure xray server (inbound) and xray client (outbound) then xray port mapping # normal
[ xray client (outbound)] ===> [ xray server (inbound)]
# socks5 over vless
[ xray client (inbound -> outbound)] ===> [ xray server (inbound)]
# openvpn over vless
[ xray client (port-mapping(dokodemo-door) -> outbound)] ===> [ xray server (inbound)]
^ |
| v
[ openvpn (client)] [ openvpn (server)] |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello.
I used long time stunnel.
But I need now to use xray.
How to convert this client stunnel config to xray config?
client stunnel.conf
The main reason: I have stunnel + openvpn on client.
So at first I connect to stunnel, then via stunnel I connect to openvpn (in openvpn config I have line remote 127.0.0.1 1194).
On the server I have xray which listen on 123.123.123.123:443 and there is fallback rule
"fallbacks": [ { "name": "cloudflare.com?gamefr", "dest": "123.123.123.123:8081" } ]stunnel config is working correctly.
I tried to use xray config like this. But it is not working - openvpn does not connect. And I get the error like this:
app/proxyman/inbound: connection ends > proxy/http: failed to read http request > malformed HTTP request
xray server config.json
Beta Was this translation helpful? Give feedback.
All reactions