background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kategorie

Counter-Strike 2 Server Setup Guide


This guide walks you through setting up and configuring your Counter-Strike 2 dedicated server hosted on Legion Hosting, including GSLT registration, server.cfg configuration, game mode selection, workshop maps, plugin frameworks, and how to connect.

Step 1: Get a Game Server Login Token (GSLT)

Required: CS2 dedicated servers must have a valid GSLT to appear in the server browser and to enable VAC (Valve Anti-Cheat). Without a token your server will start, but it will run in insecure mode and will not be listed publicly.

A GSLT is a unique token that ties your CS2 server to your Steam account. You need a Steam account in good standing (no VAC bans) to generate one.

  1. Log in to your Steam account and visit steamcommunity.com/dev/managegameservers.
  2. In the App ID field enter 730 (Counter-Strike 2).
  3. Enter an optional memo (e.g. Legion CS2 Server) to help you identify the token later.
  4. Click Create. Copy the generated token — it looks like a long alphanumeric string.
  5. In GPanel, open your server's Startup tab and paste the token into the GSLT / Steam Token field.
Note: Each token is linked to one server IP. If you move your server or change IPs, generate a new token. You can hold up to 1000 tokens per Steam account.

Step 2: Start Your Server

In GPanel, navigate to your CS2 server and click Start. The server installs or verifies game files on first launch — this can take several minutes. Watch the console for the line:

Connection to Steam servers successful.

If you see that line, your GSLT is valid and the server is running in secure (VAC) mode.

Check GPanel's Network tab for your server's assigned game port and GOTV port. See How to Find Your Server IP and Port if you are unsure of your server's address.

Step 3: Configure server.cfg

The primary configuration file for your CS2 server is located at:

game/csgo/cfg/server.cfg

You can edit this file using the File Manager in GPanel or by uploading it over SFTP. See How to Upload Files via SFTP for instructions.

Below is a recommended starting configuration with explanations for each setting:

// -----------------------------------------------
// Basic server identity
// -----------------------------------------------
hostname "My CS2 Server"          // Name shown in server browser
sv_password ""                    // Leave blank for public, set a password to restrict access
sv_cheats 0                       // 0 = cheats off (required for VAC)

// -----------------------------------------------
// Player limits and regions
// -----------------------------------------------
maxplayers 10                     // Max players (competitive: 10, casual up to 20)
sv_region 255                     // 255 = world, 0 = US East, 3 = Europe

// -----------------------------------------------
// Rates (modern CS2 defaults are usually fine)
// -----------------------------------------------
sv_minrate 0
sv_maxrate 0                      // 0 = unlimited
sv_mincmdrate 64
sv_maxcmdrate 128
sv_minupdaterate 64
sv_maxupdaterate 128

// -----------------------------------------------
// Game behaviour
// -----------------------------------------------
sv_alltalk 0                      // 0 = teams only, 1 = all players hear all chat
sv_deadtalk 1                     // Dead players can talk to living teammates
mp_autoteambalance 1
mp_limitteams 1

// -----------------------------------------------
// Execute game mode config last
// -----------------------------------------------
exec gamemode_competitive.cfg
RCON and admin commands are covered in the CS2 Admin Setup guide, including RCON password configuration, competitive match settings, and GOTV.

Step 4: Game Types and Modes

CS2 uses a combination of two cvars to define the game mode. Set these in your startup parameters (GPanel Startup tab) or at the top of server.cfg.

Mode game_type game_mode Built-in exec
Casual 0 0 gamemode_casual.cfg
Competitive 0 1 gamemode_competitive.cfg
Wingman (2v2) 0 2 gamemode_competitive2v2.cfg
Deathmatch 1 2 gamemode_deathmatch.cfg
Arms Race 1 0 gamemode_armsrace.cfg
Set game_type and game_mode in GPanel's Startup parameters as launch arguments: +game_type 0 +game_mode 1. Changing them only in server.cfg without a restart may not take full effect.

Step 5: Map Pool and Map Changes

Use the following console commands to manage maps. These can be placed in server.cfg, typed via RCON, or run from the GPanel console.

Official Maps

CS2 ships with the standard competitive map pool. Change map with:

changelevel de_mirage
changelevel de_dust2
changelevel de_inferno
changelevel de_nuke
changelevel de_overpass
changelevel de_ancient
changelevel de_anubis

Workshop Maps

To run Steam Workshop maps your server needs the +host_workshop_map launch parameter and a Steam Web API key.

  1. Get a Steam Web API key from steamcommunity.com/dev/apikey.
  2. In GPanel's Startup tab add: +sv_setsteamaccount YOUR_GSLT +authkey YOUR_WEBAPI_KEY
  3. To load a workshop map, add: +host_workshop_map WORKSHOP_MAP_ID (the numeric ID from the workshop URL).
  4. Alternatively use: +host_workshop_collection COLLECTION_ID to load an entire collection and cycle through it.

Step 6: MetaMod and CounterStrikeSharp (Plugin Framework)

MetaMod:Source is a plugin loader that sits between the CS2 game engine and plugins. CounterStrikeSharp (CSS) is a C# plugin framework built on top of MetaMod that lets you install community plugins such as admin menus, practice modes, and match management systems like Get5.

Installing MetaMod:Source

  1. Download the latest CS2-compatible MetaMod:Source build from sourcemm.net. Choose the master branch.
  2. Extract the archive. You will get an addons/ folder.
  3. Upload the addons/ folder to your server's game/csgo/ directory so the path becomes game/csgo/addons/metamod/. See How to Upload Files via SFTP.
  4. In game/csgo/gameinfo.gi, find the SearchPaths block and add the following line directly above the first Game entry:
    			Game	csgo/addons/metamod
  5. Restart your server. Run meta list in the GPanel console — if MetaMod is loaded you will see its version listed.

Installing CounterStrikeSharp

  1. Download the latest release from github.com/roflmuffin/CounterStrikeSharp. Get the with-runtime package so you do not need to install .NET separately.
  2. Extract and upload the contents to game/csgo/ (merging with the existing addons/ folder).
  3. Restart the server. Check the console for [CounterStrikeSharp] Loaded successfully.
  4. Individual plugins go in game/csgo/addons/counterstrikesharp/plugins/ — each plugin has its own subfolder.
Compatibility: CS2 updates frequently break MetaMod and CounterStrikeSharp. After a game update, always check the MetaMod and CSS GitHub pages for updated builds before restarting your server.

Step 7: Connecting to Your Server

Find your server's IP address and assigned port on the Network tab in GPanel.

Via In-Game Console

Open the developer console with the ` (tilde) key and type:

connect YOUR.SERVER.IP:PORT

If you set an sv_password, follow up with:

password YourPassword

Via Server Browser

  1. In CS2, open Play > Community Server Browser.
  2. Click the Favourites tab, then Add a server.
  3. Enter your server IP and port (from GPanel's Network tab) and click OK.
  4. Your server will appear in Favourites and you can double-click to join.

Via Steam Connect Link

You can share a direct Steam connect link with players:

steam://connect/YOUR.SERVER.IP:PORT/YourPassword

Paste this link into a browser address bar or a Steam chat message. The password part is optional if the server has none.

Replace YOUR.SERVER.IP:PORT with your actual server IP and port from GPanel's Network tab. See How to Find Your Server IP and Port for help locating it.

Related Articles

Need help? If you cannot resolve an issue after following this guide, open a support ticket at legionhosting.net/submitticket.php and include your server's GPanel ID and any error messages from the console.

Byl pro vás tento článek užitečný?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.