Using maple over Vmess
I am trying to use maple for connecting to a V2ray server. I really can't understand how to setup the config file from the documentations. Can you tell me what should I use as a config file if my v2ray config looks like this? Should I delete the default values for protocols I'm not using or not? When I open the app I encountered a huge config file and I had no Idea what to set It's really confusing.
{
"dns": {
"hosts": {
"domain:googleapis.cn": "googleapis.com"
},
"servers": [
"1.1.1.1"
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10808,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"userLevel": 8
},
"sniffing": {
"destOverride": [
"http",
"tls"
],
"enabled": true
},
"tag": "socks"
},
{
"listen": "127.0.0.1",
"port": 10809,
"protocol": "http",
"settings": {
"userLevel": 8
},
"tag": "http"
}
],
"log": {
"loglevel": "warning"
},
"outbounds": [
{
"mux": {
"concurrency": 8,
"enabled": false
},
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "my_server_ip",
"port": my_server_port,
"users": [
{
"alterId": 0,
"encryption": "",
"flow": "",
"id": "my-uuid",
"level": 8,
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "",
"wsSettings": {
"headers": {
"Host": ""
},
"path": "/websocket/"
}
},
"tag": "proxy"
},
{
"protocol": "freedom",
"settings": {
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
},
"tag": "block"
}
],
"routing": {
"domainMatcher": "mph",
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"ip": [
"1.1.1.1"
],
"outboundTag": "proxy",
"port": "53",
"type": "field"
}
]
}
}
Hi @Ali-Flt , it looks like your V2Ray server config does not have a VMess inbound. Please take a look at VMess | V2Ray Beginner's Guide to see if it helps.
I am able to connect to my V2ray server with other clients (qv2ray, v2rayNG) so does that not confirm that the server config is fine? Also I wanted to know if Vmess + ws protocol supports UDP. Because I'm doing all of this to have UDP support thinking maybe if I have a client like Maple that creates a virtual network interface maybe my UDP packets will also go through the v2ray tunnel because using qv2ray, UDP packets were not transfered. But I don't know whether the issue was that Vmess + ws doesn't support UDP at all or the client (or SOCKS5, HTTPS proxies) doesn't support it. Thanks
I am able to connect to my V2ray server...
So I assume the configuration you've shared is a client one. In this case, you may use the following conf as an example.
[General]
loglevel = error
tun = auto
dns-server = 223.5.5.5, 114.114.114.114
[Proxy]
v2ray_server = vmess, server_ip, server_port, username=my-uuid, ws=true, ws-path=/websocket/
[Rule]
FINAL, v2ray_server
By right UDP is supported and UDP packets should be able to go through VMess + WebSocket proxies. However, please expect a higher latency and malfunction in P2P scenarios due to the nature of such transport combination.
Thanks for the simplified config but unfortunately it didn't work either. Is there a way to see the client's log?
Looks like you are using alterid = 0 which means to enable VMess AEAD protocol, however it is currently not supported by Leaf yet. See
https://github.com/eycorsican/leaf/issues/309
https://github.com/eycorsican/leaf/issues/14
For the logs you probably need Visual Studio to run the app with debugger attached. You may also specify logoutput to a file inside app local state folder (%LocalAppData%\Packages\56263bdbai.Maple_gv14dyc9zj8pj\LocalState) and check afterwards.
hi same issue,when its ready for alterid? we are really need it
@sbh96 please chase Leaf for the protocol support. We cannot have it done until Leaf supports it.
thanks for fast reply and support ok sir