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.
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 |