With the firewall in the vServer Control Panel you define which traffic may reach your vServer. You combine the rules in a firewall plan, which you assign to one or more vServers. The firewall works in front of your server, in addition to a firewall in the operating system.
| ⏱️ Time | approx. 15 minutes |
| 📊 Difficulty | Advanced |
| 🧰 You need | Address and login details of the vServer Control Panel (see welcome email) |
| 1 | Create a firewall plan |
webserver.| 2 | Add rules |
Fill in the fields for each rule and click Add at the end of the row. You must always fill in the IP field. If a rule applies to all addresses, enter 0.0.0.0/0. For a typical web server you need these rules:
| Direction | IP Type | Decision | Protocol | Port | IP | Purpose |
|---|---|---|---|---|---|---|
| IN | IPv4 | ACCEPT | TCP | 22 | 0.0.0.0/0 | SSH |
| IN | IPv4 | ACCEPT | TCP | 80,443 | 0.0.0.0/0 | Website |
| IN | IPv4 | ACCEPT | ICMP | 0.0.0.0/0 | Ping | |
| OUT | IPv4 | ACCEPT | TCP | ALL | 0.0.0.0/0 | outgoing, e.g. updates |
| OUT | IPv4 | ACCEPT | UDP | ALL | 0.0.0.0/0 | outgoing, e.g. DNS |
::/0.0.0.0.0/0. This keeps automated attacks away.| 3 | Assign the plan to the vServer |
Reconnect via SSH and open your website. A port you have not allowed is no longer reachable from outside.
After assigning the plan I can no longer reach the server.
Open the console via VNC or temporarily assign no plan under Change Firewall Plan. Then check whether the rule for port 22 is missing.
The server can no longer download updates.
The rules for outgoing traffic (OUT) are missing. Add them as shown in the table above.