Increase the default connectban ban duration from 10m to 6h.

10m is borderline useless for preventing bot floods.
This commit is contained in:
Sadie Powell 2022-04-05 18:15:56 +01:00
parent e5a724595f
commit f20fa911c4
2 changed files with 2 additions and 2 deletions

View File

@ -714,7 +714,7 @@
# #
#<connectban threshold="10" #<connectban threshold="10"
# banmessage="Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect." # banmessage="Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect."
# banduration="10m" # banduration="6h"
# ipv4cidr="32" # ipv4cidr="32"
# ipv6cidr="128" # ipv6cidr="128"
# bootwait="2m" # bootwait="2m"

View File

@ -109,7 +109,7 @@ class ModuleConnectBan CXX11_FINAL
threshold = tag->getUInt("threshold", 10, 1); threshold = tag->getUInt("threshold", 10, 1);
bootwait = tag->getDuration("bootwait", 60*2); bootwait = tag->getDuration("bootwait", 60*2);
splitwait = tag->getDuration("splitwait", 60*2); splitwait = tag->getDuration("splitwait", 60*2);
banduration = tag->getDuration("banduration", tag->getDuration("duration", 10*60), 1); banduration = tag->getDuration("banduration", tag->getDuration("duration", 6*60*60), 1);
banmessage = tag->getString("banmessage", "Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect."); banmessage = tag->getString("banmessage", "Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.");
if (status.initial) if (status.initial)