add_firewall_rule
ActiveTool of BorealHost
Add an IP firewall rule (allow or deny) and reload Nginx. Supports IPv4, IPv6, and CIDR notation. Max 100 rules per site. If a rule already exists for the IP, the action is updated. Requires: API key with write scope. Args: slug: Site identifier ip: IP address or CIDR (e.g. "1.2.3.4", "10.0.0.0/8", "2001:db8::/32") action: "deny" (block) or "allow" (whitelist). Default: "deny" Returns: {"added": true, "ip": "1.2.3.4", "action": "deny"}
Parameters schema
{
"type": "object",
"title": "add_firewall_ruleArguments",
"required": [
"slug",
"ip"
],
"properties": {
"ip": {
"type": "string",
"title": "Ip"
},
"slug": {
"type": "string",
"title": "Slug"
},
"action": {
"type": "string",
"title": "Action",
"default": "deny"
}
}
}Parent server
BorealHost
https://github.com/alainsvrd/borealhost-mcp
1/7 registries