Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS Firewall → Firewall Rule Create

AI-generated

Overview

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

  1. Creating a firewall rule to allow HTTP traffic on port 80 to a VPS.
  2. 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

Discussion