Tool · CS2 & TF2

server.cfg Generator

Build a valid server.cfg for Counter-Strike 2 or Team Fortress 2 in under a minute. Includes RCON password generator, SourceTV/HLTV setup, and sane gameplay defaults tested on live servers.

// Configuration

Shown in the server browser. Keep it under 64 characters.
Keep this secret. Only expose RCON over a VPN or loopback.
Set a password for private matches. Empty = public.
CS2 supports 64 and 128 tick. TF2 is fixed at 66.

// Generated server.cfg

// Fill in the form to generate your config...

// Where to Put This File

Counter-Strike 2: Save as server.cfg in game/csgo/cfg/ inside your CS2 server install. Launch with +exec server.cfg or call it per-map from the map's maps/mapname.cfg.

Team Fortress 2: Save as server.cfg in tf/cfg/. It's loaded automatically when the server starts and after every map change.

Tip

The RCON password in this file is sent in plaintext on early connection. Always put your RCON port behind a firewall rule that only allows your own IP, or tunnel it through SSH/WireGuard. See our port reference for the exact ufw commands.

// Related Tools & Guides