EN

Game servers

How to Create Your Own DayZ Server

Complete guide to create a dedicated DayZ server on a VPS or dedicated Linux server: installation with SteamCMD, serverDZ.cfg, map selection, mods, wipe, RCON and systemd service.

11 min read, updated on 18 November 2026

On this page

Your values

Enter them once and the commands in this guide update.

This guide explains how to install and configure a dedicated DayZ server on your VPS or dedicated Linux server: serverDZ.cfg configuration, map selection, mods, wipe, systemd service and backups.

Order a Server

To host your DayZ server, HostMyServers offers several gaming-oriented options. DayZ needs memory and a fast processor, especially with mods.

Prerequisites

  • SSH access as root or user with sudo privileges
  • 64-bit Linux system (Debian 12/13 or Ubuntu 22.04/24.04, see the box above)
  • A Steam account that owns DayZ, ideally a separate account from the one you play with
  • Active firewall: nftables (recommended), iptables or ufw (use only one firewall tool at a time)
  • Ports 2302 to 2306 UDP accessible
  • A fixed IP address if you enable RCON

Required Configuration

Component Minimum stated by Bohemia Recommended (estimate)
CPU Intel Dual-Core 2.4 GHz or AMD Dual-Core Athlon 2.5 GHz 4 high-frequency cores
RAM 6 GB 12 to 16 GB, more with mods
Storage 2.5 GB 30 GB NVMe SSD or more

System Update

Terminal
sudo apt update && sudo apt upgrade -y

Installing Dependencies

Terminal
sudo apt install -y wget tar lib32gcc-s1 libcurl4 libcap2

lib32gcc-s1 is required by SteamCMD, libcurl4 and libcap2 by the DayZServer binary. On Debian 13 and Ubuntu 24.04, apt installs libcurl4t64 instead of libcurl4: this is normal.

Creating a Dedicated User

The server must never run as root:

Terminal
sudo adduser --disabled-password --gecos "" dayz

Ports Used

Port Protocol Usage
2302 UDP Game (-port parameter)
2303, 2304, 2306 UDP Range reserved for the game by Bohemia
2305 UDP Steam queries (steamQueryPort, server list)
2310 UDP BattlEye RCON (optional), restrict to your IP address

Firewall Configuration

Open the game range. If you enable RCON, allow port 2310 from your fixed IP address only: replace YOUR_IP, or remove that line if you do not use RCON.

With UFW

Terminal
sudo ufw allow 2302:2306/udp
sudo ufw allow from YOUR_IP to any port 2310 proto udp
sudo ufw reload

With iptables

Terminal
sudo iptables -A INPUT -p udp --dport 2302:2306 -j ACCEPT
sudo iptables -A INPUT -p udp -s YOUR_IP --dport 2310 -j ACCEPT
sudo iptables-save | sudo tee /etc/iptables/rules.v4

Saving the rules across reboots requires the iptables-persistent package.

With nftables

These commands use the inet filter table and the input chain, present by default in /etc/nftables.conf on Debian.

Terminal
sudo nft add rule inet filter input udp dport 2302-2306 accept
sudo nft add rule inet filter input ip saddr YOUR_IP udp dport 2310 accept
(echo "flush ruleset"; sudo nft list ruleset) | sudo tee /etc/nftables.conf

Installing SteamCMD

Log in as the dayz user:

Terminal
sudo -iu dayz

Create the directories and download SteamCMD:

Terminal
mkdir -p ~/steamcmd ~/dayz-server
cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzf steamcmd_linux.tar.gz

Downloading the DayZ Server

Start the server installation (application ID 223350), replacing STEAM_ACCOUNT with the name of the account that owns DayZ:

Terminal
./steamcmd.sh +force_install_dir /home/dayz/dayz-server +login STEAM_ACCOUNT +app_update 223350 validate +quit

SteamCMD asks for the password, then the Steam Guard code if it is enabled. Do not put the password in the command: it would stay in the shell history. The credentials are then remembered for future logins.

When it finishes, the message Success! App '223350' fully installed. is displayed.

Server Configuration

serverDZ.cfg File

Still as the dayz user, open the file provided with the server:

Terminal
nano ~/dayz-server/serverDZ.cfg

Edit or add the following lines, and leave the others as they are:

Text
hostname = "My DayZ Server";
description = "Welcome to my DayZ server";
password = "";
passwordAdmin = "ChangeMe";
enableWhitelist = 0;
maxPlayers = 60;

verifySignatures = 2;
forceSameBuild = 1;

disableVoN = 0;
vonCodecQuality = 20;
disable3rdPerson = 0;

serverTime = "SystemTime";
serverTimeAcceleration = 12;
respawnTime = 5;

guaranteedUpdates = 1;
instanceId = 1;
storageAutoFix = 1;
steamQueryPort = 2305;

class Missions
{
    class DayZ
    {
        template = "dayzOffline.chernarusplus";
    };
};

Then protect the file, since it contains passwords:

Terminal
chmod 600 ~/dayz-server/serverDZ.cfg

Main Parameters

Parameter Description
hostname Name displayed in the server list (255 characters maximum)
description Description displayed in the server list
password Password to join (empty = public)
passwordAdmin Password to become an administrator
enableWhitelist Enables the whitelist (0 or 1)
maxPlayers Maximum number of players
verifySignatures Verification of .bisign signatures (only the value 2 is supported)
forceSameBuild Only accepts clients running the same version as the server
disableVoN Disables voice chat (0 or 1)
vonCodecQuality Voice chat quality (0 to 20)
disable3rdPerson Disables the third-person view (0 or 1)
serverTime Starting time: SystemTime or YYYY/MM/DD/HH/MM
serverTimeAcceleration Time acceleration (0.1 to 64)
respawnTime Respawn delay in seconds
guaranteedUpdates Network protocol (use only 1)
instanceId Instance number: determines the storage_1 persistence folder
storageAutoFix Replaces corrupted persistence files (0 or 1)
steamQueryPort Steam queries port
template Mission loaded at startup, in the form Mission.Terrain

Choosing the Map

The map depends on the mission set in template:

Map template value Player access
Chernarus dayzOffline.chernarusplus Base game
Livonia dayzOffline.enoch Livonia expansion
Sakhal dayzOffline.sakhal Frostline expansion
Nasdara dayzOffline.nasdara Badlands expansion

Check that the mission is present on your server:

Terminal
ls ~/dayz-server/mpmissions

If it is missing, get its folder from the official Central Economy repository and copy it into mpmissions/.

BattlEye RCON (optional)

RCON is only active if its configuration file exists. On Linux, its name is in lowercase. Create it while the server is stopped:

Terminal
mkdir -p ~/dayz-server/battleye
nano ~/dayz-server/battleye/beserver_x64.cfg
Text
RConPassword ChangeMeToo
RConPort 2310
Terminal
chmod 600 ~/dayz-server/battleye/beserver_x64.cfg

Always set RConPort: without this line, the port is chosen at random. It must stay outside the 2302 to 2306 range. Then connect with a client that supports the BattlEye RCON protocol.

First Launch

Terminal
mkdir -p ~/dayz-server/profiles
cd ~/dayz-server
./DayZServer -config=serverDZ.cfg -port=2302 -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck

To stop the server, use Ctrl+C, then exit the dayz user's session:

Terminal
exit
Parameter Description
-config Configuration file to use
-port Game port
-BEpath BattlEye folder
-profiles Folder for logs and profile data
-dologs Enables logs
-adminlog Enables the admin log
-netlog Enables the network log
-freezecheck Stops the server if it stays frozen for too long

Configuration as systemd Service

Create Service File

Terminal
sudo nano /etc/systemd/system/dayz.service
Configuration
[Unit]
Description=DayZ Dedicated Server
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=dayz
Group=dayz
WorkingDirectory=/home/dayz/dayz-server
ExecStart=/home/dayz/dayz-server/DayZServer -config=serverDZ.cfg -port=2302 -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck
LimitNOFILE=100000
Restart=on-failure
RestartSec=20
TimeoutStopSec=120

[Install]
WantedBy=multi-user.target

Enable and Start Service

Terminal
sudo systemctl daemon-reload
sudo systemctl enable dayz.service
sudo systemctl start dayz.service

Management Commands

Terminal
# Check status
sudo systemctl status dayz.service

# Stop server
sudo systemctl stop dayz.service

# Restart server
sudo systemctl restart dayz.service

# View logs
sudo journalctl -u dayz.service -f

Checking That It Works

The service must be active (running) and ports 2302 and 2305 must be listening:

Terminal
sudo systemctl is-active dayz.service
sudo ss -ulnp | grep -E ':(2302|2305)\b'

Detailed logs are located in the profiles folder:

Terminal
sudo ls -lt /home/dayz/dayz-server/profiles | head

Connecting to the Server

  1. Open the DayZ launcher
  2. Go to the server list and search for the name set in hostname
  3. Or use direct connect with SERVER_IP and port 2302

A new server can take a few minutes to appear in the list.

Administration

In game, open the chat and log in with the passwordAdmin password:

Text
#login YourAdminPassword

To give up your rights:

Text
#logout

Bohemia does not publish an up-to-date list of in-game administration commands. For day-to-day management (connected players, messages, kicks), use a BattlEye RCON client or an administration mod.

Installing Mods

Download a Mod

The mod ID is in the address of its Workshop page (?id=...). Stop the server, then download the mod (DayZ has the Workshop ID 221100), replacing MOD_ID:

Terminal
sudo systemctl stop dayz.service
sudo -iu dayz
cd ~/steamcmd
./steamcmd.sh +force_install_dir /home/dayz/dayz-server +login STEAM_ACCOUNT +workshop_download_item 221100 MOD_ID +quit

The link makes the mod accessible from the server folder. The .bikey keys allow the server to accept the mod's signatures:

Terminal
cd ~/dayz-server
mkdir -p keys
ln -sfn ~/dayz-server/steamapps/workshop/content/221100/MOD_ID MOD_ID
find -L MOD_ID -type f -iname '*.bikey' -exec cp -t keys/ {} +
exit

Repeat these two steps for each mod.

Load the Mods

Edit the ExecStart line of the service and add -mod= with the IDs separated by semicolons. The quotation marks are mandatory:

Terminal
sudo nano /etc/systemd/system/dayz.service
Configuration
ExecStart=/home/dayz/dayz-server/DayZServer -config=serverDZ.cfg -port=2302 "-mod=MOD_ID;MOD_ID_2" -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck
Terminal
sudo systemctl daemon-reload
sudo systemctl start dayz.service

Follow the load order requested by the authors: a required mod, such as a framework, goes before the mods that depend on it. Players must install the same mods.

Server Wipe

Each map's persistence is located in the storage_1 folder of its mission (the number matches instanceId). The examples below are for Chernarus. Always stop the server before touching it.

Full Wipe

This erases the world, bases and characters. The tar command keeps a copy:

Terminal
sudo systemctl stop dayz.service
sudo -iu dayz
cd ~/dayz-server/mpmissions/dayzOffline.chernarusplus
tar -czf ~/pre-wipe_$(date +%Y-%m-%d).tar.gz storage_1
rm -rf storage_1
exit
sudo systemctl start dayz.service

The folder is recreated at the next startup. This wipe is also required to apply most changes to the mission's economy files.

Character Wipe Only

To reset players to zero while keeping the world, delete only the players database:

Terminal
sudo systemctl stop dayz.service
sudo -iu dayz
cd ~/dayz-server/mpmissions/dayzOffline.chernarusplus
cp storage_1/players.db ~/players_$(date +%Y-%m-%d).db
rm -f storage_1/players.db*
exit
sudo systemctl start dayz.service

Server Update

An outdated server refuses up-to-date players when forceSameBuild is 1. Update it after every game release:

Terminal
sudo systemctl stop dayz.service
sudo -iu dayz
cp ~/dayz-server/serverDZ.cfg ~/serverDZ.cfg.bak
cd ~/steamcmd
./steamcmd.sh +force_install_dir /home/dayz/dayz-server +login STEAM_ACCOUNT +app_update 223350 +quit
exit
sudo systemctl start dayz.service

To update a mod, run its +workshop_download_item command again, then copy its keys again with the find command shown above.

Automatic Backup

Backup Script

Terminal
sudo nano /home/dayz/backup.sh
Terminal
#!/bin/bash
umask 077
BACKUP_DIR="/home/dayz/backups"
SERVER_DIR="/home/dayz/dayz-server"
MISSION="dayzOffline.chernarusplus"
DATE=$(date +%Y-%m-%d_%H-%M-%S)

mkdir -p "$BACKUP_DIR"

# Back up the configuration and persistence
tar -czf "$BACKUP_DIR/dayz_$DATE.tar.gz" -C "$SERVER_DIR" serverDZ.cfg "mpmissions/$MISSION/storage_1"

# Delete backups older than 7 days
find "$BACKUP_DIR" -name "dayz_*.tar.gz" -mtime +7 -delete

echo "Backup completed: dayz_$DATE.tar.gz"
Terminal
sudo chown dayz:dayz /home/dayz/backup.sh
sudo chmod 700 /home/dayz/backup.sh

Schedule Backup

Persistence must be copied while the server is stopped. This scheduled task stops the server, backs it up, then restarts it every night, which also serves as a daily restart:

Terminal
sudo crontab -e
Text
# Backup and restart every day at 5 AM
0 5 * * * systemctl stop dayz.service; sudo -u dayz /home/dayz/backup.sh; systemctl start dayz.service

Let your players know about this schedule. To restore a backup, stop the server, delete the relevant storage_1 folder, then extract the archive:

Terminal
sudo systemctl stop dayz.service
sudo -u dayz rm -rf /home/dayz/dayz-server/mpmissions/dayzOffline.chernarusplus/storage_1
sudo -u dayz tar -xzf /home/dayz/backups/ARCHIVE_NAME.tar.gz -C /home/dayz/dayz-server
sudo systemctl start dayz.service

Troubleshooting

Failed to install app '223350' (No subscription)

The account used does not own DayZ, or you tried an anonymous login. Log in with an account that owns the game.

Login Failure or Steam Guard code prompt

Run SteamCMD again in an interactive terminal and enter the password and the Steam Guard code. Avoid any automatic update when the service starts: it would hang if Steam asks for a code again.

The server won't start

  • Check the logs: sudo journalctl -u dayz.service -n 100

  • Check the most recent log in the profiles folder

  • Look for a missing library:

    Terminal
    sudo -u dayz bash -c 'cd ~/dayz-server && ldd ./DayZServer | grep "not found"'
  • Check the syntax of serverDZ.cfg: every line ends with a semicolon

  • If the file contains a logFile line, remove it to test: this parameter has already been reported as a cause of crashes on Linux

The server crashes at startup (Segmentation fault)

Crashes related to libcurl and OpenSSL have been reported on the Bohemia tracker, depending on the distribution and the server version. Update the system and the server, remove all mods to test, then check the recent reports. If the problem persists, try another of the distributions mentioned in this guide.

The server doesn't appear in the list

  • Check that steamQueryPort = 2305; is in serverDZ.cfg
  • Check that ports 2302 to 2306 are open over UDP
  • Wait a few minutes, then try direct connect
  • Check that the server has Internet access

Players are refused when connecting

  • Different version: update the server (forceSameBuild)
  • Signature rejected: check that the mods' .bikey files are in keys/
  • Missing mods: players must load the same mods as the server

A mod doesn't load

  • Check that the link exists: sudo -u dayz ls -l /home/dayz/dayz-server/MOD_ID
  • Check the quotation marks around -mod= in the service
  • Look for uppercase file names (see the section on mods)

Corrupted persistence files

Leave storageAutoFix = 1, which replaces corrupted files with empty ones. To avoid losing this data, restore your latest backup instead. Always stop the server with systemctl stop rather than cutting the machine's power.

FAQ

Do I need to open ports for Steam?

If your firewall blocks incoming traffic by default, these rules allow the server to receive replies from the Steam servers:

UFW:

Terminal
sudo ufw allow proto udp from any port 27000:27030 to any port 1025:65535
sudo ufw allow proto udp from any port 4380 to any port 1025:65535
sudo ufw reload

iptables:

Terminal
sudo iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65535 -j ACCEPT
sudo iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65535 -j ACCEPT
sudo iptables-save | sudo tee /etc/iptables/rules.v4

nftables:

Terminal
sudo nft add rule inet filter input udp sport 27000-27030 udp dport 1025-65535 accept
sudo nft add rule inet filter input udp sport 4380 udp dport 1025-65535 accept
(echo "flush ruleset"; sudo nft list ruleset) | sudo tee /etc/nftables.conf

Can I use my personal Steam account?

Yes, if it owns DayZ. A separate account is still preferable: its credentials are kept by SteamCMD on the server, and logging in while you are playing can interrupt your session.