This guide connects an Arma Reforger dedicated server to X4B DDoS Protection. You maintain the backend game server; players use the X4B filtered IP. The main procedure uses GRE and keeps public gameplay separate from private administration.
Step 1: Prepare the backend
Follow Bohemia's dedicated-server installation instructions for Windows or Linux. The stable SteamCMD server app is 1874900; experimental builds are separate. Use a maintained operating system and a dedicated unprivileged service account.
Prepare a valid configuration for your chosen scenario, access policy and mods. Keep it and the persistent profile outside files that updates replace. Use the current server configuration reference rather than older gameHost... examples. Choose unique administration credentials and retain fastValidation and BattlEye for public hosting.
For example, the Linux server can launch with:
./ArmaReforgerServer -config ./server.json -profile ./profile -maxFPS 60
Substitute your actual configuration and persistent profile paths. The FPS cap avoids uncapped resource use; adjust it after measuring your scenario. See startup parameters. Test the backend with a trusted outside player before changing the network path, limiting temporary direct access to that tester.
Step 2: Create the X4B tunnel and gameplay forward
Use an active service or choose one on the DDoS protection page. Select a filtering location with a suitable route to the backend and players. Choose clean bandwidth for normal game traffic and monitor usage after launch.
We recommend GRE for UDP compatibility and preservation of client source addresses. Review Port types and the tunnel requirements; the host and provider must support the selected protocol.
- Open Services, find your service and choose Action > Tunnels.
- Choose Add Tunnel, select GRE, enter the backend's public IP in Backend address, and Save. Reload to verify the entry and retain its key and MTU.
- Return to Action > Ports. Under Single Port, choose Add port manually if the empty state is shown; otherwise choose Add Port.
- Add the gameplay entry below with UDP, Backend method > Encapsulated (NAT) and your saved tunnel. Keep the backend port equal to the public port. Save and reload to verify it.
| Port start | Protocol | Backend port | Purpose |
|---|---|---|---|
| 2001 | UDP | 2001 | Gameplay |
| 17777 | UDP | 17777 | Optional A2S queries, only when enabled |
The optional query entry is separate from gameplay. Configure its listener before adding that forward. Use ordinary UDP for this baseline; discuss the X4B A2S query profile with support before enabling it for your build. It is not a Reforger gameplay preset. See Layer 7 protection modes.
Return to Tunnels, choose Action > Setup Tunnel, then Linux / BSD > Download Tunnel Script or Microsoft Windows > Download Application. A saved port must reference the tunnel before setup is usable. Review and install the generated configuration using the Linux instructions or Windows instructions.
Step 3: Separate local binding from public advertisement
Merge these networking fields into your valid server configuration; this fragment is not a complete scenario configuration:
{
"bindAddress": "<TUNNEL_BACKEND_IP>",
"bindPort": 2001,
"publicAddress": "203.0.113.20",
"publicPort": 2001
}
Replace <TUNNEL_BACKEND_IP> with the assigned backend tunnel address. Replace 203.0.113.20, a documentation address, with your service's filtered IPv4 address. The filtered IP is not the local bind address on an Encapsulated (NAT) backend. These configuration fields select different endpoints: bindAddress/bindPort are local; publicAddress/publicPort are registered publicly.
For optional queries, bind a2s.address to the appropriate local address and set a2s.port to 17777. Keep native RCON private; its UDP listener, commonly 19999, is not required in the public forward table. Native Reforger RCON and separate BattlEye RCON instructions are different configurations.
Preserve the generated return-routing and packet-marking rules. Start the tunnel before Reforger at boot, and follow the Unified Tunnel requirements for outgoing traffic on Anycast services. Recheck advertised addresses after changes to the backend or service.
Step 4: Secure and test the path
Keep host and provider firewalls enabled. Allow IP protocol 47 between the backend and X4B tunnel endpoints, and allow the selected game/query UDP listeners on the tunnel interface. GRE is not TCP/UDP port 47. Inner packets retain player source addresses, so an allowlist containing only X4B communication addresses will not match them. Preserve management access and keep recovery-console access while changing rules.
Wait for Dashboard deployment to finish. Test an external client's direct connection to the filtered IP and game port, then find and join the server through the browser. Verify the advertised address and actual traffic using logs or packet captures. Test gameplay, reconnects, voice and any required downloads; a successful query is not a complete gameplay test.
If offering crossplay, configure the current game.crossPlatform setting and test every intended client platform and mod set. Platform permission alone does not verify its network path. Check Bohemia's platform announcement and current release guidance for supported combinations.
Remove temporary game access through the backend's public interface after protected-path testing. Keep required outbound backend and update connectivity available, then reboot and repeat the tests. Monitor CPU, memory, network loss and tunnel MTU under the actual scenario load.
If using Reverse Proxy
For a separately tested RP setup, skip tunnel installation and use Backend method > Reverse Proxy, the reachable Backend address and matching backend ports. Bind locally to the appropriate backend interface and keep publicAddress set to the filtered IP. Configure the optional query listener separately.
Allow the game/query ports from the current Backend Communication IP Addresses under Services > Action > IP Addresses; see firewall exceptions. RP substitutes X4B's source address and does not route server-originated registration through X4B. Verify direct joins, list-selected joins, moderation and intended platforms independently.
Persistence, maintenance and troubleshooting
Configure scenario-appropriate persistence and confirm completed saves before maintenance. Use the supported authenticated shutdown procedure, then wait for process exit. A shutdown alone is not proof that an asynchronous save completed.
Back up the configuration, persistent profile, actual save storage and required mod metadata off-host using an application-consistent procedure. Include external storage if your persistence configuration uses it. Test restoration in an isolated instance. Schedule updates, preserve a known working copy and retest the filtered endpoint, listing and client platforms afterwards.
| Symptom | Checks |
|---|---|
| Browser advertises the origin | Effective publicAddress/publicPort and outbound registration |
| Queries work but players cannot join | Gameplay forward, local listener, routing and firewall counters |
| Only one platform fails | Crossplay permission, version/mod compatibility and that platform's packet path |
| Scenario progress is missing | Actual persistence storage, completed saves and profile selection |
For support, include the service, server/client versions, scenario, filtered IP, ports, backend method and test time with timezone. Remove credentials and private player data from evidence.
