Skip to main content
Version: 4.1

Limit HiTechCloud

Both HiTechCloud and HiTechAdmin interfaces have a built-in rate limiting and IP address blocking to protect against brute-force attacks.

This feature is enabled by default on all installations, and can be additionally customized via HiTechAdmin > Settings > HiTechCloud or from the terminal.

You can configure the maximum number of failed login attempts allowed per IP (default is 5 per minute) and the total number of failed attempts (default is 20), after which the offending IP will be temporarily blocked by the firewall for one hour.

For HiTechCloud limits are configurable in: /etc/hitechcloud/hitechcloud/conf/hitechcloud.config file:

[USERS]
login_ratelimit=5
login_blocklimit=20

user ratelimit

For HiTechAdmin limits are configurable in: /etc/hitechcloud/hitechadmin/config/admin.ini file:

[PANEL]
login_ratelimit=5
login_blocklimit=20

admin ratelimit

If a user successfully logs in, the counter for login_blocklimit will reset.

An IPv6 client is counted by its /64 prefix rather than its single address, because every address in a /64 belongs to the same client and can be used in turn to dodge a per-address limit. Clients sharing one /64 share one count. IPv4 is counted per address, as before. The firewall block itself still names the exact address.

Failed login attempts and blocked IP addresses are logged in the /var/log/hitechcloud/admin/failed_login.log file for HiTechAdmin and in the /var/log/hitechcloud/user/failed_login.log file for HiTechCloud.