Description
This check ensures that no Hostinger VPS firewall rule accepts traffic on every port from any source. A rule fails when its protocol is any, TCP or UDP, its port is any (or the full range 1:65535), and its source is any, 0.0.0.0/0 or ::/0. Each firewall in the account is evaluated separately.
Rationale
A rule that accepts all ports from anywhere cancels the protection of the firewall. Every service running on the VPS, including databases, caches, admin panels and test services, becomes reachable from the internet. Only the ports the server actually needs should be open.
Impact
Services that relied on the open rule stop being reachable until a specific rule is added for them. List the ports that are really in use before removing the rule (for example with ss -tulpn on the server)
Rule changes apply to every VPS that uses the firewall
If you are locked out, open Settings for the VPS in hPanel and use Reset firewall
Default Value
A new firewall has no rules and drops all incoming traffic. All ports are open only if such a rule is added.
Pre-Requisites
Access to hPanel for the account that owns the VPS
A list of the ports the server needs and who needs them
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.
Click the ⋯ button next to the firewall and select Edit.
Review the rules. If an accept rule covers all ports (protocol any, or TCP/UDP with port any or 1:65535) and has the source Anywhere, the check fails.
Repeat for each firewall 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 the ⋯ button next to the firewall and select Edit.
Add specific accept rules for each required service (for example HTTP and HTTPS from Anywhere, and SSH from a Custom trusted IP). Click Add rule after each one.
In the rule list, remove the rule that accepts all ports from Anywhere.
Click Apply changes.
Confirm that the website and other required services still work.
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 back an accept rule for the service that stopped working, then click Apply changes.
Note: Do not restore a rule that opens all ports to the internet; add a specific rule for the affected service instead.
Reference