- 1 Requirements
- 2 AppID
- 3 Installation
- 4 MULTI INSTANCE
- 5 BETA PARAMETERS
- 6 Tips
- 7 Ports to Open
- 8 Command Line
- 9 Firewall
- 10 Files
- 11 Adding Admins in Admins.cfg
- 12 Bans in Bans.cfg
- 13 Map Rotation in MapRotation.cfg
- 14 Map Rotation: Add Steam-Workshop Maps
- 15 Remote Admin Lists in RemoteAdminListHosts.cfg
- 16 Remote Ban Lists in RemoteBanListHosts.cfg
- 17 Server Configuration Settings in Server.cfg
- 18 Server Messages in ServerMessages.cfg
- 19 Rcon control in Rcon.cfg
- 20 Tournament Mode
Requirements[edit | edit source]
Windows[edit | edit source]
Linux[edit | edit source]
GLIBC 2.17 or higher
AppID[edit | edit source]
Installation[edit | edit source]
Windows[edit | edit source]
- Download SteamCmd and extract to your preferred directory.
- Open SteamCmd or create a .bat file with the following contents
SET STEAMCMD="C:\steamcmd\steamcmd.exe" %STEAMCMD% +login anonymous +force_install_dir "C:\servers\squad_server" +app_update 403240 validate
Linux[edit | edit source]
First of all this guide assumes you've got a Linux Distribution installed with 64 bit architecture. Most hosting companies will run 64bit so not to worry.
Other than that, this guide needs no linux experience whatsoever and will be in completely "for dummies" mode.
Anything in this guide that comes after the symbol $ is a command that you're supposed to run in the linux terminal.
PROTIP: The linux terminal autocompletes with TAB. So if you have a file or folder called "testfolder" you can write "test" and press tab and it will autofill to testfolder!
A suggested software to use to connect to your linux server terminal is PUTTY. https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe
Any questions? Contact [M] Nordic Socialist on Discord, you can find me in the Squad Hosting discord http://discord.me/squadhosting or www.mumblerines.com/discord
All right, let's get started:
1. Log in as root and install the software screen and a library needed for SteamCMD
Debian/Ubuntu: $apt-get install screen $apt-get install lib32gcc1 CentOS: $yum -y install screen $yum -y install glibc libstdc++ $yum -y install glibc.i686 libstdc++.i686
2. Create a user you want to use for the squadservers.
Enter a password for the user of your own choosing. You may have to change the password with "sudo passwd username" When prompted for full name, room number, work phone, home phone, and other just press enter. When asked if information is correct write Y and press enter
3. Log on to the new user account: ssh username@localhost and then the password you selected.
4. Make a directory named SquadServer
5. Enter the folder
6. Make a folder for the first server instance
7. Download SteamCMD
NOTE: Some have complained about getting an untrusted/license error of some sort. If that is the case, try this:
8. Unpack steamCMD
$tar zxvf steamcmd_linux.tar.gz
9. Create a script for installing (And later updating) the first serverinstance
$nano updateserver1.sh - This opens a text editor. Copy paste the following into the file: "./steamcmd.sh +login anonymous +force_install_dir server1 +app_update 403240 validate" Close the file and save by pressing ctrl+o and hitting enter. Exit by pressing ctrl+x
10. Make files in the folder executeable
$chmod +x *
11. Install the server instance (this same command is used later to update the server when a new version is released.)
12. When it's finished it will say "Success! App '403240' fully installed." Quit SteamCMD by writing
and hitting enter.
13. Create a script for starting the server instance
14. Copy paste the following into the file:
cd server1; ./SquadServer.sh Port=7787 QueryPort=27165 FIXEDMAXPLAYERS=80 RANDOM=NONE
15. Save and close the file by pressing ctrl+o > Enter > Ctrl+X
16. Make the script and the server folder executeable
$chmod +x startserver1.sh $chmod +x server1
17. Open a screen window to run the server in then enter that screen
$screen -dmS server1 $screen -r server1
18. Start your server
Screen allows the server to run even if you've shut down your SSH session (putty).
EDITING CONFIG FILES:
1. Log on as your the user account running the server and go into the Serverconfig folder located in SquadServer/server1/Squad/ServerConfig in our example.
$ cd SquadServer $ cd server1 $ cd Squad $ cd ServerConfig
2. Open the file you wish to edit with NANO.
Edit file. When you're done, save the file with ctrl+o and then enter. Exit nano with ctrl+X.
1. SSH to your linux server as the user running the squadserver. (Not root) Once in the terminal, open up the screen for said server instance, in above example called server1
$screen -r server1
2. You will now see the SquadServer log window, press CTRL+C and it will shut the server down. After that you can start it again with your startcommand.
Docker[edit | edit source]
If your server is running Docker, you can skip the above steps and simply use:
docker run -d --net=host --name=squad-dedicated cm2network/squad
The container will automatically update the game on startup, so if there is a game update just restart the container.
The config is located here: /home/steam/squad-dedicated/Squad/ServerConfig/
If you want to launch another instance you can increment the environment variables, using -e (--env):
docker run -d --net=host -e PORT=7788 -e QUERYPORT=27166 -e RCONPORT=21115 --name=squad-dedicated2 cm2network/squad
You can find the associated Docker Hub page here: https://hub.docker.com/r/cm2network/squad/
MULTI INSTANCE[edit | edit source]
LINUX[edit | edit source]
The important things to create different instance inside your server are these:
- Duplicate the directory and rename it.
- After that, edits the config files and set on the Rcon.cfg a port 10 numbers later the one of the previous instance.
Server1 Rcon Port: 21114
Server2 Rcon Port: 21124
- Keep on your mind to change the port of connection in the start.sh script to avoid other problems.
BETA PARAMETERS[edit | edit source]
LinuX[edit | edit source]
./steamcmd.sh +login anonymous +force_install_dir server1 +app_update 403240 -beta NAMEOFTHEBETA -betapassword PASSWORD validate +quit
Windows[edit | edit source]
SET STEAMCMD="C:\steamcmd\steamcmd.exe" %STEAMCMD% +login anonymous +force_install_dir "C:\servers\squad_server" +app_update 403240 -beta NAMEOFTHEBETA -betapassword PASSWORD validate +quit
Tips[edit | edit source]
Make sure Steam Client is closed. If its open Squad Server will not run. For support issues related to server hosting please visit our Discord Server https://discord.gg/0Z8icdJWCH1u0pYj
Ports to Open[edit | edit source]
Port = Game port = UDP (Default 7787, 7788 UDP) Need to be open on Windows firewall and router.
QueryPort = Steam query port = UDP (Default 27165 UDP)
QueryPort+1 = Second Steam query port = UDP and TCP (Default 27165, 27166, 27167 UDP and TCP)
Command Line[edit | edit source]
MultiHome = The IP Address you want to bind the server to. (Use only if you have multiple IPs on your server)
Port = Game port
QueryPort = Steam query port
RANDOM = Randomize map rotation (ALWAYS, FIRST, NONE) (Optional)
FIXEDMAXPLAYERS = Player count cannot go higher than this (Optional)
FIXEDMAXTICKRATE = MAX server tickrate (Optional)
PREFERPREPROCESSOR = CPU Affinity (Optional) UNTESTED
-log = Display a log window on the server (Optional)
-fullcrashdump = Save a full dump file on crash (can become quite large sometimes) (Optional)
start SquadServer.exe MULTIHOME=220.127.116.11 Port=7787 QueryPort=27165 FIXEDMAXPLAYERS=50 RANDOM=ALWAYS -logYou can also use the start-command for e.g. setting the core affinity for each server (if you run several servers on one machine):
start /AFFINITY C /WAIT SquadServer.exe MULTIHOME=18.104.22.168 Port=7787 QueryPort=27165 FIXEDMAXPLAYERS=50 RANDOM=ALWAYS -log
Calculating AFFINITY[edit | edit source]
Open your Windows calculator.
Step 1 - Click menu icon
Step 2 - Enable "programmer" mode
Step 3 - Toggle bit keypad
Step 4 - Click until you see BYTE which corresponds to 4 core 8 threads CPU (You can select other values to correspond your CPU).
Step 5 - Click on HEX
Core thread count starts from 0, you can see which number is responsible for which core thread on the third image. 1 means core thread is selected, 0 means core thread is ignored.
Result you need is shown in "HEX", if you have all core thread selected 0-7 you will see "FF" as your result. For our /AFFINITY parameter we need then "FF" to set the core affinity to all core threads. If you want to select only core threads 4-7 (0000 1111) your result should be "F".
Firewall[edit | edit source]
Allowing the SquadServer.exe files through the firewall will save you headaches.
Steam\steamapps\common\Squad Dedicated Server\SquadServer.exe
Files[edit | edit source]
Configuration files are located in
Configuration files located in this directory are
Admins.cfg Bans.cfg License.cfg MapRotation.cfg Rcon.cfg RemoteAdminListHosts.cfg RemoteBanListHosts.cfg Server.cfg ServerMessages.cfg
Adding Admins in Admins.cfg[edit | edit source]
Admins are now created by groups and groups are assigned to admins. You can create as many groups as you want with any types of permissions. All the permissions will be in the config file commented out. These files will not be over writeable so when we add new permissions you will need to check here or the wiki for updates. The below are just examples. Please note that it needs to be SteamId64. You can convert your ID at steamid.io/lookup/
Group=SuperAdmin:changemap,cheat,private,balance,chat,kick,ban,config,cameraman,debug,pause Group=Admin:changemap,balance,chat,kick,ban,cameraman,pause Group=Moderator:changemap,chat,kick,ban Admin=76561115695178:Moderator //Player 5 Admin=8915618948911:Moderator //Player 4 Admin=7894591951519:Admin //Player 3 Admin=7984591565611:SuperAdmin //Player 2 Admin=917236241624:SuperAdmin //Player 1 Admin=45365435431:Admin //Player 8792A list of group permission are as follows:
////Valid access levels are as follows //// startvote - not used //// changemap //// pause - Pause server gameplay //// cheat - Use server cheat commands //// private - Password protect server //// balance - Group Ignores server team balance //// chat - Admin chat and Server broadcast //// kick //// ban //// config - Change server config //// cameraman - Admin spectate mode //// immunity - Cannot be kicked / banned //// manageserver - Shutdown server //// featuretest - Any features added for testing by dev team //// reserve - Reserve slot //// demos - Record Demos (not working) //// debug - show admin stats command and other debugging info //// teamchange - No timer limits on team change //// forceteamchange - Can issue the ForceTeamChange command //// canseeadminchat - This group can see the admin chat and teamkill/admin-join notifications
Bans in Bans.cfg[edit | edit source]
This is where your bans will go. They need to be in the format of
steamid:unix timestamp of unban //comment
So an example file will look like this
76561198039509812:0 //Permanent ban for cheating 7862895148978485:1454455855 //team killing
Make sure if you manually add / remove a ban that the file ends with a new line character. Each ban goes on its own line.
Map Rotation in MapRotation.cfg[edit | edit source]
If you add the general map names (such as below without a specific game mode). Our parser will do all variations of it including AAS, INS, etc. Map names can be seen from the DefaultGame.ini file. Each map entry goes on a new line.
Logar Kohat OP First Light Chora Fool's Road Sumari Gorodok Yehorivka Mestia Kokan Narva Al Basrah Belaya
If you want a specifc map version you can add the below into the rotation file
Al Basrah Al Basrah AAS v1 Al Basrah Invasion v1 Al Basrah PAAS v1 Belaya AAS v1 Belaya PAAS v1 Belaya Invasion v1 Belaya Invasion v2 Chora Chora AAS v1 Chora AAS v2 Chora INS v1 Chora Invasion v1 Night Chora PAAS v1 Fool's Road Fool's Road AAS v1 Fool's Road AAS v1 INF Fool's Road AAS v2 Fool's Road AAS v3 Fool's Road Skirmish Gorodok Gorodok AAS v1 Gorodok AAS v1 INF Gorodok AAS v2 Gorodok Conquest v1 Gorodok Invasion v1 Jensen's Range Kohat Kohat AAS v1 Kohat AAS v1 INF Kohat INS v1 Kohat Invasion v1 Kokan Kokan AAS v1 Kokan AAS v2 Kokan INS v1 Kokan PAAS v1 Logar Logar PAAS v1 Logar Valley AAS v1 Logar Valley AAS v1 INF Logar Valley INS v1 Logar Valley INS v1 Night Mestia PAAS v1 Mestia Invasion v1 Mestia Invasion v2 Mestia AAS v1 Mestia AAS v2 Narva Narva PAAS v1 Narva Invasion v1 Narva AAS v1 Op First Light Op First Light AAS v1 Op First Light Conquest v1 Sumari Sumari AAS v1 Sumari AAS v1 INF Sumari AAS v2 Sumari AAS v3 Sumari INS v1 Sumari ITC v1 Yehorivka Yehorivka AAS v1 Yehorivka AAS v1 INF Yehorivka AAS v2 Yehorivka Conquest v1 Yehorivka Invasion v1
Map Rotation: Add Steam-Workshop Maps[edit | edit source]
See this article: How to add one or more Steam Workshop Maps to the Squad Server
Remote Admin Lists in RemoteAdminListHosts.cfg[edit | edit source]
Each line should contain a URL to the admin file. The admin file will follow the exact same format as above. This should be used if you run multiple servers and would like to have a single admin file for all of them. If a player is listed in multiple files, their permissions will be combined.
Remote Ban Lists in RemoteBanListHosts.cfg[edit | edit source]
Each line should contain a URL to the ban file. The ban file will follow the exact same format as above. This should be used if you run multiple servers and would like to have a single admin file for all of them.
Server Configuration Settings in Server.cfg[edit | edit source]
This is the general server config file. Each variable should be on its own line. New additions will be added to this wiki. Since we do not overwrite config files you will need to manually add them to your existing server config if you wish to alter the default value.
ServerName="Squad Dedicated Server" MaxPlayers=40 NumReservedSlots=0 IsLANMatch=false ShouldAdvertise=true NumPlayersDiffForTeamChanges=3 AllowTeamChanges=true PreventTeamChangeIfUnbalanced=true EnforceTeamBalance=true RejoinSquadDelayAfterKick=180 AllowCommunityAdminAccess=true RecordDemos=false ServerMessageInterval=300 ServerPassword=Password AllowQA=false
Server Messages in ServerMessages.cfg[edit | edit source]
This will rotate server messages every x seconds (based on Server.cfg setting). Each message should have its own line. This should be used to display server rules and contact information.
Rcon control in Rcon.cfg[edit | edit source]
If you do not want to use RCON, leave the password= empty. NOTE: Leaving the RCONIP=0.0.0.0 will bind it to the public default IP. If your server has multiple IP's please specify the address here.
// Edit this IP to bind the RCON socket to an alternate IP address. // Alternatively, set this from the command line with the argument: // RCONIP=0.0.0.0 IP=0.0.0.0 // Edit this IP to bind the RCON socket to an alternate port. // Alternatively, set this from the command line with the argument: // RCONPORT=21114 Port=21114 // Set this to enable the usage of RCON with the given password for login. // Leaving this empty will keep RCON turned off. // Alternatively, set this from the command line with the argument: // RCONPASSWORD=MyPassword Password= // Set this to set the maximum number of allowable concurrent RCON // connections to the server. // Alternatively, set this from the command line with the argument: // RCONMAXCONNECTIONS=5 MaxConnections=5 // Edit this to customize the number of seconds without contact from a connected // console before the server checks with that computer to see if the session is // still active, or if it got disconnected. Supports values between 30 and 3600. // Alternatively, set this from the command line with the argument: // RCONSECONDSBEFORETIMEOUTCHECK=120 SecondsBeforeTimeoutCheck=120
Tournament Mode[edit | edit source]