Back to all guides
Game Servers

How to Set Up a Rust Dedicated Server on Linux

5 read2026-08-31

Rust is one of the most popular multiplayer survival games. Hosting your own dedicated server gives you complete control over map size, seed, wipe schedules, and plugins. This guide explains how to install Rust Dedicated Server on Ubuntu 22.04 / 24.04.

1. System Requirements

Rust requires substantial CPU single-core performance and memory:

  • CPU: 4+ modern vCPU cores (AMD Ryzen or Intel Xeon Gold recommended)
  • RAM: Minimum 12 GB RAM, 16 GB+ recommended for large maps (3500+ size)
  • Storage: 40 GB+ NVMe SSD

Install prerequisites:

bash
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget file tar bzip2 gzip unzip lib32gcc-s1 lib32stdc++6 libsqlite3-dev

2. Create User & Install SteamCMD

bash
sudo useradd -m -s /bin/bash steam
sudo su - steam
mkdir ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

3. Download Rust Server Files

Install the Rust Dedicated Server (App ID 258550):

bash
~/steamcmd/steamcmd.sh +force_install_dir /home/steam/rust +login anonymous +app_update 258550 validate +quit

4. Create Startup Script

Create a launch script /home/steam/rust/start.sh:

bash
nano /home/steam/rust/start.sh

Add the following launch parameters:

bash
#!/bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/steam/rust/RustDedicated_Data/Plugins/x86_64

./RustDedicated -batchmode   +server.ip 0.0.0.0   +server.port 28015   +server.tickrate 30   +server.hostname "My Ryzehosting Rust Server"   +server.identity "rust_server_01"   +server.seed 12345   +server.worldsize 3500   +server.maxplayers 50   +server.description "Welcome to our Rust Server! Hosted on high-performance infrastructure."   +rcon.ip 0.0.0.0   +rcon.port 28016   +rcon.password "ChangeThisSecureRconPassword!"   +rcon.web 1   -logfile /home/steam/rust/server.log

Make the script executable:

bash
chmod +x /home/steam/rust/start.sh

5. Systemd Service (Auto-Start)

Exit back to root (exit) and create the service file:

bash
sudo nano /etc/systemd/system/rust.service

Paste:

ini
[Unit]
Description=Rust Dedicated Server
After=network.target

[Service]
Type=simple
User=steam
WorkingDirectory=/home/steam/rust
ExecStart=/home/steam/rust/start.sh
Restart=on-failure
RestartSec=15

[Install]
WantedBy=multi-user.target

Enable and start the service:

bash
sudo systemctl daemon-reload
sudo systemctl enable rust
sudo systemctl start rust

6. Firewall Configuration

Open the game and RCON ports in UFW:

bash
sudo ufw allow 28015/tcp
sudo ufw allow 28015/udp
sudo ufw allow 28016/tcp

Connect in Rust by opening the F1 in-game console and typing: client.connect <YOUR-SERVER-IP>:28015.

KVM Game VPS

Ready for your own game server?

Launch your own gaming project on our high-performance KVM VPS with maximum AMD Ryzen single-core power, ultra-fast NVMe storage, and real Layer 3/4/7 DDoS protection (PletX & SmartNet). 100% prepaid with no contract lock-in.

AMD Single-Core Power
Datacenter NVMe SSD
4+ Tbps DDoS Protection
100% Prepaid (No Contract)