Guideschevron_rightServers

Servers · 9 min read · Updated

How to Host a Rust Dedicated Server on Linux

To host a Rust dedicated server on Linux, install SteamCMD on Ubuntu, download the server (Steam app 258550) as its own user, start RustDedicated with your server name, map size and ports, open the game, query and Rust+ ports, and run it as a systemd service that updates on every start. Facepunch asks for 12 GB of free memory and SSD or NVMe storage, so pick a server with a couple of gigabytes more than that.

Which Server Size for Rust

Our plans, with 2 GB kept for the system and the rest for Rust. VPS vCPUs are shared threads of the host processor; a dedicated server's cores are all yours.

Server plans compared with Rust's memory needs
PlanMemoryFor RustCoresVerdictPrice
Bronze VPS6 GB4 GB3 vCPUsBelow Facepunch's 12 GB$37.50/mo
Silver VPS8 GB6 GB4 vCPUsBelow Facepunch's 12 GB$46.50/mo
Gold VPS12 GB10 GB6 vCPUsBelow Facepunch's 12 GB$60.00/mo
Diamond VPS16 GB14 GB8 vCPUsMeets Facepunch's 12 GB$73.50/mo
Platinum VPS24 GB22 GB12 vCPUsMeets Facepunch's 12 GB$100.00/mo
AMD Ryzen 9 5950X dedicated128 GB126 GB16 coresRoom for a big map and plugins$399.00/mo

1. Install SteamCMD

On Ubuntu 24.04, after securing the server. Accept Steam's licence when asked:

sudo add-apt-repository -y multiverse
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y steamcmd
sudo useradd -m -s /bin/bash steam

2. Download the Server

sudo -u steam -i
/usr/games/steamcmd +force_install_dir /home/steam/rust +login anonymous +app_update 258550 validate +quit

The download is large; allow at least 15 GB of free disk, as Facepunch advises, plus room for the map and saves.

3. Write a Start Script

Create /home/steam/rust/start.sh with your own name, size and passwords. The library path lets the server find the plugins that ship with it:

#!/bin/sh
cd /home/steam/rust
export LD_LIBRARY_PATH="$PWD/RustDedicated_Data/Plugins:$PWD/RustDedicated_Data/Plugins/x86_64:$LD_LIBRARY_PATH"
exec ./RustDedicated -batchmode \
  +server.port 28015 +server.queryport 28017 \
  +rcon.port 28016 +rcon.password "a-long-random-password" +rcon.web 1 \
  +app.port 28082 \
  +server.identity "main" \
  +server.hostname "My Rust Server" \
  +server.description "Monthly wipes, friendly admins" \
  +server.maxplayers 50 \
  +server.worldsize 3500 +server.seed 12345 \
  -logfile /home/steam/rust/server.log
chmod +x /home/steam/rust/start.sh

+server.worldsize takes 1000 to 6000; larger maps need more memory and disk. Settings can also go in server/main/cfg/server.cfg, which is read at start-up and takes priority over the command line.

4. Run It as a Service

Back as a user with sudo, create /etc/systemd/system/rust.service:

[Unit]
Description=Rust dedicated server
After=network-online.target
Wants=network-online.target

[Service]
User=steam
WorkingDirectory=/home/steam/rust
ExecStartPre=-/usr/games/steamcmd +force_install_dir /home/steam/rust +login anonymous +app_update 258550 +quit
ExecStart=/home/steam/rust/start.sh
Restart=on-failure
RestartSec=15
TimeoutStartSec=900
TimeoutStopSec=120

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now rust
tail -f /home/steam/rust/server.log      # the first map build takes a while

5. Open the Ports

sudo ufw allow 28015/udp     # game
sudo ufw allow 28017/udp     # query (server list)
sudo ufw allow 28082/tcp     # Rust+ companion app

Leave RCON (28016) closed. To manage the server, open an SSH tunnel with ssh -L 28016:127.0.0.1:28016 [email protected] and point a web RCON client at 127.0.0.1:28016. If you turned on the firewall on your server's page in the dashboard, add the same three rules there. Players join with client.connect 203.0.113.10:28015 in the F1 console, or from the server list once it appears.

Updates, Wipes and Backups

  • Updates: the service fetches the latest server on every start, so sudo systemctl restart rust after a game update is enough.
  • Wipes: Rust's monthly update arrives on the first Thursday of the month, when most servers wipe; the built-in wipe timer defaults to that day at 19:00 London time. To wipe the map, stop the server and delete the .map and .sav files in server/main, or change the seed.
  • Backups: copy server/main off the server, keeping its companion.id file: deleting it gives the server a new Rust+ identity. A storage box and Borg do this nightly.

Running more than one game? Palworld, Valheim and Minecraft set up the same way on a server with the memory for them.

Common Questions

  • How much RAM does a Rust server need?

    Facepunch's server guide asks for 12 GB of free memory, more for a 6000-size map. That is free memory for Rust, so add a couple of gigabytes for the system. Big maps, many players and plugins all push it higher.

  • Which ports does a Rust server use?

    Four: the game port (UDP 28015 by default) and the query port (UDP) for players and the server list, RCON (TCP) for administration, and the Rust+ companion port (TCP, 28082 when the other ports are left at their defaults). Open the game, query and Rust+ ports; keep RCON closed to the internet.

  • How do I run commands on a Linux Rust server?

    The Linux console is not interactive, so use RCON. With +rcon.web 1, a web RCON client can connect to the RCON port; reach it through an SSH tunnel rather than opening it to everyone.

  • VPS or dedicated server for Rust?

    A VPS with enough memory runs a small community server. A busy server with a large map and plugins gains from a dedicated server: far more memory, and fast cores that are not shared with anyone.

Plans and prices

VPS Plans

KVM servers with NVMe storage and full root access in Ashburn and Dallas, built in minutes.

See all plans
  • Bronze

    3 vCPU · 6 GB RAM · 75 GB NVMe

    2 TB transfer

    $37.50/mo

    Configure inAshburnDallas
  • Silver

    4 vCPU · 8 GB RAM · 100 GB NVMe

    4 TB transfer

    $46.50/mo

    Configure inAshburnDallas
  • Gold

    6 vCPU · 12 GB RAM · 150 GB NVMe

    6 TB transfer

    $60.00/mo

    Configure inAshburnDallas
  • Diamond

    8 vCPU · 16 GB RAM · 200 GB NVMe

    8 TB transfer

    $73.50/mo

    Configure inAshburnDallas

Network port: 10 Gbps in Ashburn, VA, 50 Gbps in Dallas, TX. Pick the location when you configure.

Keep Reading

All guides