moloch-- / RootTheBox

A Game of Hackers (CTF Scoreboard & Game Manager)
http://root-the-box.com/
Apache License 2.0
932 stars 294 forks source link

Automatic Ban - not persistent #525

Closed PJNorrisS1 closed 2 years ago

PJNorrisS1 commented 2 years ago

Hi, we are getting a lot of brute force attempts on the sites. I have enabled Automatic Ban, but when I restart RTB, it does not remain. I see it's not stored in the cfg, but most likely a memory thing like Game status and registration.

Please could you have this as a configuration option so it can remain persistent? image

nametovski commented 2 years ago

You can edit handlers/init.py and update the default settings there. This will set the the Enable automatically for you on each start. Same for the Threshold and you can add additional blacklisted IPs.

image
eljeffeg commented 2 years ago

The save will now persist and the option is available in the config.

PJNorrisS1 commented 2 years ago

Marvellous! Thank you again!