API referenceSections

Automatic IP bans

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/tenants/{tid}/security/ip-bans

Automatic 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

NameInTypeRequiredDescription
tidpathstringrequired

Responses

200 Bans

Content type: application/json

  • policy IPBanPolicy required
    • sources map<string, IPBanSourcePolicy> required

      Keyed by source: panel, ftp, rdp, mail, mssql

      • enabled boolean required
      • max_failures integer required
        • minimum 2
        • maximum 1000
      • window_minutes integer required
        • minimum 1
        • maximum 1440
      • ban_minutes integer required
        • minimum 1
        • maximum 43200
    • max_ban_minutes integer required

      Cap for repeat offenders

      • minimum 1
      • maximum 43200
    • escalation IPBanEscalation optional

      Whole-address ban (every port but SSH and RDP) once an address is banned from services services within 24 hours. Off by default

      • enabled boolean required
      • services integer required
        • minimum 2
        • maximum 5
      • ban_minutes integer required
        • minimum 1
        • maximum 43200
  • active array<IPBan> required
    • ip string required
    • source string required

      The service banned from (panel, ftp, rdp, mail, mssql), or all for a whole-address ban

    • server_id string required
    • failures integer required
    • strikes integer required
    • banned_at string (date-time) required
    • expires_at string (date-time) required
    • lifted_at string (date-time) | null required
    • lifted_by string required
  • recent array<IPBan> required

    Fields of IPBan are shown above.

  • allow array<IPAllow> required
    • cidr string required
    • kind string required
      Allowed values: "manual" "admin"
    • note string required
    • created_at string (date-time) required
    • expires_at string (date-time) | null required
  • implicit array<string> required

    Never banned without an entry: loopback, the panel's own addresses, servers' public addresses

  • servers array<IPBanServer> required
    • id string required
    • name string required
    • firewall object required
      • state string required
        Allowed values: "none" "queued" "applied" "failed"
      • count integer required
      • job_id string optional
      • error_code string optional
      • applied_at string (date-time) | null required
      • firewall_off boolean required
      • truncated boolean required
      • skipped array<string> required

        Addresses the server left unbanned because an SSH or RDP session from them was open

    • readers map<string, string> required

      Per source: ok, access_denied, not_installed, off, error

    • rdp_read_at string (date-time) | null required
  • your_ip string required
  • your_bans array<IPBan> required

    Bans of your own address: in force, or lifted within 24 hours because you used the panel from it

    Fields of IPBan are shown above.

  • exempt array<IPBanExemption> required

    Latest bans not made

    • ip string required
    • source string required
    • reason string required

      session: 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_id string required
    • at string (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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required