Zombie Panic! Source

Zombie Panic! Source

View Stats:
srcds management [+ security issue]
So I'm running my ZPS server using SteamCMD and a simple batch script.
The script just restarts the server in case it crashes and before actually booting it, it will update the server from steam.
I guess most people set up their server this way.

Now the problems I discovered along with this:
- On every server update the server.cfg gets overwritten
  • As of this patch, a default rcon password is set, you can literally just jump on servers and control them by rcon right now. Either set it to "" in the server.cfg or leave it out entirely (see later point for even better option)
  • The server name which comes from the server.cfg gets overwritten, thats why you see all the servers named "Zombie Panic! Source" everywhere right now.

- Allow srcds to use parameters from input arguments
  • In a perfect world no one would ever get a hold of your server.cfg. However, sometimes people do due to engine bugs or simply because the admin configured his fastdl wrong. That's why there shouldn't be any sensible information like passwords in the server.cfg. So make srcds support the +rcon_password command as in 2.4 please. Then we can set the rcon pass in our script instead of the server.cfg.
  • The renaming of servers can be fixed the same way: Make srcds use +hostname like in 2.4.
< >
Showing 1-5 of 5 comments
Dec 23, 2017 @ 3:54am 
Originally posted by Moonwalker:
Now the problems I discovered along with this:
- On every server update the server.cfg gets overwritten
* As of this patch, a default rcon password is set, you can literally just jump on servers and control them by rcon right now. Either set it to "" in the server.cfg or leave it out entirely (see later point for even better option)
* The server name which comes from the server.cfg gets overwritten, thats why you see all the servers named "Zombie Panic! Source" everywhere right now.

This is weird, I'm gonna see if the Steam backend treat the "server.cfg" as a "config file" rather than a "regular file".

Originally posted by Moonwalker:
- Allow srcds to use parameters from input arguments
* In a perfect world no one would ever get a hold of your server.cfg. However, sometimes people do due to engine bugs or simply because the admin configured his fastdl wrong. That's why there shouldn't be any sensible information like passwords in the server.cfg. So make srcds support the +rcon_password command as in 2.4 please. Then we can set the rcon pass in our script instead of the server.cfg.
* The renaming of servers can be fixed the same way: Make srcds use +hostname like in 2.4.

"+hostname" and "+rcon_password" should work. When working on the Linux SRCDS port of ZPS, I'm using "+developer 2" for debugging purposes and it works.
On a windows srcds here.
Just re-tested to confirm: Both commands +hostname and +rcon_password are ignored. The server will always use the values from the server.cfg.
Dec 23, 2017 @ 4:31am 
"server.cfg" is executed on every map change and override the command-line arguments. You need to remove them from the file.
Ok, the server isnt really ignoring +hostname and +rcon_password. Its just that the server.cfg gets executed right after it boots, so it sets the values from server.cfg again. So removing the stuff from server.cfg is indeed the way to go.
you have Console Command stuffcmds in valve.rc or autoexec.cfg ?
help "stuffcmds":
(c): Parses and stuffs command line + commands to command buffer.
< >
Showing 1-5 of 5 comments
Per page: 1530 50