Zombie Panic! Source

Zombie Panic! Source

View Stats:
Common Protection Plugins & Cvars All Servers Need.
In all your server configs you need to add this. This will help with the malformed packet attack that causes your server to try to rebuild the packets causing your cpu to lock up.

///// Server bullet-proofing // How2Stop Source Engine crashing // Cvars involving server queries and connection attempts //---------------------------- sv_max_queries_sec 3 //Max queries/sec to respond to from a single IP (default 3) sv_max_queries_sec_global 100 //Max queries/sec to respond to globally (default 3000) (why is this so high? no wonder we got DDOS'd for a month) sv_max_queries_sec_window 10 //Window over which queries/sec is calculated (default 30) sv_max_connects_sec 2 //Max Connection attempts to respond to per second // Default 2 //Mostly documented in-case a fake player bug ever pops up sv_max_connects_sec_global 32 // Max connections/sec global // Default 0 (presumably unlimited?)

Here are some plugin basic plugins you should have.

Sourcemod Plugins
Rcon Lock [forums.alliedmods.net] Flood Checker[forums.alliedmods.net]

Metamod Plugins
D-Fens[forums.alliedmods.net]
< >
Showing 1-3 of 3 comments
Aug 26, 2016 @ 4:33pm 
Thanks for sharing this information! Pinned!
I definitely agree with the use of an rcon locker, D-Fens, and flood checking plugins on any game server as both will fix some of the common security issues most server owners run into when hosting Source-based servers. If server owners are not running these types of plugins (or at least similar ones) some exploits can easily be used to cripple a server.

However, the server cvars for max queries and such listed above shouldn't be messed with too much as it can cause your server to delist from such things like the masterlist and gametracker. Amongst the cvars listed in the OP, only the following exist in ZPS (with defaults listed):

// Maximum queries per second to respond to from a single IP address. // Default = 3 sv_max_queries_sec 3 // Maximum queries per second to respond to from anywhere. // Default = 60 sv_max_queries_sec_global 60


sv_max_queries_sec_window, sv_max_connects_sec, sv_max_connects_sec_global do not exist in ZPS. They exist in later versions of TF2/Source, but not in ZPS. Here is a thread from Facepunch about the update that these 3 variables that came out with on November 10th, 2011:

https://facepunch.com/showthread.php?t=1139594

Keep in mind that editting these cvars (or any cvar for that matter) should be done carefully and it should be tailored to what you and your server need for the game you are running it for, or it could otherwise cause your server issues. While, in the past, these cvars were used as a way to stop certain types of attacks (search A2S_INFO or sv_max_queries_sec_global on this page here: SRCDS Hardening[wiki.alliedmods.net]), doing so came at a price. If set incorrectly (either too high or too low for the game in question), there could be "hiccups" in connecting to things like the masterlist and/or it could cause a lag/warp effect for players.

Generally, you should research/test the default values of cvars first and work from there if there are problems. If you are curious about the default values of a cvar, then there is also this Valve kb page for general Source server cvar defaults:

https://support.steampowered.com/kb_article.php?ref=4975-UOPG-1608

Alongside D-Fens (which is a good metamod plugin to have for keeping bad files out of a server), to further protect yourself from upload/download exploits in ZPS, you can set the server cvars for upload/download to 0. You should only do this if you:

1.) Don't allow users to post sprays on the server.
2.) Are using fast download for things like maps, textures, and other files that users would need to play on your server.

// Allow clients to upload customizations files (ie: sprays) // 0 = off. // 1 = on. sv_allowupload 0 // Allow clients to download files from the server (ie: maps, textures, etc.) // NOTE: This does not affect fast download if you have it set up, it keeps users from download files from the server. // Do not turn this off if you are letting users download files directly from your server! // 0 = off. // 1 = on. sv_allowdownload 0

Again, if you are not allowing sprays on your server and if you use fast download (not the server box itself) to download maps, the above cvars can be turned off which does help fix a good portion of upload/download exploits on the server.

Finally, I would also like to mention this plugin, command blocker:

Command Blocker[forums.alliedmods.net]

It is pretty useful and it blocks certain commands that people like to spam to crash/lock up servers. These commands are things the client can use on a server that are not listed as cheats. Once you install the plugin, you just put sm_blockcommand <insert command here> into your server.cfg file for every command you wish to block (if it is possible to block). Blocking the following commands with this plugin will help alleviate some issues:

sm_blockcommand ping sm_blockcommand groundlist sm_blockcommand mem_dump sm_blockcommand listmodels sm_blockcommand soundlist sm_blockcommand snd_restart


I hope the information presented here is helpful. However, I want to stress to server owners, including those of you are new to this, to look into/research this and other information about running servers on your own as well. While we can claim that we have done this for a long while and have good knowledge on the subject, there is no true "one size fits all" solution to running/host servers, just advise and suggestions from our own experiences doing this ourselves. Its all a learning experience, so make sure to test things for yourselves and see what works best for you and your server's needs.
Nice add. But for the server delisting I have been using those cvars for 4 yrs now and not be delisted. I can tell you from first hand experience that those cvars should be set to that.
< >
Showing 1-3 of 3 comments
Per page: 1530 50