01
The file, the command line and the ports
The name server.cfg is only a habit: the server reads the file given by the -config parameter. Without that parameter, no configuration file is loaded. Each setting is written name = value;, text in quotes, lists with brackets and braces (admins[] = { … };). Lines starting with // are comments.
The useful startup parameters, according to the official startup parameters page:
-port=2302: the game port;
-config=server.cfg: the file described in this guide;
-cfg=basic.cfg: the network settings file (see below);
-profiles= and -name=: the server profile folder, where logs are written, and the name of that profile. The wiki states that -profiles does not work on Linux: the profile is created in ~/.local/share/Arma 3 - Other Profiles instead;
-mod= and -serverMod=: the mods to load, separated by semicolons; -serverMod is for server-only mods that players do not need to install;
-bePath=: the BattlEye working folder, if you do not want the one in the profile.
On Windows, put quotes around a parameter that contains a semicolon or a space ("-mod=@cba_a3;@ace"). On Linux, the wiki puts a backslash before each semicolon (-mod=@cba_a3\;@ace), with paths relative to the game folder. Mods and their keys are covered in installing mods on an Arma 3 server.
Ports. All of them are UDP: 2302 for the game (and voice), 2303 for the Steam query, 2304 for the Steam master server, 2305 reserved and 2306 for BattlEye. Open the range 2302 to 2306, and shift it by at least 100 for a second server on the same machine (2402 to 2406). The Arma 3 server does not support IPv6: it needs a real IPv4 address. The guide game server ports explains the rest.
02
Name, passwords, slots and administrators
hostname: the name shown in the server list;
password: the password to join the server. Empty by default, so the server is public;
passwordAdmin: the administrator password. In game, #login followed by this password grants admin rights (see Arma 3 admin commands);
serverCommandPassword: the password required by the password form of the serverCommand scripting command, used by some server-side scripts. It is case-sensitive. Make it different from passwordAdmin;
maxPlayers: the number of slots, 64 by default on a dedicated server. The server keeps the lower of this setting and the number of roles in the mission;
motd[] and motdInterval: the welcome messages, one line per comma-separated text, and the interval in seconds between two lines (5 by default);
admins[]: the IDs (UID, that is the SteamID64) of players who become administrators by typing #login without a password.
Four settings form the security baseline the wiki recommends for a public server:
BattlEye = 1;: enables the anti-cheat (this is the default);
verifySignatures = 2;: checks the signature of each player's .pbo files against the .bikey keys in the server's keys folder. 2 is the default, 0 disables the check, and 1 falls back to 2;
allowedFilePatching = 0;: refuses players who start the game with the -filePatching option, which loads files outside .pbo archives (1 allows it for headless clients only, 2 for everyone);
kickDuplicate = 1;: automatically kicks a second player who joins with an ID that is already connected.
Once the file is changed, restart the server; the admin command #init also reloads the file given by -config.
03
Votes, persistence and mission rotation
voteThreshold: the share of players needed to pass a vote, for example for a mission or an administrator: 0.5 by default, 0.33 for one third;
voteMissionPlayers: the number of connected players at which mission voting opens (1 by default);
persistent = 1;: the mission keeps running when the last player leaves. This only applies to missions with base or instant respawn;
forcedDifficulty: forces a difficulty on the server. A difficulty set in the mission rotation takes precedence over this setting;
disableVoN = 1;: turns off in-game voice chat, if your community uses another tool;
logFile: copies the server console to a text file.
The rotation is declared in the class Missions block. Without an administrator, the server starts the mission as soon as a player is connected, then moves to the next one when it ends:
class Missions
{
class Mission1
{
template = "MP_CombatPatrol_01.Altis";
difficulty = "regular";
};
};
template: always missionName.terrainName, without the extension: the file MaMission.Altis.pbo (or the folder MaMission.Altis) in the MPMissions folder is written "MaMission.Altis";
difficulty: Recruit, Regular, Veteran or Custom. With Custom, the server reads the custom difficulty from the .Arma3Profile file in its profile;
template and difficulty are required; an optional class Params block changes the mission's default parameters;
- the keyword
class must be written in lowercase, otherwise the file fails to parse.
randomMissionOrder = true; picks missions at random, autoSelectMission = true; starts the next one automatically, and missionWhitelist[] limits the missions an administrator can choose. Uploading missions to the server is covered in creating an Arma 3 server.
04
basic.cfg: the network settings
The file given by -cfg controls how the server sends its data. Without this parameter, the server loads the Arma3.cfg file from its profile. The settings and their default values, according to the official wiki:
MaxMsgSend (128): the maximum number of packets sent per simulation cycle;
MaxSizeGuaranteed (512) and MaxSizeNonguaranteed (256): the maximum size, in bytes, of guaranteed packets (shots, events) and non-guaranteed packets (positions);
MinBandwidth (131072, in bits per second): the bandwidth the server is sure to have. Too optimistic a value increases lag and CPU load;
MaxBandwidth: the bandwidth the server will never reach;
MinErrorToSend (0.001) and MinErrorToSendNear (0.01): the error above which a position update is sent, for distant and nearby units;
MaxCustomFileSize: the maximum size, in bytes, of players' custom faces and sounds; above it, the player is kicked when connecting;
class sockets { maxPacketSize = 1400; };: the maximum packet size. The wiki keeps this setting for connections that enforce smaller packets.
The defaults suit most servers. Change one setting at a time and measure the effect with #monitor: according to the wiki, a server that drops below 20 frames per second is overloaded, and the current mission is probably too heavy for it.
05
A full commented example
A server.cfg for a 40-slot public co-op server, to adapt:
// server.cfg
hostname = "Mon serveur Arma 3 FR"; // name in the server list
password = ""; // empty = public server
passwordAdmin = "un-long-mot-de-passe"; // #login followed by this password
serverCommandPassword = "un-autre-mot-de-passe";
logFile = "server_console.log"; // copy of the console
motd[] = { "Welcome to our server", "No friendly fire" };
motdInterval = 5; // seconds between two lines
maxPlayers = 40;
kickDuplicate = 1;
verifySignatures = 2; // signed mods only
allowedFilePatching = 0;
BattlEye = 1;
admins[] = { "76561198000000000" }; // SteamID64: #login without a password
voteMissionPlayers = 1;
voteThreshold = 0.33; // one third of players
persistent = 1; // the mission keeps running with no players
timeStampFormat = "short"; // time on each log line
randomMissionOrder = false;
autoSelectMission = true;
class Missions
{
class Mission1
{
template = "MP_CombatPatrol_01.Altis";
difficulty = "regular";
};
};
And the matching command line, on Windows:
arma3server_x64.exe -port=2302 -config=server.cfg -cfg=basic.cfg "-profiles=profiles" -name=server "-mod=@cba_a3;@ace"
On first start, read the .rpt log in the profile: a syntax error or a missing mission shows up there. Also remember to copy each mod's .bikey key into the keys folder, otherwise verifySignatures = 2 refuses players.
06
On a CloudFive server
On our Arma 3 hosting plans, from €4 per month:
server.cfg, basic.cfg, missions and mods can be edited from the client area manager.cloudfive.fr or over SFTP (see SFTP with FileZilla and WinSCP), and the server console is in the same place;
- servers run in France on our own AS218808 network, on Ryzen 9 9950X, a high per-core clock speed, which is what the Arma 3 engine needs, with DDR5 and NVMe;
- Anti-DDoS Premium is included, with a profile specific to Arma 3 (see protecting a game server against DDoS).
It is monthly, with no commitment, and support answers in French 7 days a week through tickets and on Discord. To compare plans, see choosing a game server host.
07
Frequently asked questions
Where is the Arma 3 server.cfg file?
Its name and location are up to you: the -config startup parameter points to it. Without -config, the server loads no configuration file. Network settings are in a second file, given by -cfg, often called basic.cfg.
How do I start a mission automatically on an Arma 3 server?
Declare it in the class Missions block of server.cfg, with template = "MissionName.TerrainName" (without .pbo) and, for example, difficulty = "regular". The keyword class must be lowercase. The server then starts the mission as soon as a player connects.
What does verifySignatures = 2 do?
It checks the signature of each player's .pbo files against the .bikey keys in the server's keys folder. It is the default value; 0 disables the check and 1 falls back to 2. Copy each mod's key into keys, otherwise players who have that mod are refused.
How do I add administrators in server.cfg?
List their IDs (UID, the SteamID64) in admins[] = { "…" };. They become administrators by typing #login without a password. Without BattlEye RCON, only one administrator can be logged in at a time: the first one keeps the role.
Do I need to change basic.cfg?
Not necessarily: the default values suit most servers. If you change it, adjust one setting at a time and follow the effect with #monitor. According to the wiki, a server below 20 frames per second is overloaded: the mission is probably too heavy.