-
-
Save ashkanRmk/da15f93233860e294d270addda2705d4 to your computer and use it in GitHub Desktop.
| **EU Server scripts** | |
| apt-get update -y && apt-get upgrade -y | |
| apt install curl -y | |
| bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) | |
| -------------------------------------------------------------- | |
| **Iran Server scripts** | |
| # replace IRAN_IP and EU_IP | |
| apt-get update -y && apt-get upgrade -y | |
| sysctl net.ipv4.ip_forward=1 | |
| iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination IRAN_IP | |
| iptables -t nat -A PREROUTING -j DNAT --to-destination EU_IP | |
| iptables -t nat -A POSTROUTING -j MASQUERADE | |
| -------------------------------------------------------------- | |
| **Finally open below link for admin panel** | |
| # replace EU_IP | |
| EU_IP:54321 |
if your connection speed is low or maybe disconnect a lot, use this script in your both server in Iran and Europe:
wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh
hi dear ashkan,
thank you for this effective metod... it's working excellent...
just i change the admin's login info of webbased user manager and i forget username and password, please guid me for recover my login informations
hi dear ashkan, thank you for this effective metod... it's working excellent... just i change the admin's login info of webbased user manager and i forget username and password, please guid me for recover my login informations
YW,
Best way to recover login information is to completely remove x-ui and install it again.
hey i did all the work and it worked just fine for about 2 or 3 days but after that i cant connect the config with IR server.
it's working without port forwarding (connecting directly to EU server) but can't connect to config throw IR server.
i can ping both servers but the IR server almost cant ping the EU server (60 - 80 % PL) (EU server also has the same problem with IR server)
hey i did all the work and it worked just fine for about 2 or 3 days but after that i cant connect the config with IR server. it's working without port forwarding (connecting directly to EU server) but can't connect to config throw IR server. i can ping both servers but the IR server almost cant ping the EU server (60 - 80 % PL) (EU server also has the same problem with IR server)
It seems your hosting provider limits your server internet to just the IRAN intranet.
some of them set this limitation for their customer. I suggest you change your IR server provider, this may solve your problem.
Hello, thank you for this help, I wanted to know how long the internet speed has been disrupted v2ray It has come too low, you have no way out for this problem
Hello, thank you for this help, I wanted to know how long the internet speed has been disrupted v2ray It has come too low, you have no way out for this problem
you have to change and test different combinations of protocol and transmission types based on your internet provider and region to get the best result.
use
vlessprotocol andwstransmission for best performance.