Automatic IP bans
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/security/ip-bansAutomatic IP bans (ADR 0066): current and recent bans, never-ban list, policy, and each server's firewall and log readers; provider administrators on the root tenant only
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required |
Responses
200 Bans
Content type: application/json
Keyed by source: panel, ftp, rdp, mail, mssql
enabledboolean requiredmax_failuresinteger required- minimum 2
- maximum 1000
window_minutesinteger required- minimum 1
- maximum 1440
ban_minutesinteger required- minimum 1
- maximum 43200
max_ban_minutesinteger requiredCap for repeat offenders
- minimum 1
- maximum 43200
Whole-address ban (every port but SSH and RDP) once an address is banned from
servicesservices within 24 hours. Off by defaultenabledboolean requiredservicesinteger required- minimum 2
- maximum 5
ban_minutesinteger required- minimum 1
- maximum 43200
ipstring requiredsourcestring requiredThe service banned from (panel, ftp, rdp, mail, mssql), or all for a whole-address ban
server_idstring requiredfailuresinteger requiredstrikesinteger requiredbanned_atstring (date-time) requiredexpires_atstring (date-time) requiredlifted_atstring (date-time) | null requiredlifted_bystring required
Fields of IPBan are shown above.
cidrstring requiredkindstring requiredAllowed values:"manual""admin"notestring requiredcreated_atstring (date-time) requiredexpires_atstring (date-time) | null required
implicitarray<string> requiredNever banned without an entry: loopback, the panel's own addresses, servers' public addresses
idstring requirednamestring requiredfirewallobject requiredstatestring requiredAllowed values:"none""queued""applied""failed"countinteger requiredjob_idstring optionalerror_codestring optionalapplied_atstring (date-time) | null requiredfirewall_offboolean requiredtruncatedboolean requiredskippedarray<string> requiredAddresses the server left unbanned because an SSH or RDP session from them was open
readersmap<string, string> requiredPer source: ok, access_denied, not_installed, off, error
rdp_read_atstring (date-time) | null required
your_ipstring requiredBans of your own address: in force, or lifted within 24 hours because you used the panel from it
Fields of IPBan are shown above.
Latest bans not made
ipstring requiredsourcestring requiredreasonstring requiredsession: an authenticated SSH/RDP session from it (a signed-in Windows session, an SSH sign-in sshd accepted, or a Remote Desktop logon with a connection open; an open socket alone is not one); signed_in: it signed in to that service within 24 hours and its failures are below the heavy limit; connection: a few SSH/RDP connections from it on a server that could not check sign-ins (ADR 0123)
Allowed values:"session""signed_in""connection"server_idstring requiredatstring (date-time) required
Example
{
"policy": {
"sources": {
"key": {
"enabled": true,
"max_failures": 2,
"window_minutes": 1,
"ban_minutes": 1
}
},
"max_ban_minutes": 1,
"escalation": {
"enabled": true,
"services": 2,
"ban_minutes": 1
}
},
"active": [
{
"ip": "string",
"source": "string",
"server_id": "string",
"failures": 0,
"strikes": 0,
"banned_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z",
"lifted_at": "2026-01-01T00:00:00Z",
"lifted_by": "string"
}
],
"recent": [
{
"ip": "string",
"source": "string",
"server_id": "string",
"failures": 0,
"strikes": 0,
"banned_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z",
"lifted_at": "2026-01-01T00:00:00Z",
"lifted_by": "string"
}
],
"allow": [
{
"cidr": "string",
"kind": "manual",
"note": "string",
"created_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z"
}
],
"implicit": [
"string"
],
"servers": [
{
"id": "string",
"name": "string",
"firewall": {
"state": "none",
"count": 0,
"job_id": "string",
"error_code": "string",
"applied_at": "2026-01-01T00:00:00Z",
"firewall_off": true,
"truncated": true,
"skipped": [
"string"
]
},
"readers": {
"key": "string"
},
"rdp_read_at": "2026-01-01T00:00:00Z"
}
],
"your_ip": "string",
"your_bans": [
{
"ip": "string",
"source": "string",
"server_id": "string",
"failures": 0,
"strikes": 0,
"banned_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z",
"lifted_at": "2026-01-01T00:00:00Z",
"lifted_by": "string"
}
],
"exempt": [
{
"ip": "string",
"source": "string",
"reason": "session",
"server_id": "string",
"at": "2026-01-01T00:00:00Z"
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required