xgaming.configs
configs/tf2c
tf2c
1 file

Team Fortress 2 Classic Server Config

Ready-to-use server config files for Team Fortress 2 Classic dedicated game servers — copy, paste and run.

Config files

server.cfg
// ****************************************************************************
// Team Fortress 2 Classified
// Config - server.cfg
// Date - 26/04/2026
// ****************************************************************************

// .................................. Basic ................................. //

// hostname - Name of the server.
hostname "SERVERNAME"

// rcon_password - Remote console password.
rcon_password "ADMINPASSWORD"

// sv_password - Server password for private servers.
sv_password ""

// ............................. Server Logging ............................. //

// log - Enable server log output.
// Recommended: log on
log on

// sv_logbans - Log server bans in the server logs.
sv_logbans 1

// sv_logecho - Display log information in server console.
sv_logecho 1

// sv_logfile - Write server log information to file.
sv_logfile 1

// sv_log_onefile - Use a single rolling log file.
sv_log_onefile 0

What these settings mean

Quick reference for the 8 most important keys in this Team Fortress 2 Classic config. Hover or tap any key to see what it controls — useful when you're tuning a server for the first time and don't want to grep through the upstream wiki.

Core
2 settings
hostname
Server name shown in the in-game browser. Keep it under 64 characters and avoid colour codes if you want clean Steam listings.
sv_password
Optional join password. Empty string means a public server.
RCON
1 setting
rcon_password
Remote console password. Use a long random string — Source RCON is unencrypted, so anyone sniffing your wire can grab it if it's weak.
Logging
5 settings
log
Master switch for server logging. `on` writes to logs/L<date>.log — required for SourceMod and stats.
sv_logbans
1 logs ban / kick events. Always on for any moderated server.
sv_logecho
1 mirrors log lines to the server console — handy when tailing via screen / tmux.
sv_logfile
1 writes log lines to disk in addition to stdout.
sv_log_onefile
1 writes all activity into a single log file instead of rotating per map.

More valve / source engine configs

Skip the setup. Host Team Fortress 2 Classic with XGamingServer.

Spin up a managed Team Fortress 2 Classic server with one click. Backups, mods, control panel and DDoS protection included.