Update VPS Firewall Options
update_vserver_firewall_optionsTurn the VPS firewall on or off and set the default in/out policies. A DROP policy without allow rules locks out SSH. Requires confirm=true. Requires an active ZapX Pass (see server instructions).
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": {
"serviceId": "<serviceId>",
"enable": "<enable>",
"policyIn": "<policyIn>",
"policyOut": "<policyOut>"
},
"name": "update_vserver_firewall_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable | Yes | Firewall on (true) or off (false). | |
| confirm | No | ||
| policyIn | Yes | Default policy for incoming traffic no rule matches. | |
| policyOut | Yes | Default policy for outgoing traffic no rule matches. | |
| serviceId | Yes | ID of the VPS: the "id" field from list_account_services or list_vservers (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here. |