Configure Sanaei X-UI Panel with Reverse Tunnel
Project Title:
Setup Sanaei X-UI Panel on Foreign VPS as Exit Node for Iran National Internet Circumvention
Description:
I have two servers:
1. An Iranian server (already running Sanaei X-UI panel) that users inside Iran connect to using domestic traffic.
2. A foreign Linux VPS (Ubuntu 20.04+) with a clean, unfiltered IP. I cannot ping or directly SSH into this server from Iran due to the national internet restrictions.
What I need from you:
- Access my foreign VPS (I will provide SSH credentials; you must use your own VPN/proxy to connect since I cannot).
- Install and configure Sanaei X-UI (https://github.com/alireza0/s-ui) panel on the foreign server.
- Set up the foreign server as an outbound (exit node) for my Iranian server. This means configuring an inbound on the foreign panel (VMess/VLESS + TLS + WebSocket) that the Iranian server’s outbound can connect to.
- Ensure the foreign server’s IP is not blocked by major services and can pass clean traffic to the global internet.
- Provide me with the exact outbound configuration details (protocol, address, port, path, etc.) needed to add to my Iranian server's X-UI panel so that all user traffic gets tunneled through the foreign server.
- Optionally: test the tunnel by setting up a temporary inbound on the Iranian server and verifying connectivity (I can help with testing if needed).
The final goal: Iranian users → Iranian Server (domestic connection) → Foreign Server → Free Internet.
Requirements:
- Strong experience with V2Ray/Xray-core, X-UI panels (especially Sanaei), and reverse proxy setups.
- Understanding of Iran's internet censorship and how to bypass it using CDN, tunnels, and domestic/international server pairs.
- Ability to work on a server you can only access via your own VPN (as direct access from Iran is blocked).
Deliverables:
1. Foreign VPS fully configured with X-UI panel (web interface accessible via browser using a secure URL).
2. One working outbound configuration that I can import into my Iranian X-UI panel.
3. Brief written instructions on how to connect the two servers.
Please include in your proposal: any questions you have, your experience with similar circumvention setups, and estimated turnaround time.