Instruction on how install and run v2ray protocol on both server and Client
- Login to your server using ssh:
ssh user@server_ip
- 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)
- 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
- Login to your panel and it will look like this. to add users klick on second option in right panel:
- click on plus sign and enter a name for the new user. Instead off
tcp
selectws
as protocol:
- click on option minue for each user and select qr code to copy or scan the credentials:
- 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
orImpport 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:
- 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 selectImport bulk url from clipboard
- Right click on try icon of the app in the notification bar and select
system proxy
then selectset system proxy
- If the icon turns into red then you are good to go. but if is fails to connect, changing the
listening port
insettings
thenOpetionSettings
will solve most of the issues.
- 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
. SelectManual
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.