VPS_createFirewallRuleV1
Add new security rules to a firewall by specifying protocol, port, and source to manage incoming traffic.
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
| Name | Required | Description | Default |
|---|---|---|---|
| firewallId | Yes | Firewall ID | |
| protocol | Yes | protocol parameter | |
| port | Yes | Port or port range, ex: 1024:2048 | |
| source | Yes | source parameter | |
| source_detail | Yes | IP range, CIDR, single IP or `any` |