VPS Forwarding — Use Proxy from Anywhere
Ask AI
Ready taskDo it with me, step by step
Chat assistants
Open in ChatGPTNew tabOpen in ClaudeNew tabCoding agents
Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the webCopy
View as MarkdownPlain text for AI toolsSee the prompt
Read https://xproxy.io/document/vps-forwarding-to-use-difference-place.md, the XProxy guide "VPS Forwarding — Use Proxy from Anywhere". If you cannot open links, download them with curl. Then take me through it one step at a time: tell me exactly what to click or type, wait until I say it is done, and help me when what I see is different from the guide. Start by asking what I have (hardware, XProxy version, what I see now). Other XProxy guides, each with a Markdown copy at its URL + .md, are listed in https://xproxy.io/llms.txt.
The app opens with the prompt filled in. Nothing runs until you press Enter.
Use your proxies from anywhere without changing your home router. A cloud server (a VPS) gets the customers' connections and passes them to your box.
You need: a VPS with Ubuntu and SSH access (root, or a user with sudo), and a plan that includes VPS forwarding (Premium or above). It takes about 10 minutes.
In short
Customer, then the VPS, then a tunnel to your box, then the mobile network. Customers only see the VPS address.
No router setup. It works when your router cannot forward ports. The VPS address stays the same, and your home IP stays hidden.
The panel checks the VPS, installs the relay and starts the tunnels for you. If a check fails, nothing is changed.
Which way is right for you?
There are three ways to reach your box from outside. This guide covers VPS forwarding.
| What to compare | Router | VPS forwarding | VPN |
|---|---|---|---|
| What you do | Forward ports on your home router | Connect a VPS to your box once | Add your box to a private VPN |
| Who can connect | Anyone with your IP or domain | Anyone with the VPS address | Only devices on that VPN |
| Needs router access | Yes | No | No |
| Works if your ISP shares one IP between customers | No | Yes | Yes |
| You pay for | Nothing extra | A VPS from any provider | Nothing extra (depends on the VPN) |
Router instead: Open your router for the box. VPN instead: in your panel open General Settings → System Setting and look for VPN tunnel setting (Tailscale, ZeroTier or OpenVPN).
Set up VPS forwarding
Step 1 of 7
Open your box panel. In the left menu click General Settings, then Forwarding Ports 1.
A guided setup has 4 parts: Security, Connect VPS, Services and Go live. Click Protect all in one step 2.
Relay or WireGuard?
Both engines carry the same services. WireGuard does more and runs faster; Relay is lighter on the VPS.
| What to compare | WireGuard + Direct Mode (recommended) | Relay |
|---|---|---|
| Speed with many dongles | About 330 Mbit/s in our 32-connection test: the VPS forwards packets in the kernel | About 40 Mbit/s in the same test with one tunnel. Raise Parallel tunnels per port to go faster |
| Customer IP on the box | Each customer's own IP, in the proxy logs and for the IP whitelist | The VPS, for every customer |
| SOCKS5 UDP (QUIC, games, calls) | On every SOCKS5 port: main, separate SOCKS5, IPv6 and Dual Stack | On the main proxy port of each modem |
| Proxy rules on the box | Logins, whitelist, website rules, limits and logs see the real customer | The same rules, but the box sees the VPS as the client |
| VPS CPU | About 1 vCPU per 300 Mbit/s. Choose 2 vCPU for 10 or more dongles | Low. Fine on the smallest 1 vCPU VPS |
| Ports on the VPS firewall | UDP 65001, plus one block of 400 UDP ports in 61000–64999 with Direct Mode | TCP 65001–65004, plus UDP 32768–60999 with UDP Socks5 |
| Only Relay has | — | Network isolation (each modem over its own SIM), Process isolation, and a tunnel over TCP when UDP to the VPS is blocked |
Switching engine is one setting in Services, then Go live. Customers keep the same VPS addresses and ports.
How ports work
Each shared service opens a port on the VPS. VPS port = box port + offset. With offset 0, the VPS port is the same as the box port. The Services step shows the exact address of each service before you go live.
| Example | Box port | Offset | VPS port |
|---|---|---|---|
| Box A, first modem | 4001 | 0 | 4001 |
| Box B, same VPS | 4001 | 1000 | 5001 |
If two services, or two boxes on one VPS, want the same port, they clash. Go live checks which ports are already used on the VPS. Change the offsets under Advanced to fix it.
Something not working?
| You see | What to do |
|---|---|
| "This function is available on higher plan license only" | VPS forwarding needs the Premium plan or above. See Manage your subscription. |
| You cannot continue the Security step | Set the logins first. A service that you switch off in Services does not need one. |
| Test connection fails | Check the address, SSH port, user and password or key. The VPS needs Ubuntu, and a root or sudo user. |
| A check in Go live fails | Nothing was changed. Read the failed line, fix it, then click Go live again. |
| Ports are not reachable from the internet | Open the ports from the Services step in your VPS provider's firewall. Add UDP 65001 for WireGuard, the UDP block the panel shows (in 61000 to 64999) for Direct Mode, and UDP 32768 to 60999 for Relay's UDP Socks5. |
| SOCKS5 UDP apps get no answer through the VPS | Tick Real client IP & UDP Socks5 (WireGuard) or UDP Socks5 (Relay) under Advanced, open the UDP ports above, and test with the test script. |
| A port is red in Monitoring | Click Run doctor. It lists what is wrong and changes nothing. |
| Two boxes clash on one VPS | Give each box a different port offset under Advanced. |

