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.
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.
- Performance VPS - Dedicated resources and fast processors, ideal for DayZ
- NVMe VPS - For a small server or a test server
- Eco Dedicated Servers - For a busy or heavily modded server
- Performance Dedicated Servers - Maximum performance
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
sudo apt update && sudo apt upgrade -yInstalling Dependencies
sudo apt install -y wget tar lib32gcc-s1 libcurl4 libcap2lib32gcc-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:
sudo adduser --disabled-password --gecos "" dayzPorts 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
sudo ufw allow 2302:2306/udp
sudo ufw allow from YOUR_IP to any port 2310 proto udp
sudo ufw reloadWith iptables
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.v4Saving 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.
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.confInstalling SteamCMD
Log in as the dayz user:
sudo -iu dayzCreate the directories and download SteamCMD:
mkdir -p ~/steamcmd ~/dayz-server
cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzf steamcmd_linux.tar.gzDownloading the DayZ Server
Start the server installation (application ID 223350), replacing STEAM_ACCOUNT with the name of the account that owns DayZ:
./steamcmd.sh +force_install_dir /home/dayz/dayz-server +login STEAM_ACCOUNT +app_update 223350 validate +quitSteamCMD 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:
nano ~/dayz-server/serverDZ.cfgEdit or add the following lines, and leave the others as they are:
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:
chmod 600 ~/dayz-server/serverDZ.cfgMain 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:
ls ~/dayz-server/mpmissionsIf 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:
mkdir -p ~/dayz-server/battleye
nano ~/dayz-server/battleye/beserver_x64.cfgRConPassword ChangeMeToo
RConPort 2310chmod 600 ~/dayz-server/battleye/beserver_x64.cfgAlways 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
mkdir -p ~/dayz-server/profiles
cd ~/dayz-server
./DayZServer -config=serverDZ.cfg -port=2302 -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheckTo stop the server, use Ctrl+C, then exit the dayz user's session:
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
sudo nano /etc/systemd/system/dayz.service[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.targetEnable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable dayz.service
sudo systemctl start dayz.serviceManagement Commands
# 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 -fChecking That It Works
The service must be active (running) and ports 2302 and 2305 must be listening:
sudo systemctl is-active dayz.service
sudo ss -ulnp | grep -E ':(2302|2305)\b'Detailed logs are located in the profiles folder:
sudo ls -lt /home/dayz/dayz-server/profiles | headConnecting to the Server
- Open the DayZ launcher
- Go to the server list and search for the name set in
hostname - Or use direct connect with
SERVER_IPand port2302
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:
#login YourAdminPasswordTo give up your rights:
#logoutBohemia 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:
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 +quitLink the Mod and Copy Its Keys
The link makes the mod accessible from the server folder. The .bikey keys allow the server to accept the mod's signatures:
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/ {} +
exitRepeat 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:
sudo nano /etc/systemd/system/dayz.serviceExecStart=/home/dayz/dayz-server/DayZServer -config=serverDZ.cfg -port=2302 "-mod=MOD_ID;MOD_ID_2" -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezechecksudo systemctl daemon-reload
sudo systemctl start dayz.serviceFollow 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:
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.serviceThe 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:
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.serviceServer Update
An outdated server refuses up-to-date players when forceSameBuild is 1. Update it after every game release:
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.serviceTo 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
sudo nano /home/dayz/backup.sh#!/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"sudo chown dayz:dayz /home/dayz/backup.sh
sudo chmod 700 /home/dayz/backup.shSchedule 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:
sudo crontab -e# Backup and restart every day at 5 AM
0 5 * * * systemctl stop dayz.service; sudo -u dayz /home/dayz/backup.sh; systemctl start dayz.serviceLet your players know about this schedule. To restore a backup, stop the server, delete the relevant storage_1 folder, then extract the archive:
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.serviceTroubleshooting
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
profilesfolder -
Look for a missing library:
Terminalsudo -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
logFileline, 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 inserverDZ.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'
.bikeyfiles are inkeys/ - 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:
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 reloadiptables:
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.v4nftables:
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.confCan 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.