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
Категорії

Team Fortress 2 Server Setup Guide

tf2 setup server.cfg gslt maps fastdl 0 вважають це корисним
Доступно мовами: ESPAÑOL PORTUGUÊS (BRASIL)

This guide walks you through configuring your Team Fortress 2 dedicated server, including server settings, GSLT tokens, map rotation, custom maps with FastDL, and how to connect.

Configuring server.cfg

The main server configuration file is located at tf/cfg/server.cfg. This file is executed every map change and controls core server behaviour. Edit it via the GPanel file manager or SFTP.

Below is a reference configuration covering the most important settings:

// -----------------------------------------------
// server.cfg — Team Fortress 2 Server Configuration
// -----------------------------------------------

// Server identity
hostname    "My TF2 Server"           // Name shown in the server browser
sv_password ""                        // Leave blank for public, set for private

// Players
maxplayers  24                        // Maximum player slots (TF2 supports up to 32)

// Game rules
mp_timelimit    30                    // Minutes per map before auto-rotation
mp_winlimit     0                     // Rounds won before map changes (0 = disabled)
mp_maxrounds    0                     // Total rounds before map changes (0 = disabled)

// Purity / anti-cheat
sv_pure         1                     // 0 = allow all, 1 = whitelist, 2 = pure (no custom content)
sv_cheats       0                     // Always 0 on a public server

// Rate / network
sv_minrate      0
sv_maxrate      0                     // 0 = unlimited (recommended for modern connections)
sv_mincmdrate   10
sv_maxcmdrate   66

// GSLT token (Steam Game Server Login Token)
// sv_setsteamaccount YOUR_TOKEN_HERE

// Region (optional, helps matchmaking)
sv_region       255                   // 255 = world, 0 = US East, 1 = US West, 3 = Europe

// Logging
log             on
sv_logbans      1
sv_logecho      1
sv_logfile      1
sv_log_onefile  0
Tip: After editing server.cfg, restart the server or type exec server.cfg in the server console to reload settings without a full restart.

Key Setting Reference

Setting Values Description
hostname Any string Server name displayed in the browser and scoreboard
sv_password Empty / string Password to join. Leave blank for a public server
maxplayers 1–32 Maximum concurrent player slots
mp_timelimit Integer (minutes) Time before the server moves to the next map
mp_winlimit Integer (0 = off) Wins needed by one team to trigger a map change
sv_pure 0 / 1 / 2 0 = unrestricted, 1 = whitelist enforced, 2 = fully pure

Game Server Login Token (GSLT)

A GSLT is required to list your server publicly on the Steam server browser and to avoid being flagged. Without a valid token, your server may still run but will not appear in the official list and could encounter VAC issues.

Generating a GSLT

  1. Log in to your Steam account at steamcommunity.com/dev/managegameservers.
  2. Enter App ID 440 (Team Fortress 2) in the App ID field.
  3. Enter a memo (e.g. "My TF2 Server") and click Create.
  4. Copy the generated token.

Applying the Token

Open tf/cfg/server.cfg and add (or uncomment) the following line, replacing YOUR_TOKEN_HERE with the token you generated:

sv_setsteamaccount YOUR_TOKEN_HERE
Important: Each GSLT is tied to one server instance. Do not reuse the same token across multiple servers. If your server IP changes significantly, you may need to regenerate the token. Tokens expire if the server has not connected to Steam for an extended period.

Map Rotation (mapcycle.txt)

The server cycles through maps listed in tf/cfg/mapcycle.txt. Each line contains one map name (without the .bsp extension).

// tf/cfg/mapcycle.txt
// One map name per line. Lines starting with // are comments.

cp_dustbowl
cp_gorge
ctf_2fort
ctf_turbine
pl_badwater
pl_upward
koth_harvest_final
koth_viaduct
arena_well
mvm_coaltown
Tips:
  • The order of maps in this file determines the default rotation order.
  • If you use MapChooser Extended or RTV plugins, the mapcycle is used as the nomination pool. See the Admin & Plugin Setup guide for plugin details.
  • Run maps * in the server console to list all currently available maps.
  • Changes to mapcycle.txt take effect on the next map change without a server restart.

Installing Custom Maps

Custom maps are distributed as .bsp files. Players need to download the map when they first join a server running it.

Uploading the Map

  1. Obtain the .bsp file for the custom map (from tf2maps.net or other community sites).
  2. Upload the file to the tf/maps/ directory on your server via SFTP.
  3. Add the map name (without .bsp) to tf/cfg/mapcycle.txt.

Enabling Fast Download (sv_downloadurl)

Without a fast download URL, players must download maps directly from your game server at low speed, causing long loading times. Setting up a web-accessible mirror lets clients download maps via HTTP instead.

If you have a web host, upload compressed map files (.bsp.bz2) to a public directory and set the following in server.cfg:

sv_downloadurl   "https://yourwebsite.com/tf2fastdl/"
sv_allowupload   0
sv_allowdownload 1
Important: The directory structure on your web host must mirror the server's file structure. A map at tf/maps/custom_map.bsp must be available at https://yourwebsite.com/tf2fastdl/maps/custom_map.bsp.bz2. Compress maps with bzip2 before uploading.

How to Connect

To find your server's IP address and port, see the How to Find Your Server IP and Port guide.

Method 1: In-Game Server Browser

  1. Launch Team Fortress 2.
  2. From the main menu, open Find a Game then select Community Servers.
  3. Click Add a Server and enter your server IP and port in the format IP:PORT.
  4. Click Add This Address to Favorites, then double-click the server to connect.

Method 2: Developer Console

  1. Enable the developer console in TF2 settings under Advanced if not already active.
  2. Press ~ (tilde) to open the console.
  3. Type the following command and press Enter:
connect YOUR_SERVER_IP:PORT

If your server has a password set, use:

connect YOUR_SERVER_IP:PORT; password yourpassword

Method 3: Steam Connect URL

You can share a direct join link with players using the steam://connect/ protocol:

steam://connect/YOUR_SERVER_IP:PORT

Related Articles


Need help? If you run into issues, check the Troubleshooting Guide first. If you are still stuck, please open a support ticket.

Чи була ця стаття корисною?

Ready to Get Started?

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