Parallax EMU

Public server on a VPS

For running a Parallax EMU server that anyone on the internet can play on. This page has two parts: the security plan (what faces the internet and why) and the operator runbook (the steps, and what to do when something breaks).

In this guide the VPS's public address is 203.0.113.50. Use your own.

Coming soon: the installer's Public setup, which will apply this plan for you (firewall, Docker publish rules and checks), and a Public server page in the Dais that shows each layer below as a live green or red check, with guided "Go public" and "Go private" buttons. Until they are released, this page is the plan to follow by hand.

The security plan

The rule in one line

Only the game's UDP ports face the internet. Everything web goes through a proxy such as Cloudflare. Everything admin goes through a private VPN such as Tailscale.

The layers, from the outside in

Layer What it does
Your provider's DDoS protection Filters network floods before they reach you. Most VPS providers include a basic level.
Your provider's cloud firewall Allows only the game ports and drops everything else before it reaches the server.
The server's own firewall (for example ufw) The same allow-list again, on the server. SSH is allowed only on the private VPN.
Docker publish rules (if you use Docker) Game ports are published only on the address you choose. The Dais is never published to the internet.
Game server limits EQEmu's per-address connection limits and login attempt limits. Add fail2ban on the login log.
A web tunnel with access control (for example Cloudflare Tunnel and Access) Carries the Dais, the player website and any other web page. No web port is opened on the server.
A private VPN (for example Tailscale) Carries SSH, the admin side of the Dais, backups, and any link to a shared login server.

What faces the internet (UDP only)

  • Login server, if this server runs its own public login: UDP 5999 (RoF2) and 15900 (ToB).
  • World: UDP 9000.
  • Zones: UDP 7000-7400 (match Zone Port Range in the Dais).
  • Chat channels and mail, if you offer them: UDP 7778.

Nothing else, and no TCP ports at all. That includes SSH (22), the Dais (3000) and the database (3306).

What won't help, and why

  • Web tunnels (Cloudflare Tunnel, Tailscale Funnel and similar) carry web and TCP traffic. EverQuest uses UDP, so the game itself can't go through them. Use them for the web pages.
  • Private mesh networks (Cloudflare's or Tailscale's private networking) need every player to install a client, so they can't front a public game. They're good for your own admin access.
  • UDP proxy services that can front game ports exist, but at prices beyond most hobby servers.

Known limit

A large DDoS aimed at the game ports can still take the game down while the attack lasts. Only paid UDP protection stops that. The web side and the admin side stay up through it.

The operator runbook

1. Before going public

  1. Install the server and check it while it is reachable only over your private VPN. (Coming soon: the installer and its verify check.)
  2. Set up backups and prove that one restores. (Coming soon: the backup module and its restore test.)
  3. Create an admin account in the Dais. The Dais stays on the server's loopback address and is reached only through the private VPN or the web tunnel's access control.
  4. Check that SSH works over the private VPN, and that you can log in through your provider's web console. The console is your way back in if a firewall change locks you out.

2. Going public

  1. Provider cloud firewall: allow inbound UDP 9000 and 7000-7400, plus 5999 and 15900 if this server runs a public login, and 7778 for chat. Keep a final "drop everything else" rule. Check that the firewall is attached to your VPS. An unattached firewall filters nothing.

  2. Server firewall: allow the same UDP ports, and SSH on the VPN interface only. With ufw and Tailscale, for example:

    sudo ufw default deny incoming
    sudo ufw default allow outgoing
    sudo ufw allow in on tailscale0 to any port 22 proto tcp
    sudo ufw allow 9000/udp
    sudo ufw allow 7000:7400/udp
    sudo ufw allow 5999/udp      # only with your own public login server
    sudo ufw allow 15900/udp     # only with your own public login server
    sudo ufw allow 7778/udp      # only if you offer chat channels and mail
    sudo ufw enable
    

    Run this from the provider's console, not over SSH, in case a mistake cuts you off.

  3. Docker: ports that Docker publishes go around ufw, so ufw alone does not protect them. Publish only the game ports, and only on the public address. (Coming soon: the Parallax Docker profile does this, and checks every published port before it starts.)

  4. Addresses: in the Dais, under Server Config → World Server → Networking, set Public Address to 203.0.113.50. Set Server Config → UCS → Host to the same address. Save and restart.

  5. Web pages: publish the Dais and any player website through the web tunnel, and put the admin pages behind its access control. Open no web port on the server.

  6. Check from outside the VPN (for example from a phone hotspot):

    • A game client logs in, picks the server and zones once. That proves the game ports.
    • TCP 22, 3000 and 3306 on 203.0.113.50 are refused or time out. From another machine: nmap -Pn -p 22,3000,3306 203.0.113.50 should show none of them as open.
    • The provider's firewall page shows the firewall attached to the VPS.

3. Daily and weekly

  • Daily: check that the game, the Dais, the disk and the last backup look healthy. Look at the login log for floods of attempts.
  • Weekly: test that a backup restores. Install OS updates: security updates automatically, the rest in a planned reboot window. Read your provider's firewall log.

Coming soon: the Parallax Host Agent, a small service with its own rescue page and command line. It works even when Docker or the Dais is down, and shows the daily status in one place.

4. When something goes wrong

Problem First step
The game is down Restart it from the Dais. If the Dais is down too, use SSH over the VPN. (Coming soon: the Host Agent rescue page.) Then read the logs.
The Dais is down Restart the Dais. The game keeps running without it.
A flood or DDoS on the game ports Note the time and check your provider's DDoS dashboard. Floods on the game ports end when the attack stops. If it keeps happening, consider a paid UDP protection service.
Locked out of SSH Use your provider's web console, or detach the cloud firewall from the provider's control panel. SSH over the VPN does not depend on the public firewall.
A bad update Restore the last backup. (Coming soon: one-click roll back in the Host Agent.)
A port is open that shouldn't be Stop the server's containers or services at once (your data is kept). Check what is listening (sudo ss -tulpn) and the provider firewall before starting again.

5. Never

  • Never open SSH, the Dais (3000) or the database (3306) to the internet.
  • Never publish a game port by hand with Docker or iptables, bypassing the checks above.
  • Never put a password, key or token in a support request, log, chat message or screenshot.

Next

This guide comes from the parallax-emu-docs repository at commit 194d347. Corrections are welcome there.