sentinel-official / dvpn-node

The official Sentinel dVPN node
Apache License 2.0
108 stars 33 forks source link

v2ray #110

Open faddat opened 1 year ago

faddat commented 1 year ago

Hi,

In going through the code, I noticed that we start wireguard as a separate proccess.

For v2ray, which I expect to become dominant, I'm going to try to run it by default.

So, for v2ray we need to get an ID per user like:

{
    "inbounds": [
        {
            "port": 10086, // server listening port
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "b831381d-6324-4d53-ad4f-8cda48b30811"
                    }
                ]
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom"
        }
    ]
}

as I understand it we only need to have a way of hot-updating the IDs. The other items may carry over from wireguard quite naturally. To make this as simple as possible, we won't try to differentiate traffic in the first step.

Dimokus88 commented 1 year ago

Hi! You can use generator ID https://www.v2fly.org/en_US/awesome/tools.html or https://www.uuidgenerator.net/version1