Create Firewall Rule
vps_firewall_create_ruleCreate inbound or outbound firewall rules for your VPS by specifying protocol, port, source IP, and action to accept or drop traffic.
Instructions
Add a rule to a firewall.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"firewall_id": "<firewall_id>",
"protocol": "<protocol>",
"port": "<port>",
"source": "<source>"
},
"name": "vps_firewall_create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port or range (e.g. '80', '8000:9000') | |
| action | No | accept or drop | |
| source | Yes | Source IP/CIDR (e.g. '0.0.0.0/0') | |
| protocol | Yes | Protocol: tcp, udp, icmp | |
| direction | No | inbound or outbound | |
| firewall_id | Yes | Firewall ID |