The "connectban" Module
Description
This module Z-lines IP addresses which make excessive connections to the server.
Configuration
To load this module use the following <module>
tag:
<module name="connectban">
<connectban>
The <connectban>
tag defines settings about how the connectban module should behave. This tag can only be defined once.
Name | Type | Default Value | Description |
---|---|---|---|
banduration | Duration | 10m | The duration that an IP address should be banned for. |
banmessage | Text | 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. | The message to give to clients that are connect banned. |
ipv4cidr | Number | 32 | The IPv4 CIDR range to treat as equivalent when looking for excessive connections. |
ipv6cidr | Number | 128 | The IPv6 CIDR range to treat as equivalent when looking for excessive connections. |
threshold | Number | 10 | The number of times that an IP address can connect within an hour. |
Example Usage
<connectban banduration="10m"
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."
ipv4cidr="32"
ipv6cidr="128"
threshold="10">