Raid-Gaming / CoD4-Unleashed-Server

A custom CoD4 Dedicated Server mainly to improve the functionality and usability of the stock CoD4 Server.
https://raid-gaming.net/forum/18-call-of-duty-4-unleashed/
GNU Affero General Public License v3.0
9 stars 9 forks source link

Rcon Protect #7

Open MichaelHillcox opened 8 years ago

MichaelHillcox commented 8 years ago

If some one gets the rcon password wrong multiple times, it blocks their ip temporary

atrX commented 8 years ago

This is easily do-able, right now the server will block RCON login attempts for 20 seconds after each failed attempt: https://github.com/atrX/CoD4x-Server/blob/master/src/hl2rcon.c#L225 I can easily modify this to an extended period if a bad password was passed multiple times.

Any suggestions on how long we should make this temporary block?

atrX commented 8 years ago

Actually, probably best to let server owners decide. I'll put it into a dvar. Still, suggestions for a default value?

MichaelHillcox commented 8 years ago

by default on? also 20 seconds is good :)