Banned addresses and flood protection

Automatic banning
When Ban addresses that keep attacking is on (the default for new installations), an address is automatically banned when it triggers 20 blocked requests within 5 minutes:
- First ban: 30 minutes
- Each subsequent ban: twice as long, up to 24 hours
A banned address gets 403 without inspection. Its new connections are closed.
Never automatically banned: the gateway's own address, trusted proxies, the networks of your Allow rules (e.g. your office), and an address an administrator just signed in from (for a day).
The Banned addresses page
The Banned addresses page (menu, after Blocklists) lists every ban:
- The address
- Since when and how long is left
- The reason (which rule or detection type triggered it)
- How many times the address has been banned
Unban: lifts a ban immediately. The address can send traffic again.
Ban now: manually ban an address for a number of minutes you choose.
Both actions are in the audit log. Bans are kept across restarts (bans.db in the data folder).
Flood protection settings
Under Banned addresses → Flood protection settings:
| Setting | Default | Description |
|---|---|---|
| Max connections per address | 100 | Connections over this limit are closed immediately |
| Max new connections per second per address | 50 | New connections over this limit are closed |
| Total connections | 10,000 | Gateway-wide limit |
| Total WebSockets | 1,000 | Gateway-wide limit |
| Request header timeout | 30 seconds | Disconnects slowloris clients |
| Ban threshold | 20 blocked requests in 5 minutes | Triggers an automatic ban |
| Ban duration | 30 minutes (doubles each time, max 24 hours) |
Changes to connection limits apply immediately. Changes to slow-client settings take effect at the next restart (the page says so).
From the command line
wafctl bans list # list all bans
wafctl bans remove <address> # lift a ban (applied within seconds on a running gateway)
Example: an address is flooding your login page
The request log shows thousands of blocked POST /login from 203.0.113.100. Automatic banning will kick in after 20 blocks, but you want to act immediately:
- Open Banned addresses → Ban now.
- Enter
203.0.113.100, set 240 minutes. - The address is banned immediately.
Or, from the Performance page, click Block next to the address to add it to your IP block list permanently.