Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using maple over Vmess #35

Open
Ali-Flt opened this issue Oct 29, 2022 · 8 comments
Open

Using maple over Vmess #35

Ali-Flt opened this issue Oct 29, 2022 · 8 comments
Labels
configuration All about Leaf Configuration upstream Awaiting further action from upstream

Comments

@Ali-Flt
Copy link

Ali-Flt commented Oct 29, 2022

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"
            }
        ]
    }
}
@Ali-Flt Ali-Flt changed the title Using maple over git Using maple over Vmess Oct 29, 2022
@bdbai bdbai added the configuration All about Leaf Configuration label Nov 11, 2022
@bdbai
Copy link
Member

bdbai commented Nov 20, 2022

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.

@Ali-Flt
Copy link
Author

Ali-Flt commented Nov 20, 2022

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

@bdbai
Copy link
Member

bdbai commented Nov 21, 2022

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.

@bdbai bdbai added the awating response Waiting for reply from author label Nov 24, 2022
@Ali-Flt
Copy link
Author

Ali-Flt commented Nov 27, 2022

Thanks for the simplified config but unfortunately it didn't work either. Is there a way to see the client's log?

@bdbai
Copy link
Member

bdbai commented Nov 27, 2022

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.

@bdbai bdbai added upstream Awaiting further action from upstream and removed awating response Waiting for reply from author labels Nov 27, 2022
@sbh96
Copy link

sbh96 commented Nov 29, 2022

hi same issue,when its ready for alterid? we are really need it

@bdbai
Copy link
Member

bdbai commented Nov 29, 2022

@sbh96 please chase Leaf for the protocol support. We cannot have it done until Leaf supports it.

@sbh96
Copy link

sbh96 commented Nov 29, 2022

thanks for fast reply and support ok sir

@bdbai bdbai mentioned this issue Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration All about Leaf Configuration upstream Awaiting further action from upstream
Projects
None yet
Development

No branches or pull requests

3 participants