Description
This check ensures that every Hostinger VPS has a managed firewall activated. The Hostinger VPS firewall filters traffic at the network level, before it reaches the server, and is managed from hPanel instead of the operating system. Each VPS in the account is evaluated separately.
Rationale
A VPS without a managed firewall exposes every listening service (SSH, databases, admin panels, development servers) to the internet unless the operating system firewall has been configured correctly. A managed firewall gives a single, central policy that blocks unwanted inbound traffic and greatly reduces the attack surface of the server.
Impact
Once a firewall is activated, all incoming traffic that does not match an accept rule is dropped. Add accept rules for SSH, HTTP, HTTPS and any other required ports before activating, or you may lose access to the server
Rule changes take effect within about two minutes and apply only to new connections; existing connections are not interrupted
One firewall can be activated on several servers, so a change to its rules affects every VPS that uses it
The managed firewall does not replace the OS firewall for fine-grained control (for example ICMP message types) and is not designed to absorb large DDoS attacks
Default Value
A VPS has no managed firewall active until a firewall is created and activated on it.
Pre-Requisites
Access to hPanel for the account that owns the VPS
A list of the ports and source IP addresses the server needs (for example SSH from the office IP, HTTP and HTTPS from anywhere)
Remediation
Test Plan
Log in to hPanel at https://hpanel.hostinger.com.
Go to VPS and click Manage next to the server.
In the left sidebar, select Security → Firewall.
Check whether a firewall is active on this server. If no firewall is active, the check fails for this VPS.
Repeat for each VPS in the account.
Implementation Steps
Log in to hPanel at https://hpanel.hostinger.com.
Go to VPS and click Manage next to the server.
In the left sidebar, select Security → Firewall.
Click Add Firewall, enter a name (for example web-servers) and click Create.
Click the ⋯ button next to the new firewall and select Edit.
In the Add firewall rule section, add an accept rule for each service the server needs: choose the Action (accept), the Protocol or common application (for example SSH, HTTP, HTTPS, or TCP/UDP with a port or range such as 1024:2048), the Traffic source (Anywhere or Custom) and, for Custom, the Source details (IP, CIDR or range). Click Add rule after each one.
Restrict SSH to trusted IP addresses (Custom source) instead of Anywhere.
Click Apply changes.
Go back to Security → Firewall and activate the firewall on this server.
Repeat for each VPS without an active firewall.
Backout Plan
Log in to hPanel at https://hpanel.hostinger.com.
Go to VPS and click Manage next to the server.
In the left sidebar, select Security → Firewall.
Click the ⋯ button next to the firewall and select Edit.
Add an accept rule for the service that stopped working (for example the port of an application), then save the changes with Apply changes.
If you are locked out of the server because of a firewall rule, open Settings for the VPS and use Reset firewall.
Note: Add only the rules a service needs; do not add a rule that accepts all ports from Anywhere.
Reference