VPS_createFirewallRuleV1
Create a firewall rule to allow specific incoming traffic by specifying protocol, port, and source. Use this to add security rules and manage access to your VPS.
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 |
|---|---|---|---|
| port | Yes | Port or port range, ex: 1024:2048 | |
| source | Yes | source parameter | |
| protocol | Yes | protocol parameter | |
| firewallId | Yes | Firewall ID | |
| source_detail | Yes | IP range, CIDR, single IP or `any` |