How to Host a Rust Server on Linux: Step-by-Step SteamCMD Guide
Set up your own Rust server on Ubuntu 24.04: server files with SteamCMD, a start script, world size and seed, ports, a systemd service, updates and wipes. We are also honest about how much RAM it really needs.
With your own Rust server you decide the map size, the player limit, the wipe schedule and the rules. For a group of friends or a small community, the most reliable option is to run the server on a Linux machine that stays online around the clock. In this guide we set up a Rust dedicated server on Ubuntu 24.04 using Facepunch's official server software.
Summary: download the Rust server files (App ID 258550) anonymously with SteamCMD, run
RustDedicatedfrom a start script, open port 28015/UDP and turn the server into a systemd service. Rust is one of the most RAM-hungry game servers; even for a small map, 8 GB of RAM should be treated as the minimum.
How many resources do you need?
- RAM: Memory usage grows with the map size (
worldsize), the number of players and the number of structures built on the map. For a 2000–2500 map and a few dozen players, 8 GB is the minimum. Maps of 3500 and above, hundreds of players and many plugins need 12–16 GB or more. A Rust server will not run properly with 4 GB. - CPU: The server's main loop relies heavily on a single core. On a server with shared CPU you may see lag at peak times; choose a server with dedicated vCPU.
- Disk: Reserve at least 20–30 GB of free space for the server files, the map and save files, and updates.
- Public IP: Players connect directly, so the server needs its own public IPv4 address.
To compare RAM needs with another game, see How much RAM does a Minecraft server need?
1. Prepare the system
Connect to your server over SSH. SteamCMD needs 32-bit libraries, so enable the i386 architecture and install the required packages:
sudo dpkg --add-architecture i386
sudo apt update && sudo apt upgrade -y
sudo apt install -y lib32gcc-s1 lib32stdc++6 curl tmux
Do not run the server as root; create a separate user:
sudo adduser --disabled-password --gecos "" rust
2. Install SteamCMD and download the server files
Switch to the rust user and download Valve's official SteamCMD package:
sudo -iu rust
mkdir -p ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
The Rust server files are downloaded anonymously with App ID 258550:
~/steamcmd/steamcmd.sh +force_install_dir /home/rust/server +login anonymous +app_update 258550 validate +quit
When it finishes you should see Success! App '258550' fully installed. If you get an error, simply run the command again; SteamCMD resumes where it stopped.
3. Create a start script
Most Rust server settings are passed as launch parameters. Keeping them in a script makes them easier to edit and to turn into a service:
nano ~/start.sh
#!/bin/bash
cd /home/rust/server
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/rust/server/RustDedicated_Data/Plugins/x86_64"
exec ./RustDedicated -batchmode -nographics \
+server.ip 0.0.0.0 \
+server.port 28015 \
+server.queryport 28017 \
+rcon.ip 0.0.0.0 \
+rcon.port 28016 \
+rcon.password "AStrongRconPassword" \
+rcon.web 1 \
+server.hostname "My Rust Server" \
+server.description "Weekly wipe, Turkey" \
+server.identity "server1" \
+server.level "Procedural Map" \
+server.seed 12345 \
+server.worldsize 2500 \
+server.maxplayers 30 \
+server.saveinterval 300 \
-logfile /home/rust/server/rust.log
chmod +x ~/start.sh
Key parameters:
| Parameter | What it does |
|---|---|
server.port |
The port players connect to (UDP) |
server.queryport |
The port the server browser queries (UDP) |
rcon.port / rcon.password |
Remote administration (RCON); the password must be strong |
server.identity |
Folder that holds the map and saves (server/server1) |
server.seed / server.worldsize |
Map shape and size; a bigger map needs more RAM |
server.maxplayers |
Maximum number of players online at once |
server.saveinterval |
Automatic save interval (seconds) |
Do the first test inside tmux:
tmux new -s rust
~/start.sh
On first start the map is generated, so the server can take several minutes to become ready. You can follow progress in a second SSH session with tail -f ~/server/rust.log. Press Ctrl+B, then D to detach from tmux; the server keeps running.
4. Open the firewall
Return to your own user (exit) and open the game and query ports:
sudo ufw allow OpenSSH
sudo ufw allow 28015/udp
sudo ufw allow 28017/udp
sudo ufw enable
Instead of opening the RCON port (28016/TCP) to everyone, allow only your own IP address:
sudo ufw allow from YOUR_IP to any port 28016 proto tcp
To join, open the console in Rust with F1 and type client.connect SERVER_IP:28015. It can take a while for the server to appear in the community list.
5. systemd service and automatic updates
When Facepunch updates Rust, players cannot join a server that is still on the old version. Updating the server on every start is therefore a practical approach. First stop the server running in tmux (tmux attach -t rust, then Ctrl+C), then create the service file:
sudo nano /etc/systemd/system/rust.service
[Unit]
Description=Rust server
After=network-online.target
Wants=network-online.target
[Service]
User=rust
WorkingDirectory=/home/rust/server
ExecStartPre=/home/rust/steamcmd/steamcmd.sh +force_install_dir /home/rust/server +login anonymous +app_update 258550 +quit
ExecStart=/home/rust/start.sh
Restart=on-failure
RestartSec=15
TimeoutStartSec=0
TimeoutStopSec=60
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now rust
sudo systemctl status rust
When an update is released, sudo systemctl restart rust updates the server first and then starts it again. For scheduled tasks, see the cron examples in our server management commands article.
6. How to wipe
In Rust, a "wipe" resets the map (and optionally the learned blueprints). Facepunch releases a mandatory update on the first Thursday of every month, and these updates reset the map (forced wipe). To do your own wipe in between:
sudo systemctl stop rust
rm -f /home/rust/server/server/server1/proceduralmap.*
sudo systemctl start rust
This deletes the map and save files; the server generates a new map on start. For a different map, also change server.seed in start.sh. To reset blueprints too, delete the player.blueprints.* files in the same folder. Making a copy of the folder before a wipe is a good habit.
A short note on plugins
Features such as admin tools, teleports or economy are added through community plugin frameworks like Oxide (uMod) and Carbon. After every Rust update they need a compatible release, so follow their own official documentation for installation. Keep in mind that every plugin adds RAM and CPU usage.
Security
Never share the RCON password, use SSH keys instead of passwords and keep the system updated. For the basics, see our Linux server security guide.
TürkiyeVPS game servers for Rust
Our game server plans run in Istanbul on an Intel Core i5-10400F with dedicated vCPU, guaranteed RAM, 60–100 GB disk, your own IPv4 address, unmetered speed, 3 TB of traffic per month and root access; the server is set up automatically after payment. For Rust, the 8 GB RAM plans are the right fit: Oyun VDS 3 (2 vCPU, 8 GB) for friend groups and small-to-medium communities, or Oyun VDS 4 (4 vCPU, 8 GB) if you want more CPU headroom. To be clear, 8 GB is not enough for a server with hundreds of players, a large map and many plugins; that scale needs a server with more RAM. Our standard VPS plans are not suitable for Rust because of RAM and the lack of a public IP. Payments are accepted in USDT (TRC20). Thinking about FiveM? See Choosing a VDS for FiveM; for CS2, see our CS2 server setup guide. For a smaller survival server for a group of friends, see our Valheim server guide.
Frequently Asked Questions
Is hosting a Rust server free?
The Rust server software is free and is downloaded anonymously with SteamCMD; no Steam account or token is required. You only pay for the machine the server runs on.
How much RAM does a Rust server need?
For a small map (2000–2500) and a few dozen players, 8 GB is the minimum. Memory usage rises as the map grows and as the number of players and structures increases; large community servers use 12–16 GB or more.
My server is not in the list or players cannot connect. What should I do?
First check with sudo ufw status that ports 28015/UDP and 28017/UDP are open. Then look in rust.log to see whether the server has finished loading the map; nobody can join while the map is still being generated. Finally, restart the service to make sure the server is up to date.
How should I choose the world size?
Choose it by player count: 2000–2500 is enough for 10–30 players and is easier on RAM. A larger map means more memory and a longer start-up time.
Does a wipe delete everything players have?
A map wipe resets buildings, items and player inventories. Learned blueprints are reset only when you delete the player.blueprints.* files (a blueprint wipe).
You might also like
VPS prices range from under 1 dollar to dozens of dollars a month. We explain what drives the price (CPU, RAM,...
Want your own VPN server instead of a VPN app subscription? What to look at when choosing a VPS for VPN: IP ad...
What the target site (Target / dest) and SNI do in a Reality connection, what makes a good target, how to test...