csf_unblock_ip
Remove an IP from CSF/LFD firewall bans by clearing permanent deny and temporary blocks. Optionally whitelist the IP temporarily to prevent re-banning on next connection.
Instructions
Unblock an IP in CSF/LFD (permanent deny + temporary ban).
This is the primary 'unlock from firewall' action. It:
Runs the plugin Quick Unblock (
action=kill) — csf -dr + csf -tr + drop statesAlso sends
qrmwhen the plugin supports itOptionally adds a temporary allow so the next connection is not re-banned
Pair with bfm_unblock_ip if DirectAdmin Brute Force Monitor also listed the IP.
Args: ip: IPv4 or IPv6 to unblock. also_allow: After unblock, temporarily whitelist the IP. allow_ttl_seconds: TTL for the optional temporary allow (default 1h). comment: Note stored next to the allow rule. confirm: Required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| reason | No | ||
| comment | No | unblocked-via-directadmin-mcp | |
| confirm | No | ||
| also_allow | No | ||
| idempotency_key | No | ||
| allow_ttl_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |