hostinger-api-mcp

Official

VPS_createFirewallRuleV1

Create a new firewall rule for a specified firewall to allow or block traffic based on protocol, port, and source. Ensure virtual machines sync manually after activation.

Instructions

This endpoint creates new firewall rule from a specified firewall. By default, the firewall drops all incoming traffic, which means you must add accept rules for all ports you want to use.

Any virtual machine that has this firewall activated will loose sync with the firewall and will have to be synced again manually.

Input Schema

NameRequiredDescriptionDefault
firewallIdYesFirewall ID
portYesPort or port range, ex: 1024:2048
protocolYesprotocol property
sourceYessource property
source_detailYesIP range, CIDR, single IP or `any`

Input Schema (JSON Schema)

{ "properties": { "firewallId": { "description": "Firewall ID", "type": "integer" }, "port": { "description": "Port or port range, ex: 1024:2048", "type": "string" }, "protocol": { "description": "protocol property", "enum": [ "TCP", "UDP", "ICMP", "GRE", "any", "ESP", "AH", "ICMPv6", "SSH", "HTTP", "HTTPS", "MySQL", "PostgreSQL" ], "type": "string" }, "source": { "description": "source property", "enum": [ "any", "custom" ], "type": "string" }, "source_detail": { "description": "IP range, CIDR, single IP or `any`", "type": "string" } }, "required": [ "firewallId", "protocol", "port", "source", "source_detail" ], "type": "object" }

You must be authenticated.

Other Tools from hostinger-api-mcp

Related Tools

ID: wckq3bznm6