Skip to content

Connect to remote vless server #3341

@n-eliseev

Description

@n-eliseev

Hi!
Can anyone help me?
I'm trying to solve this problem. I have several servers running the VLESS protocol.
I have a separate Ubuntu/Debian server, from which I want to connect to one of these servers via the CLI and make a request.
To solve this problem on a separate server, I installed v2ray. The idea is to run v2ray so that it sets up a proxy locally and sends all requests to the remote VLESS servers.
I can't figure out how to set this up.
I run v2ray run -c config.json
The configuration file looks like this:

{
  "inbounds": [
    {"port": 9001, "protocol": "http", "settings": {}},
    {"port": 9101, "protocol": "socks", "settings": {"udp": true}}
  ],
  "outbounds": [
    {
      "protocol": "vless",
      "settings": {"vnext": [{"address": "x.x.x.x", "port": 443, "users": [{"id": "user uuid", "encryption": "none", "flow": "xtls-rprx-vision"}]}]},
      "streamSettings": {
        "network": "tcp",
        "security": "reality",
        "tcpSettings": {"header": {"type": "none"}},
        "realitySettings": {"publicKey": "....", "shortIds": ["...."], "fingerprint": "chrome"}
      }
    }
  ]
}

Can anyone tell me what I'm doing wrong?
The remote servers are working fine. I can access them through various software clients (NekoRay for example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions