This is a full fledged guide on how to Setup a Dedicated Game Server for Left 4 Dead 2.
I have been excited to finally release this guide as Left 4 Dead 2's Server has felt like the hardest struggle to overcome all the nuances, missing documentation, dead links, old legacy functionality that no longer works, and much more.
Setup Guide updated as of January 27th 2026
Requirements:
I'm running this in a Virtual Machine (VM), but an old computer will work fine as well. However do note that if you make a VM and clone it or clone the physical storage to make a 2nd server. There are extra steps needed, otherwise they will not properly be unique and you will run into conflict issues. If you are using a VM, then make sure to install the hypervisor's guest tools on the VM as then it is aware and can optimize things properly.
I'm not going to go over how to install Linux, dealing with clones, nor my full personal setup in this guide. However, you can find more information over in my other post: LINK TO JAKE TEMPLATE SERVERS
note I like to use vim/neovim(nvim) if you see nvim in the guide, feel free to use nano instead or whatever other text editor you prefer.
Download and Install Debian. (You can use other Linux distros like Ubuntu, or whatever you are comfortable with)
create a 2nd user that will have restricted permissions and the game will run under that user for better security. Don't run the server as Root, don't run the server as your Admin user that has sudo privileges. In this example I named my user lefty, but you could name your steamuser for example.
sudo dpkg --add-architecture i386
sudo nvim /etc/apt/sources.list

sudo apt update
sudo apt install steamcmd
alternate method to download SteamCMD can be found on Valve's Wiki https://developer.valvesoftware.com/wiki/SteamCMD (manual section mentions curl and url link)
4a. optionally install rsync (file transfer tool) and ripgrep (search tool)
sudo apt install rsync rg
Note: SteamCMD is a bit different than other apps and may not be in your PATH. This usually will show you where it is at.
which steamcmd
manually run SteamCMD at least once as your restricted game user (my example user is named lefty)
sudo -u lefty /usr/games/steamcmd
you'll see output similar to:
[ 97%] Downloading update (35,741 of 36,113 KB)...
[ 98%] Downloading update (36,113 of 36,113 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
-- type 'quit' to exit --
Loading Steam API...OK
Steam>
(redacted some output since it is lengthy) type
quit and hit enter.
sudo -u lefty mkdir -p /home/lefty/.steam/sdk32/
sudo -u lefty ln --symbolic /home/lefty/.local/share/Steam/steamcmd/linux32/steamclient.so /home/lefty/.steam/sdk32/steamclient.so
Note: As of Jan 2026, there is still an issue causing the inability for SteamCMD to download the L4D2 Linux Server. As a workaround I downloaded the Left 4 Dead 2 Dedicated Server from Steam on my Gaming Desktop (CachyOS Linux).

rsync -r steamapps/common/pathToL4D2Server/ ServerExample:~/serverFolderHere/
note: ServerExample can be an IP, DNS , or SSH Configured Hostname such as what you put in .ssh/config
3a. I recommend keeping this as a separate copy. This way if you have issues with mods inadvertently writing over game files, or if something happens to corrupt files you can just copy over the existing files via rsync. Using this 2nd copy and rsync is a workaround and similar to doing validate via steam. It will keep your settings, mods, server configs, ect.
sudo rsync -r /home/lefty/L4D2_Dedicated_Server_Files/* /home/lefty/l4d2server/
This is basically the workaround to doing validate via steam. It will keep your settings, mods, server configs, ect.
~/l4d2server/left4dead2/cfg/server.cfg
create blank files for the ban lists.
touch ~/l4d2server/left4dead2/cfg/banned_ip.cfg
touch ~/l4d2server/left4dead2/cfg/banned_user.cfg
Source: https://developer.valvesoftware.com/wiki/CFG "The
folder <game>/cfg/ is usually
dedicated to configuration files"
Don't waste your time trying to use SteamGroup and Reservation settings they don't work as intended at all in my experience. They used to previously but due to security updates no longer work as expected. I'd highly recommend just installing MetaMod + SourceMod for the server and installing an AllowList/WhiteList plugin mod. I wasted so much time trying to get this to work.
Note: Due to the above reservations settings caused big headaches while troubleshooting due to an intermittent inabilty to join the server because other players would join it while I was trying to test it. So again trust me, install an AllowList/WhiteList sourcemod plugin for the server.
Also you don't need rcon, disable it, its insecure and can cause your server to potentially get hacked. You can use SM_RCON system in game once sourcemod is installed to just run whatever game commands you want.
nvim ~/l4d2server/left4dead2/cfg/server.cfg
hostname "Jake L4D2 Mostly 98% Vanilla Server"
//--> Rcon password - Sets the password for remote rcon admin
rcon_password "" //Leaving this blank on purpose so it disables rcon entirely
sv_rcon_maxfailures 3
sv_rcon_minfailures 1
sv_rcon_log
sv_rcon_minfailuretime 82800 //(23 hours)
sv_rcon_banpenalty 959040 //987 days ban
//--> Gametypes sets the gametypes you want your server to run
//----> Versus Only: sv_gametypes "versus"
//----> Survival Only: sv_gametypes "survival"
//----> Coop Only: sv_gametypes "coop"
//----> Both: sv_gametypes "versus,coop"
sv_gametypes "coop"
//Don't bother trying to use this, just leave off and use SM Advanced Whitelist Server AddOn/Mod
sv_steamgroup_exclusive 0
sv_forcepreload 1
//Allow connections without creating lobby (connect IP:PORT)
//--> "0" = Off (Default is "0")
//--> "1" = On
//When Enabled, cannot connect to Games currently in progress.
sv_allow_lobby_connect_only 1
sv_lan 0 //Lan required to be 0 if using sv_steamgroup
sv_pausable 0
sv_consistency 0
//--> All talk - Allow both teams to use audio chat to speak with each other
//--> "0" = Off
//--> "1" = On
sv_alltalk 1
//--> Region - This sets the lobby in which your server will be part of
//--> You will want to set this to the closest location to your server
//--> eastcoast - sv_region 0
//--> westcoast - sv_region 1
//--> south america - sv_region 2
//--> europe - sv_region 3
//--> asia - sv_region 4
//--> australia - sv_region 5
//--> middle east - sv_region 6
//--> africa - sv_region 7
//--> world - sv_region 255
sv_region 1
//--> Allow use of cheats
//--> "0" = Off //No cheats allowed if set to zero/off
//--> "1" = On
sv_cheats 0
//If set to 1, the server will kick clients with mismatching files. Otherwise, it will issue a warning to the client.
sv_pure_kick_clients 0
// Log Settings
log on
sv_logfile 1
sv_logbans 1
sv_logecho 1
sv_log_onefile 0
sv_logsdir logs //Folder in the game directory where server logs will be stored.
//Stableness and Networking stuff.
//(Requires Source Mod)
sm_cvar fps_max 0 // Forces Server to perform the best it can.
// Execute ban files
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
First check the permissions, owner, group of the files to be sure they are correct before attempting the first test. (e.g. if you transferred the files as your admin user, not as restricted user, they'll belong to the wrong owner user)
These 2 commands should fix common permission & owner issues
sudo chown -R lefty:lefty /home/lefty/
sudo find /home/lefty/ -type d -exec chmod 770 {} +
to login as lefty with bash shell run this:
sudo -u lefty /bin/bash
cd ~
Here is the command to run the game
/home/lefty/l4d2server/srcds_run -console -game left4dead2 +maxplayers 4 +ip 192.168.1.67 -port 27015 +exec server.cfg -norestart
If you need to close it type quit
I wouldn't recommend using Ctrl + C to cancel it as it leaves the terminal in a weird state, requiring to log out and log back in to fix it.
Do note that the server binary wants hypen - and
plus + for different parameters and doesn't
match documentation. Through old posts on steam community ,
reddit, and forums. Along with trial and error. I eventually
got the errors to go away.
IP needs to be + plus
+ip 192.168.1.69 Port needs to be -
hyphen
-port 27015 server.cfg file needs to be
inside cfg folder. The default server.cfg file in the main
directory is not read by the server.
~/l4d2server/left4dead2/cfg/server.cfg
I'm going to use and recommend UFW Uncomplicated Firewall
First you need to allow SSH so you can access the server. (Don't Expose SSH to the Internet, you can access locally, or use Tailscale/VPN to access while not home)
sudo ufw allow OpenSSH comment 'Allow SSH'
sudo ufw reload
sudo ufw enable
create the application profiles for easier management (optional)
sudo nvim /etc/ufw/applications.d/ufw-jake-l4d2
sudo nvim /etc/ufw/applications.d/ufw-jake-steampowered
Examples:
root@deb13temp:~# cat /etc/ufw/applications.d/ufw-jake-l4d2
[Left4Dead2]
title=Left4Dead2
description=Left 4 Dead 2 Dedicated Game Server
ports=27015:27020/udp
root@deb13temp:~# cat /etc/ufw/applications.d/ufw-jake-steampowered
[Steam_Game_Services]
title=Steam_Game_Services
description=Steam_Game_Services
ports=27015:27020/udp
sudo ufw allow Steam_Game_Services comment 'Steam_Game_Services'
sudo ufw allow in proto udp to 0.0.0.0/0 app Left4Dead2 comment 'L4D2_Game_Server(IPv4_Only)'
sudo ufw reload
sudo ufw status verbose
Note: The reason for IPv4 only rules is because Left 4 Dead 2 only supports IPv4 only. Surprisingly it doesn't even properly support DNS A Records. For example I can't connect via l4d2.mydomain.com:27015
Now that the firewall has been setup and ports are opened you should be able to connect in game. This is the command you have to run inside game's dev console.
mm_dedicated_force_servers Public_IP_Address:PublicPort:Private_LAN_IP_Address:PrivatePort
e.g.
mm_dedicated_force_servers 123.456.789.123:27015:192.168.1.67:27015
Lets lock down SSH even more.
nvim /etc/ssh/sshd_config.d/01-jake-server.conf
nvim /etc/ssh/sshd_config.d/02-game-server.conf
root@deb13temp:~# cat /etc/ssh/sshd_config.d/01-jake-server.conf
AllowUsers jake
PasswordAuthentication no
PermitRootLogin no
root@deb13temp:~# cat /etc/ssh/sshd_config.d/02-game-server.conf
AllowUsers friend1,friend2
DenyUsers lefty
Prevent anyone from directly logging in as our restricted game user.
usermod -s /usr/sbin/nologin lefty
Again I would recommend NOT opening SSH to the public internet. I also wouldn't recommend installing a VPN nor Tailscale directly on the game server. This is because it can cause issues with the game server.
Here are some potential solutions if you want or need to give access remotely.
.ssh/config example
Host myJumpHost
HostName 123.456.789.123
User jake
ProxyJump myJumpHost
IdentityFile ~/.ssh/yourPrivateKeyPathHere
Host l4d2
HostName 192.168.1.67
User jake
IdentityFile ~/.ssh/yourPrivateKeyPathHere
You can combine this with option 1 or 2 to get remote ssh access. It looks like this: Remote Computer ➡️ myJumpHost ➡️ l4d2 Server. I would recommend using SSH Keys over passwords. Also with the jumpHost machine option the private ssh key only has to exist on the remote machine. Don't put the private key on either the jumphost nor l4d2 server.
4th option, Install a VPN on another machine and give a route so it can get to the L4D2 Server. (Least Recommended, its complicated to setup, and you need to keep VPN server and software updated regularly)
Option 1: Is to use tmux, screen, or byobu(tmux) to just keep the session open and you just re-attach it to it to start, stop, run commands on it, ect. Which can be useful for troubleshooting mods, ect.
Option 2: However running this as a SystemD service allows you to just start, restart, stop it and it just runs in the background. You can even 'enable' it to run on startup so that as soon as your boot it auto starts the L4D2 Game Server Service. Useful if the power goes out long enough, can just boot back up and it will come online if enabled.
I'm going with Option 2, a SystemD service. In this service it is configured so that logs are changed from console output to journal instead.
journalctl -fu
l4d2.service
journalctl -u l4d2.service --since
"1 day ago" | grep Tank
L4D2 SystemD Service File Path Location:
/etc/systemd/system/l4d2.service
L4D2 SystemD Service File Contents:
[Unit]
Description=Left 4 Dead 2 Dedicated Game Server
Wants=network.target
After=syslog.target network-online.target
[Service]
Type=idle
Environment=LD_LIBRARY_PATH=/home/lefty/l4d2server
User=lefty
Group=lefty
WorkingDirectory=/home/lefty/l4d2server
RuntimeDirectory=lefty
StateDirectory=lefty
LogsDirectory=lefty
###Notes:
###IP needs to be + ###
###Port needs to be - ###
###server.cfg file needs to be inside cfg folder ###
###e.g. ~/l4d2server/left4dead2/cfg/server.cfg ###
ExecStart=/home/lefty/l4d2server/srcds_run -console -game left4dead2 +maxplayers 4 +ip 192.168.1.67 -port 27015 +exec server.cfg -norestart
# Hardening for lockdown: restrict the service process to only necessary access
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
SystemCallFilter=@system-service
ReadWritePaths=/home/lefty/l4d2server
#Logs are changed from console output to journal instead.
# - Tail logs to see them in real time: journalctl -fu l4d2.service
# - View older looks: journalctl -u l4d2.service --since "1 day ago" | grep Tank
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
After creating this or if you make any changes to the file above. Always run a daemon reload afterwards:
sudo systemctl daemon-reload
Now you can run the service.
Here are some examples:
sudo systemctl start l4d2.service
sudo systemctl status l4d2.service
sudo systemctl enable l4d2.service
sudo systemctl stop l4d2.service
sudo systemctl restart l4d2.service
SourceMod (SM) is a very popular plugin system for loading server-side mods called plugins. SourceMod depends on MetaMod being installed.
So lets install both of them. Go to the websites and grab the latest builds https://www.metamodsource.net/downloads.php?branch=stable https://www.sourcemod.net/downloads.php?branch=stable
copy them over to the server.
rsync mmsource-1.12.0-git1219-linux.tar.gz ServerExample:/home/lefty/
rsync sourcemod-1.12.0-git7221-linux.tar.gz ServerExample:/home/lefty/
unzip them to the proper server location
tar xvf sourcemod-1.12.0-git7221-linux.tar.gz --directory=/home/lefty/l4d2server/left4dead2/
tar xvf mmsource-1.12.0-git1219-linux.tar.gz --directory=/home/lefty/l4d2server/left4dead2/
note: can't use tilde ˜ for home , it
needs to be the full explicit path
https://wiki.alliedmods.net/Installing_SourceMod
During setup I'd recommend stopping the service and running the server manually so you can run commands in the console for troubleshooting and testing
sudo systemctl stop l4d2.service
sudo -u lefty /home/lefty/l4d2server/srcds_run -console -game left4dead2 +maxplayers 4 +ip 192.168.1.67 -port 27015 +exec server.cfg -norestart
As mentioned in the SM/MM Wiki you can test if SM & MM are installed and working via typing these commands into the server console:
meta list
sm
then type quit and press enter once you are sure it is working
quit
Time to setup admins for the game. There are a few different options, however I decided to use groups. https://wiki.alliedmods.net/Adding_Admins_(SourceMod) For my configuration there are 2 files to setup:
File Path
/home/lefty/l4d2server/left4dead2/addons/sourcemod/configs/admins.cfg
File Contents:
Admins
{
"Jake"
{
"auth" "steam"
"identity" "STEAM_0:0:12345689"
"immunity" "99"
"group" "Admin_Group"
}
"OneOfMyFriends"
{
"auth" "steam"
"identity" "STEAM_0:1:123456789"
"immunity" "98"
"group" "Admin_Group"
}
"MyOtherFriend"
{
"auth" "steam"
"identity" "STEAM_0:0:123456789"
"immunity" "98"
"group" "Admin_Group"
}
"AnotherFriendOfMine"
{
"auth" "steam"
"identity" "STEAM_1:1:123456789"
"immunity" "98"
"group" "Admin_Group"
}
}
(I replaced part their steamID with 123456789 for this guide.) Admin_Group is the name I gave it, but the permissions for that group are in the admin_group.cfg file
File Path:
nvim /home/lefty/l4d2server/left4dead2/addons/sourcemod/configs/admin_groups.cfg
File Contents:
Groups
{
/**
* https://wiki.alliedmods.net/Adding_Admins_(SourceMod)
* Allowed properties for a group:
*
* "flags" - Flag string.
* "immunity" - Immunity level number, or a group name.
* If the group name is a number, prepend it with an
* '@' symbol similar to admins_simple.ini. Users
* will only inherit the level number if it's higher
* than their current value.
*/
"Default"
{
"immunity" "1"
}
"Full Admins"
{
/**
* You can override commands and command groups here.
* Specify a command name or group and either "allow" or "deny"
* Examples:
* ":CSDM" "allow"
* "csdm_enable" "deny"
*/
Overrides
{
}
"flags" "abcdefghiz"
/* Largish number for lots of in-between values. */
"immunity" "99"
}
"Admin_Group"
{
Overrides
{
"sm_give" "allow"
"sm_voteslay" "allow"
"sm_slay" "deny"
"sm_slap" "deny"
"sm_votegravity""deny"
"sm_timebomb" "deny"
"sm_firebomb" "deny"
"sm_freeze" "deny"
"sm_freezebomb" "deny"
"sm_gravity" "deny"
"sm_blind" "deny"
"sm_noclip" "deny"
"sm_drug" "deny"
}
"flags" "abcdeghijklm"
/*"immunity" "90"*/
}
}
One thing to note in the above is you can deny and allow similar commands separately, but can't specify parameters. For example I "allow a vote to slay ", but "deny slay". This thankfully does work. It allows a vote to be held, if the vote succeeds it slays the thing voted for. However you now can't directly slay without holding a vote, which is what I prefer.
For parameters, afaik those cannot be specified in the permissions config. For example: I can't specifically deny "sm_voteslay tank" to prevent admins from voting to slay the ai monster Tank game enemy. Therefore it's either allow vote for slay or don't allow at all. I don't want to restrict it too much, so the permission will stay. Admins can vote slay, including the Tank enemy.
Since the built-in server.cfg can't properly reserve the server for the group. I use this plugin instead. https://forums.alliedmods.net/showthread.php?t=199794 Any Game - Server Whitelist Advanced (1.5.0)
Here are the configurations:
List of users on the on AllowList/WhiteList are saved here:
~/l4d2server/left4dead2/addons/sourcemod/configs/whitelist/whitelist.txt
File Contents:
; You can use ';' to have comments (not read by the plugin)
; Write directly to insert either a SteamID or an IP
; Don't put more than 250 char on a line
; ';auto' tags gives various information surrounding an added user
127.0.0.1 ; IP; and comments can continue after them
; STEAM_0:1:23456789 ; SteamID
; STEAM_9:8:76543210
; [U:1:2345678] ; SteamId
; 876543210 ; this would be a small SteamGroupId (< 2^31); every member/officer will be whitelisted
STEAM_1:0:12345678 ;Jake (Server Owner) (Admin)
STEAM_1:1:12345678 ;Friend1
STEAM_1:0:12345678 ;Friend2 (Admin)
STEAM_1:1:12345678 ;Friend3 (Admin)
STEAM_1:1:12345678 ;Person (Pal of Friend1)
STEAM_1:0:12345678 ;Person2 (Pal of Friend2)
STEAM_1:0:12345678 ;Player3 (Pal of Friend3)
Allowlist/Whitelist General Config Settings
~/l4d2server/left4dead2/cfg/sourcemod/serverwhitelistadvanced.cfg
File-Contents:
// This file was auto-generated by SourceMod (v1.12.0.7195)
// ConVars for plugin "serverwhitelistadvanced.smx"
// Enable server whitelist
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
whitelist "1"
// Allows people to join if they are not whitelisted under a certain condition. 0=Nop, 1=Someone is whitelisted, 2=An admin is present (_immunity needed), 3=Someone is present.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "3.000000"
whitelist_autovouch "1"
// Minimum time in seconds before a non-whitelisted first-time-in-map-user is kicked if no voucher (defined by _autovouch value) are present; to give time to voucher to join on mapchange. It is a minimum if Steam groups are used; if not it is a normal timeo
// -
// Default: "2.0"
// Minimum: "0.100000"
whitelist_autovouch_mintimeout "3.0"
// File name to use for the whitelist, in the sourcemod/configs/whitelist/ folder. Can't use '/' or '\'. With extension.
// -
// Default: "whitelist.txt"
whitelist_filename "whitelist.txt"
// Automatically grant admins access. Required (if?) _autovouch = 2.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
whitelist_immunity "1"
// Message to show to kicked clients.
// -
// Default: "You are not in the server's whitelist"
whitelist_kickmessage "You are not in Jake's Server Allowlist. If you are joining your friends on this server, please ask them to be added."
// Log failed-attempts to join server. 0=No, 1=Yes (always), 2=Yes (not after first time)
// -
// Default: "1.0"
whitelist_log "1.0"
// When removing someone from whitelist, update the .txt right away (expensive operation if big whitelist) ? 0= On map end. Def. 1=Yes.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
whitelist_removeinstant "1"
// Also read SteamGroupIds from whitelist file ? 0=No. 1=Yes (SteamTools). 2=Yes (SteamWorks). Can fallback.
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
whitelist_steamgroup "0"
// Maximum number of retry to do before saying someone is blacklisted. 'whitelist_steamgroup_timeout' seconds between each retry. ; Put '-1' for unlimited retry. Doing so should make people not be kicked in case Valve never respond (i.e. they have technical
// -
// Default: "-1"
// Minimum: "-1.000000"
whitelist_steamgroup_retry "5"
// Time (in seconds) before re-requesting SteamGroups status from Valve's server (sometimes Valve doesn't answer).
// -
// Default: "0.34"
// Minimum: "0.010000"
whitelist_steamgroup_timeout "0.34"
// Use whitelist_kickmessage through tidykick ? 0=No (Default; need TidyKick). 1=Yes.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
whitelist_tidykick "0"
To explain a bit how this works. Auto vouch = 1 means that if there is a player not on the allow list, it will only allow them to join if someone else on the allow list is already in-game.
Example 1: I'm in the game, and I make a friends only lobby, any of my friends can join. Even if I haven't added them to the server allow-list. However if I lose connection and I'm the only one there, it will kick them after a short period.
Example 2: I'm in the game with another friend on the allow list. I lose connection the game will continue on with player 3 & player 4. I can rejoin the match if the slot is still open.
Example 3: I'm in the game, I create a public lobby, 1 friend on the allow list joins. 2 more random people join. I lose connection, the game will continue, another random public player joins. I won't be able to join as 4/4 slots are full. It won't auto kick them.
Example 4: If someone tries to start a game on my server and nobody is on the list it will reject them. It keeps the server reserved for myself and my friends so we can play whenever we want to.
Note: SteamGroup and TidyKick require addition plugins and setup, that I have not looked that far into. They aren't necessary for my small setup.
I am aware some of this is repeating content, but doing this for thoroughness and as a summary.
Main Configs:
~/l4d2/left4dead2/cfg/banned_ip.cfg
~/l4d2/left4dead2/cfg/banned_user.cfg
~/l4d2/left4dead2/cfg/server.cfg
Server-side mod/plugin MM/SM (MetaMod/SourceMod) plugin framework:
/home/lefty/l4d2server/left4dead2/addons/sourcemod/configs/*
Admin Permissions and User Lists
/home/lefty/l4d2server/left4dead2/addons/sourcemod/configs/admins.cfg
/home/lefty/l4d2server/left4dead2/addons/sourcemod/configs/admin_groups.cfg
Server-side mods/plugins (SM/SourceMod Plugins):
~/l4d2server/left4dead2/addons/sourcemod/plugins/
For backing up server side mod/plugin (SM) configurations. They can sometimes vary but usually are here:
~/l4d2/left4dead2/cfg/sourcemod/*.cfg
It checks the SteamIDs listed in this file:
~/l4d2server/left4dead2/addons/sourcemod/configs/whitelist/whitelist.txt
General Config Settings in this file
~/l4d2server/left4dead2/cfg/sourcemod/serverwhitelistadvanced.cfg
Campaigns, vpk files, and any other various mods from the SteamWorkshop can be found in addons:
~/l4d2server/left4dead2/addons/DarkCarnivalRemix-1575673903.vpk
Optional (I don't personally use this):
~/l4d2server/left4dead2/addons/sourcemod/configs/adminmenu_maplist.ini
If you can't locate a file, one option to easily find it is to use ripgrep. e.g. I wanted to find the file that contained the line that enables the server whitelist plugin. I ran this:
rg 'Enable server whitelist'
It showed the path to the cfg file and showed it was on line 4 in that file.
l4d2server/left4dead2/cfg/sourcemod/serverwhitelistadvanced.cfg
4:// Enable server whitelist
These config files are where to:
removeWeapons_L4D2.vpk or similar
steamworkshop mods are used for that.
/home/lefty/l4d2server/addons/sourcemod/data/l4d_info_editor_mission.cfg
/home/lefty/l4d2server/addons/sourcemod/data/l4d_info_editor_weapons.cfg
Barricade plugin mod config location:
/home/lefty/l4d2server/addons/sourcemod/data/barricade.cfg
For my use case I wanted my Friends/Server Admins to be able to easily manage mods, configs, ect. To accomplish this I granted group permission to the lefty user's home folder. I created a script to easily do this without needing to check notes:
sudo nvim /usr/local/sbin/jake-fix-permissions-gamegroup.sh
sudo chmod +x /usr/local/sbin/jake-fix-permissions-gamegroup.sh
Script Contents
#!/bin/bash
chown -R lefty:gamegroup /home/lefty/
find /home/lefty/ -type d -exec chmod 770 {} +
Command line options - Valve Developer Wiki
List of Left 4 Dead 2 console commands and variables - Valve Developer Wiki
L4D2 Facts YouTube Playlist by Andre Ng Scavenge Finale - Valve Developer Community Wiki https://image.online-convert.com/convert-to-tga | Convert image for Spray Compatibility https://github.com/theletterjwithadot/Ultimate-Config-for-L4D2 | AutoExec Configurations Steam Community :: Guide :: Melee weapon detailed analysis (v 1.5)
L4D1&2 "Left 4 DHooks Direct" (1.158) (21-Mar-2025) - AlliedModders
psychonic's SteamWorks Builds AlliedMods.net
L4D1 & L4D2 Assistance System - AlliedModders
L4D1 & L4D2 Mission and Weapons - Info Editor (1.26) 15-May-2024 - AlliedModders
L4D & L4D2 Gear Transfer (2.36) 15-Dec-2024 - AlliedModders
L4D & L4D2 Incapped Weapons Patch (1.39) 21-Mar-2025 - AlliedModders
L4D & L4D2 Barricades - Doors and Windows (1.21) 07-Dec-2022 - AlliedModders L4D2 Chainsaw Refill with Gascan fbef0102 GitHub
sm_give first_aid_kit
SM Server Admins can run these commands to toggle friendly
fire, without enabling cheats. sm_cvar
survivor_friendly_fire_factor_hard 0.0
sm_cvar survivor_friendly_fire_factor_expert 0.0
m_resetcvar will reset anything back to normal
Steam Workshop::No Camera Shake When Bots Shoot You VScript Stop Special Infected ai from attacking while Staggered Fix - Steam Workshop Steam Workshop::VSCRIPTNo Close Friendly Fire
Custom removeWeapons_L4D2.vpk
removeWeapons_L4D2/scripts/vscripts/director_base_addon.nut
function OnGameEvent_round_start_post_nav( params )
{
local ItemstoRemove_ModelPaths =
[
"models/w_models/weapons/w_sniper_scout.mdl",
"models/w_models/weapons/w_sniper_awp.mdl",
]
foreach( modelpath in ItemstoRemove_ModelPaths )
{
local weapon_ent = null
while( weapon_ent = Entities.FindByModel(weapon_ent, modelpath) )
weapon_ent.Kill()
/* Function above is same as doing this:
while( weapon_ent = Entities.FindByModel(weapon_ent, modelpath) )
{
weapon_ent.Kill()
}
*/
}
}
"AddonInfo"
{
addonversion "4.1" //Max 31 characters. Allows decimals.
addontitle "Remove CS Snipers" //Max 127 characters.
addonauthor "Grayman Mike and Edit by Jake" //Max 119 characters.
addonDescription "Removes Bolt Action Counter Strike (CS) Snipers" //Max 1023 characters.
}
I'm not gonna add this to the steam workshop nor upload it, but giving credit that Grayman Mike was the original creator of the mod that I edited.
