Skip to content

STRAIBERRY-AI-INC/v2ray-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weeramarakhong137@gmail.com


v2ray-vpn

Instruction on how install and run v2ray protocol on both server and Client

Server side

  1. Login to your server using ssh:
ssh user@server_ip
  1. Run the fowllowing commend. This will install and config v2ray on your server:
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
  1. After instulation a wizard shows up and will ask you to enter:
  • (1) A user name for vpn panel
  • (2) A password for your panel
  • (3) A port to access your panel

4. After setting up username, password and a port, your panel is ready. login to it in a browser with your server ip and the port that you enter in wizard proccess:
your_server_ip:port

  1. Login to your panel and it will look like this. to add users klick on second option in right panel:


  1. click on plus sign and enter a name for the new user. Instead off tcp select ws as protocol:


  1. click on option minue for each user and select qr code to copy or scan the credentials:


Client : Mobile

  • Install V2rayNG app on google play. Click here.
  • Open the app and click on plus sign at the top corner
  • Select one off options Import config from QR code or Impport config from clipboard and import the credentials
  • When credentials added click on floating button at the bottom , when button turns to green then click on rectangle under the button:

Client : Windows

  • Download the V2rayNCore app for windows. Click here.
  • Extract the downloaded zip and open v2rayN.exe file.
  • Change the language to english by click on help icon at the top menu then restart the application:


  • Import the credentials by click on servers menu and select Import bulk url from clipboard
  • Right click on try icon of the app in the notification bar and select system proxy then select set system proxy


  • If the icon turns into red then you are good to go. but if is fails to connect, changing the listening port in settings then OpetionSettings will solve most of the issues.

Client : Linux

  • Download V2ray for linux. Click here.
  • Unzip the file and copy following config in config.json. modify it based on server address and received port:
{
  "inbounds": [
      {
          "port": 1080,
          "listen": "127.0.0.1",
          "protocol": "socks"
      }
  ],
  "outbounds": [
      {
          "protocol": "vmess",
          "settings": {
              "vnext": [
                  {
                      "address": "server_address", //Your server address
                      "port": 34021, // created user port. you cand find this ..in v2ray panel.
                      "users": [
                          {
                              "id": "6dc2583f-9360-444a-b091-6318f90a7e3f",
                              "alterId": 0
                          }
                      ]
                  }
              ]
          },
          "streamSettings": {
              "network": "tcp",
              "security": "tls"
          }
      }
  ]
}

  • Go to settings->network->Network proxy. Select Manual option and fill the values as shown in the image below:


  • In v2ray directory that you just extract it open terminal and run ./v2ray -config=config.json commend.

Note: If you are using ARM cpu download This File, extract it then in that directory run terminal and execute ./v2ray_armv7 run .