Skip to main content
Glama

hostinger-api-mcp

Official

VPS_createFirewallRuleV1

Add new security rules to firewalls by specifying firewall ID, protocol, port range, and source details. Ensures controlled access by allowing traffic on designated ports and IP ranges.

Instructions

Create new firewall rule for 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 lose sync with the firewall and will have to be synced again manually.

Use this endpoint to add new security rules to firewalls.

Input Schema

NameRequiredDescriptionDefault
firewallIdYesFirewall ID
portYesPort or port range, ex: 1024:2048
protocolYesprotocol parameter
sourceYessource parameter
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 parameter", "enum": [ "TCP", "UDP", "ICMP", "GRE", "any", "ESP", "AH", "ICMPv6", "SSH", "HTTP", "HTTPS", "MySQL", "PostgreSQL" ], "type": "string" }, "source": { "description": "source parameter", "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" }

Other Tools from hostinger-api-mcp

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hostinger/api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server