Solved How do I setup v2ray?

Hi, I've installed net/v2ray and I want to connect to a server. In the description of this software, it's said that you should edit config.json file and add the list of servers to it, but I don't see this file. Please guide me if you've used this proxy. Thanks
 
There is a sample file of it in /usr/local/etc/v2ray. I guess you have to copy it and rename it.
Thanks! I found it! Now the question is where to put this address? (The main address has been changed):
Code:
vless://a23a5721-6315-7c2z-6h03-hag562c98063@m.someaddress.tk:443?path=%2Fwss20361&security=tls&encryption=none&host=13.ireuspeed.tk&type=ws&sni=13.ireuspeed.tk#O76-xarlse
 
I did it!
For those who have my problem in the future:
1- Go to https://github.com/v2fly/v2ray-core/releases and download the latest version (you can use freshports too).

2- I split this address:
Code:
vless://a23a5721-6315-7c2z-6h03-hag562c98063@m.someaddress.tk:443?path=%2Fwss20361&security=tls&encryption=none&host=13.ireuspeed.tk&type=ws&sni=13.ireuspeed.tk#O76-xarlse

to:
Code:
{
  "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": "vless",
      "settings": {
        "vnext": [
          {
            "address": "m.slowmoshenss.tk",
            "port": 443,
            "users": [
              {
                "encryption": "none",
                "flow": "",
                "id": "a23a5721-6315-7c2z-6h03-hag562c98063",
                "level": 8,
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "fingerprint": "",
          "serverName": "13.ireuspeed.tk"
        },
        "wsSettings": {
          "headers": {
            "Host": "13.ireuspeed.tk"
          },
          "path": "/wss20361"
        }
      },
      "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"
      }
    ]
  }
}

2- Extract zip file and add above code to config.json then run:
Code:
./v2ray -config=config.json

3- Go to your browser network connection settings and change it like this:

2023-03-27-225006_755x627_scrot.png
 
Code:
"id": "a23a5721-6315-7c2z-6h03-hag562c98063"
Is this uuid for server?
Did you generate by /usr/local/bin/v2ray uuid
 
Back
Top