VPN Mobile Proxy — WireGuard & OpenVPN

Every modem in your XProxy box can run its own VPN server. Connect a laptop, phone or router with WireGuard or OpenVPN and all of its traffic — including apps without proxy settings, games and system services — leaves through that modem's mobile IP.

Any devicePC, phone, router
XProxy boxone port per modem
4G/5G modemSIM card
Website / appsees a mobile IP
One VPN server per modem: the WireGuard port 8001 and the OpenVPN port 9001 both exit through modem #1.
Licence: VPN per modem is included in the Basic, Premium and Business plans.
Enable a VPN on one modem, choose WireGuard or OpenVPN, save, then download the client files for the VPS address.

WireGuard or OpenVPN?

WireGuardOpenVPN
Port of modem #1UDP 8001UDP 9001
Speed & batteryFastest, lightestSlower, heavier
AppsOfficial apps for every OS, many routersOpenVPN Connect, most routers and firewalls
LoginKey inside the fileCertificate inside the file, optional username/password
Choose it whenAlmost alwaysThe device, router or company only supports OpenVPN

Only need a browser or a scraper? An HTTP/SOCKS5 proxy is simpler. Want encryption on a phone with a QR code? Look at VLESS.

Step 1 — Open VPN Service

In the menu, open VPN Service. Every modem has a row showing its VPN Type/Port, whether the VPN and the VPS tunnel are on, its data Quota, and the Config and Download actions.

VPN Service page listing each modem with VPN type, port, status, quota, Config and Download
① type and port per modem · ② Config · ③ Download · ④ VPN Settings (WireGuard / OpenVPN start ports)

Step 2 — Configure the VPN of a modem

Click Config on the modem you want to use:

VPN Configuration dialog with WireGuard selected

① Enable VPN Server · ② VPN Server Type · ③ Number of Clients · ④ Enable Tunnel to VPS · ⑤ Rotation Link

FieldWhat to set
Enable VPN ServerOn.
VPN Server TypeWireguard or OpenVPN. To switch later, turn the VPN off and save first.
Number of ClientsHow many devices will use this modem. Each device gets its own file — never use one file on two devices at the same time, they will kick each other off.
MTU (optional)Leave empty (1420). Try 1280 if some sites hang on mobile networks.
Username / Password (OpenVPN only, optional)The app asks for them when connecting. The certificate inside each file is the main protection, so keep every file private.
Enable Tunnel to VPSOn if devices connect from outside your network (see Step 3).
Auto Expire / Quota Limit (GB)Optional. The VPN switches itself off at that date or after that much traffic — handy when you rent access out.
Rotation LinkShown after the first save. Calling it gives this modem a new IP (see below).

Click Save. XProxy creates the VPN server and one client file per device.

Step 3 — Make it reachable from anywhere

On the same network as the box you can skip this step. From outside, pick one option:

  • VPS tunnel (recommended, no router changes): first connect your VPS once with the VPS Forwarding guide (General Settings → Forwarding Ports). Then open the modem's Config and switch on Enable Tunnel to VPS, and pick VPS IP when you download the files.
  • Router: forward UDP ports 8001+ (WireGuard) or 9001+ (OpenVPN) to the box — NAT Forwarding guide.
Set up the VPS from Forwarding Ports, not from the VPS Relay Server box in VPN Settings. That box does not show your saved VPS password, and pressing Save VPS there replaces it with an empty one, which breaks VPS forwarding.

VPN Settings → Ports & Forwarding holds the WireGuard and OpenVPN start ports (8000 / 9000 → first modem on 8001 / 9001). Leave them unless they clash with something else on your network.

Step 4 — Download the client files

Open the Download menu of the modem and pick the address your devices will connect to. You get a ZIP with one file per client:

Download menu with Local IP, Public IP, VPS IP and Specific IP options
OptionUse it when
Local IPDevices are on the same network as the box.
Public IPYou forwarded the UDP ports on your router.
VPS IPEnable Tunnel to VPS is on (Step 3).
Specific IP...You want your own domain or DDNS name inside the file.

What the files look like:

wireguard
[Interface]
PrivateKey = <this device's private key>
Address = 10.0.1.2/24, fd78:0486:2c09:1::2/64
DNS = 8.8.8.8
MTU = 1420

[Peer]
PublicKey = <XProxy server public key>
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = 51.79.12.34:8001
PersistentKeepalive = 15

Endpoint is the address you picked in the Download menu plus the modem's WireGuard port. AllowedIPs = 0.0.0.0/0, ::/0 sends all traffic through the modem.

Step 5 — Connect your device

  1. Install the official WireGuard app from wireguard.com.
  2. Click Import tunnel(s) from file and pick a .conf file from the ZIP (one file = one device).
  3. Click Activate. The status turns green and the whole computer uses the modem's mobile IP.

Check that it works: https://api.ipify.org should show the modem's mobile IP, and dnsleaktest.com should not show your home ISP.

Change the IP

Copy the Rotation Link from the modem's Config. Anyone with the link can rotate that modem — no dashboard login needed, so it is safe to give to the person using the VPN:

bash
curl "https://vpn.example.com/vpn/rotate?token=YOUR_TOKEN"

The VPN stays connected — traffic pauses for a few seconds while the modem gets its new IP. Set your own domain for these links under VPN Settings → Rotation Link Domain. More options: How to Change / Rotate IP.

Troubleshooting

Message or symptomFix
“VPN server is not enabled. Please enable VPN server first.”Turn on Enable VPN Server in Config and save before downloading.
“VPS tunnel is not enabled…”You chose VPS IP; switch on Enable Tunnel to VPS for that modem first.
“VPN server already enable can not change VPN type!”Switch the VPN off, save, then change the type and switch it on again.
App never connects from outsideThe UDP port is not reachable. Use the VPS tunnel, or forward UDP (not TCP) on your router, and download the files again with the matching option.
Connected, but no internetCheck the modem is online in Proxy Management, and that its Quota or Auto Expire has not switched the VPN off.
Some sites load foreverSet MTU to 1280 in Config, save, and download the files again.
Two devices keep disconnecting each otherThey share one client file. Raise Number of Clients and give each device its own file.

FAQ

What is the difference between VPN and a proxy?

A proxy only carries traffic from apps that are told to use it. A VPN carries everything the device sends, including DNS and apps that ignore proxy settings.

Does VPN use more mobile data?

It carries all of the device's traffic, including background updates and sync, so yes — usually more than a proxy used by one browser. Use Quota Limit to cap it.

Can I use the VPN and the proxies of the same modem together?

Yes. HTTP/SOCKS5, VLESS and the VPN of a modem all share its mobile IP, so a rotation changes the IP for all of them.