halflife icon indicating copy to clipboard operation
halflife copied to clipboard

RCON ban penalty server CVAR's do nothing

Open Adambean opened this issue 13 years ago • 10 comments

Hello there, the following CVAR's to automatically ban IP addresses for multiple bad RCON passwords don't appear to work at all:

sv_rcon_banpenalty, sv_rcon_maxfailures, sv_rcon_minfailures, sv_rcon_minfailuretime

Most of my HLDS instances get round the clock attempts, usually from Russian IP addresses, trying to update the sv_contact CVAR. Usually they try to write values "HLBrute v1.X" or "Code by ZeaL", but the passwords tried are usually just short rubbish ones. I have a strong enough password for it to not be guessed yet, though I'd appreciate the automatic banning feature to function.

My current values are: sv_rcon_banpenalty 60 sv_rcon_maxfailures 10 sv_rcon_minfailures 5 sv_rcon_minfailuretime 30

If possible, could a new CVAR be made "listipcfgfile" pointing to a "listip.cfg" file to read/write? CVAR "bannedcfgfile" for "baned.cfg" works nicely, would be great if we could point a IP bans list too.

Adambean avatar Feb 16 '13 03:02 Adambean

Confirmed. I tried several values and they're not working for me either.

di57inct avatar Feb 16 '13 06:02 di57inct

what version are you running? How are you testing?

alfred-valve avatar Feb 19 '13 01:02 alfred-valve

Can't confirm it on 5956 server build. Ban for rcon brute works.

vjatseslav avatar Feb 19 '13 06:02 vjatseslav

1.1.2.6 5758

sv_rcon_banpenalty 10 sv_rcon_maxfailures 5 sv_rcon_minfailures 3 sv_rcon_minfailuretime 57

PS: My HLDS won't update to a later version than this one -.-

di57inct avatar Feb 19 '13 07:02 di57inct

@di57inct, https://developer.valvesoftware.com/wiki/SteamCMD

vjatseslav avatar Feb 19 '13 07:02 vjatseslav

@vjatseslav can't understand how to use it/too lazy. Why use another tool? I'm used to hldsupdatetool.exe .

di57inct avatar Feb 19 '13 07:02 di57inct

https://developer.valvesoftware.com/wiki/HLDSUpdateTool mentions that SteamCMD is the new tool for steampipe games, half‐life and counter‐strike have moved on to this new format, and its likely that the rest will aswell. Time to read up on steamcmd!

johndrinkwater avatar Feb 19 '13 12:02 johndrinkwater

For other games, you will have to log in with a Steam Account Note:You must log out of the regular Steam client in order to properly log in to SteamCMD Update Tool.

Enter your password. Then check your e-mail for your Steam Guard access code and enter it

Pure bullshit. In this case why wouldn't I rather use Steam directly to download HLDS?

di57inct avatar Feb 19 '13 13:02 di57inct

Hmm, still seeing Brute force attacks on latest beta build (5971) OS: Linux

Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) Exe build: 15:58:58 Feb 28 2013 (5971)

Bad Rcon from 82.146.57.125:52439: rcon 33839662 "999999" stats L 03/08/2013 - 01:14:07: Bad Rcon: "rcon 33839662 "999999" stats" from "82.146.57.125:52439" Bad rcon_password.

MasteRs-git avatar Mar 07 '13 23:03 MasteRs-git

@MasteRs-git, set:

sv_rcon_banpenalty 60 sv_rcon_maxfailures 1 sv_rcon_minfailures 1 sv_rcon_minfailuretime 6000 // or even higher

vjatseslav avatar Mar 08 '13 13:03 vjatseslav