For this you need two servers, one in Iran and the other outside of Iran.
you can google it or using websites like Sindad, WebRamz 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
Let's get started.
sudo apt update && apt upgrade -y
sudo apt install curl -y
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
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
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.
sudo apt update && apt upgrade -y
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
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