feat(Core/Packet): Implement AntiDOS protection from Trinity (#2789)

* Implement AntiDOS protection from Trinity


Co-authored-by: jackpoz <giacomopoz@gmail.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Vincent-Michael <trinity.michael_vincent@gmx.eu>
This commit is contained in:
Nefertumm
2020-03-23 15:46:00 -03:00
committed by GitHub
parent c5a7497f4d
commit 846f7862d8
13 changed files with 473 additions and 80 deletions

View File

@@ -3377,3 +3377,39 @@ ICC.Buff.Alliance = 73828
#
###################################################################################################
###################################################################################################
#
# Packet Spoof Protection Settings
#
# These settings determine which action to take when harmful packet spoofing is detected.
#
# PacketSpoof.Policy
# Description: Determines the course of action when packet spoofing is detected.
# Values: 0 - Log only
# 1 - Log + kick
# 2 - Log + kick + ban
PacketSpoof.Policy = 1
#
# PacketSpoof.BanMode
# Description: If PacketSpoof.Policy equals 2, this will determine the ban mode.
# Values: 0 - Ban Account
# 1 - Ban IP
# Note: Banning by character not supported for logical reasons.
#
PacketSpoof.BanMode = 0
#
# PacketSpoof.BanDuration
# Description: Duration of the ban in seconds. Only valid if PacketSpoof.Policy is set to 2.
# Set to 0 for permanent ban.
# Default: 86400 seconds (1 day)
#
PacketSpoof.BanDuration = 86400
#
###################################################################################################