This guide adds X4B DDoS Protection to a Palworld dedicated server. You supply and maintain the backend game server; players connect to the X4B filtered IP. The main procedure uses a GRE tunnel and keeps remote administration private.
Step 1: Prepare the backend
Follow Pocketpair's dedicated-server installation instructions for Windows or Linux. SteamCMD uses app 2394010. Use a maintained host, a separate unprivileged account and sufficient resources for the intended workload; check the developer's current requirements, including storage guidance.
After initial startup, stop the server before editing the active PalWorldSettings.ini under Saved/Config/WindowsServer or Saved/Config/LinuxServer. Use the configuration reference and keep a backup. Set distinct game and administrator passwords, then restart to apply changes. Editing only the shipped default file does not configure an existing server.
Keep the game listener on UDP 8211 for this example. Test the backend with a trusted outside player before changing its network path, restricting temporary direct access to that tester. On Linux, sudo ss -lunp helps identify the listener.
Step 2: Choose the service and create the tunnel
Use an active service or choose one on the DDoS protection page. Select a suitable route between the filtering location, backend and players. Choose clean bandwidth for normal delivered game traffic and monitor usage after launch.
We recommend GRE for UDP compatibility and 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.
- Click Add Tunnel, choose GRE, and enter the backend's public IP in Backend address.
- Save and reload to verify the entry. Retain the displayed key and MTU for the backend setup.
Step 3: Forward the game port
Open the service's Action > Ports page. Under Single Port, choose Add port manually if the empty state is shown; otherwise choose Add Port. Configure:
| Port start | Protocol | Backend port | Purpose |
|---|---|---|---|
| 8211 | UDP | 8211 | Palworld gameplay |
Choose Encapsulated (NAT) under Backend method and select the saved tunnel. Click Save, reload and verify the protocol, tunnel and port. Use ordinary UDP; this procedure does not require a Palworld-specific or A2S 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.
Confirm that the game listener accepts traffic to the assigned backend tunnel address. Preserve the generated reply routing and start the tunnel before Palworld at boot. For Anycast, follow the tunnel guide's Unified Tunnel requirements for outgoing traffic.
Step 4: Publish the correct endpoint
Pocketpair distinguishes direct-address dedicated servers from listed community servers. Current documentation requires community mode for Xbox and PS5 joining. Check the installed release and intended client platforms before publishing access instructions.
For a community server, the Linux launcher can use these documented arguments:
./PalServer.sh -port=8211 -publiclobby -publicip=203.0.113.20 -publicport=8211
On Windows, use PalServer.exe with the same arguments. Replace 203.0.113.20 with your filtered IP, not the backend's public or tunnel address. Preserve any other settings required by your launcher. For a direct-address-only setup, retain the listener setting and omit the community-list arguments.
Advertisement controls do not prove which path every client takes. Test each intended platform and list-selected joining as well as direct-address joining; inspect the actual traffic before relying on the setup for those paths.
Step 5: Secure and test the path
Keep host and provider firewalls enabled. For GRE, allow IP protocol 47 between the backend and X4B tunnel endpoints, and allow UDP 8211 on the tunnel interface. GRE is not TCP/UDP port 47. Inner packets can carry player source addresses, so an allowlist containing only X4B communication addresses will not match game traffic. Preserve private management access and keep a recovery console available while changing rules.
Wait for Dashboard deployment to complete. Have an external player connect to the filtered address and game port, for example 203.0.113.20:8211, after replacing the documentation address. Test play, reconnects and community-list joins. Use logs or packet captures to verify the X4B path, then remove temporary public-interface game access. Repeat after reboot and keep outbound connectivity required by the game available.
If using Reverse Proxy
For a separately tested RP setup, configure the UDP port with Backend method > Reverse Proxy, the reachable Backend address and backend port 8211. Skip tunnel installation. In Services > Action > IP Addresses, obtain the current Backend Communication IP Addresses and allow the game port from those sources. See firewall exceptions.
RP rewrites client source addresses and does not route outgoing registration through X4B. Apply the same filtered advertisement settings and verify direct joins, listings and every intended platform independently. If behind a router, forward the required backend UDP port to the game host; CGNAT needs a reachable hosting or networking arrangement first.
Administration, backups and updates
Keep REST administration on a private LAN, VPN or secured management path. Pocketpair warns against exposing its management APIs directly to the Internet; RCON is deprecated. No public REST or RCON forward is required for this game-port procedure. Protect administrator credentials and restrict access to configuration and backup files.
For maintenance, authenticate as administrator and use the documented save and timed shutdown commands, such as /Save followed by /Shutdown 60 Maintenance. Wait for completion and exit; /DoExit is a forced stop.
Back up the complete active Saved data, configuration and launcher while stopped or using an application-consistent method. Keep dated copies off-host and test an isolated restore. Schedule updates with players, preserve custom configuration, check client/mod compatibility and retest the filtered endpoint. Monitor resources and disk space under real gameplay load.
| Symptom | Checks |
|---|---|
| Direct join works but community joining fails | Community mode, advertised filtered endpoint, client platform and registration logs |
| Forwarding is saved but nobody can join | Deployment, UDP listener, tunnel selection, return routing and firewall counters |
| Administration fails | Private management connectivity and credentials; do not expose an admin port to fix gameplay |
| Unexpected world or configuration | Active Saved directory, service account and configuration path |
For support, include the service, server/client versions, platform, filtered IP, port, backend method and test time with timezone. Remove passwords, tokens and private save data from evidence.
