Actions100
- Billing Actions
- DNS Actions
- Domain Actions
- Domain Forwarding Actions
- Domain WHOIS Actions
- Reach Actions
- VPS Actions
- VPS Actions Actions
- VPS Backups Actions
- VPS Data Centers Actions
- VPS Docker Manager Actions
- VPS Firewall Actions
- VPS Malware Scanner Actions
- VPS Post Install Scripts Actions
- VPS PTR Actions
- VPS Public Keys Actions
- VPS Snapshots Actions
- VPS Templates Actions
VPS Firewall → Firewall Rule Create
AI-generatedOverview
This node operation allows users to create a new firewall rule within a specified VPS firewall using the Hostinger API. It is useful for managing firewall security by adding rules that control network traffic to and from virtual private servers (VPS). For example, a user can create rules to allow or block specific IP addresses, ports, or protocols to enhance the security of their VPS environment.
Use Case Examples
- Creating a firewall rule to allow HTTP traffic on port 80 to a VPS.
- Adding a rule to block traffic from a specific IP address to protect the VPS from unwanted access.
Properties
| Name | Meaning |
|---|---|
| Firewall ID | The unique identifier of the firewall where the new rule will be created. |
| Request Body | The raw JSON body containing the details of the firewall rule to be created, such as source IP, destination port, protocol, and action (allow or deny). |
Output
JSON
response- The JSON response from the Hostinger API containing details of the created firewall rule.
Dependencies
- Hostinger API key credential for authentication
Troubleshooting
- Ensure the Firewall ID is correct and the firewall exists.
- Validate the JSON structure in the Request Body to match the API requirements for firewall rules.
- Check API authentication credentials if requests fail due to authorization errors.
- Handle API rate limits or network issues that might cause request failures.
Links
- Hostinger API Documentation - Create Firewall Rule - Official documentation for creating firewall rules using the Hostinger VPS Firewall API.