Skip to content

mamadiam/v2ray-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

v2ray Server with Interface

For this you need two servers, one in Iran and the other outside of Iran.
you can google it or using websites like Sindad, ParsPack, ParsVDS or any other services you like, just make sure that your VPS is located in America
Note: You don't need anything fancy, even the most basic and simple plans of the VPS's will do the magic.



Your server inside Iran will act as a router. It's only job is to route traffic from within the country to the main server (non-IR) which hosts the actual V2ray Server.
All commands are base on debian-based linux distros. e.g. Ubuntu.

Share it with your loved ones

#MahsaAmini
#womanlifefreedom

Let's get started.

on Your non-IR Server

1. Update & Upgrade the packages

sudo apt update && apt upgrade -y

2. Install curl on your server

sudo apt install curl -y

3. Run this command

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

4. Login to admin panel

YOUR_SERVER_IP_ADDRESS:54321

You Can login to your Panel with the following credentials.
Username admin Password admin

The app is in chinese, so use google chrome as your web browser, right click on the page and choose translate to English
After you loged in into your server natigate to panel setting, user setting and change your admin user password


Only use the following command if you have slow connections and got disconnected repeatedly

5. If you have slow connections

wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh

That's it for your non-IR Server, now let's setup you IR Server.

on Your IR Server

1. Update & upgrade the packages

sudo apt update && apt upgrade -y

2. Run the following commands

First change the YOUR_IR_SERVER_IP & YOUR_NON_IR_SERVER_IP

sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination YOUR_IR_SERVER_IP
iptables -t nat -A PREROUTING -j DNAT --to-destination YOUR_NON_IR_SERVER_IP
iptables -t nat -A POSTROUTING -j MASQUERADE

Only use the following command if you have slow connections and got disconnected repeatedly

3. If you have slow connections

wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh

Now head over to the apps directory for instructions on how to connect.

Just in case you want to support me, I'd realy appriciate it.

TRC20 TT2AMeebAUGFcG9jLPA49xN1eMCyDekz6c

ERC20 0x9A6471A8d01A66e81433d97aF3e1288f7C2E6a7b

Releases

No releases published

Packages

No packages published