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
 
Hi there ))
Thanks for a very interesting discussion... Since this is so far the only place talking about v2ray , I'll put it here.
From recent experience I'd recommend using xray fork instead of v2ray .
True, no official port exists, but it painlessly builds from source using lang/go .

At least, if you run into problems with v2ray (as I did), try this one instead.
 
Hi there ))
Thanks for a very interesting discussion... Since this is so far the only place talking about v2ray , I'll put it here.
From recent experience I'd recommend using xray fork instead of v2ray .
True, no official port exists, but it painlessly builds from source using lang/go .

At least, if you run into problems with v2ray (as I did), try this one instead.
Hi 🙂 Thanks! After a long internet outage, I finally can access the forum. I’ll check it at the first opportunity. For now, though, no configurations are working even the non-free ones and internet access in Iran is still very limited.
can I use it on Chromium as well? Because Firefox has issues on my system and keeps crashing.
 
And another thing: providers usually do not give a complete client side config because they don't know your OS. Windows based programs create one fr scratch. In FreeBSD you need to do it manually.
 
can I use it on Chromium as well?
If you have router like keenetic, you may install xkeen through entware/opkg and make xray client on it. Then use internet access politics to your devices. And don't need to choose browser, your PC will have access to vpn. And you may add routing options, that local traffic from your country will go direcctly without vpn, and other through vpn.
 
Back
Top