Server security step by step

Server security step by step

Server security is in the Server security menu of the panel (not to be confused with Security, which holds two-step verification). It is available on paid plans.

Turn on the analysis

  1. Add the server in Resources (add a server). The SSH user must be able to read the logs; root is normally used.
  2. Open Server security, find the server and turn it on.
  3. The first pass only marks the end of each log and analyzes nothing. Analysis starts on the next pass, with the new lines.

If the analysis is turned on again or restarted, the marks are reset and the next pass is a first pass again.

What is analyzed

The new lines of SSH, FTP, mail, cPanel/WHM, database, Docker and web server logs. The original lines are not stored. Only counts per IP and rule and the busiest IPs are kept: 7 days in detail, 31 days per hour and 366 days per day; findings are kept 90 days after they last showed.

Reading the findings

Each finding shows the rule, the IP, how many events there were in the time window and what to do; for example block the IP in the firewall, allow only SSH keys, close a database port or remove a .env file from a public folder.

  • Attacks per IP: an IP went over the limit of a rule in the window.
  • Distributed attack: many different IPs, each under the limit, add up to an abnormal volume.
  • Server state: CSF with parameters weaker than the profile, lfd stopped, CSF in test mode, no firewall or database ports open to the world. These alerts resolve as soon as the server changes.
  • Exposure: a .env file or a .git folder was served publicly.

Local IPs and the server's trusted IPs are dropped. An IP is considered resolved after three passes without activity.

Per-server settings

Limits follow a CSF-style profile with sensible defaults. Each server can have its own values on its settings page (for example the failed-attempt limit per service).

Muting alerts

An alert can be muted on its own, or per rule for every IP. A muted finding still shows on the page but sends no messages.

Alerts

E-mail, WhatsApp and integrations, with the same recipients as the server. See notification channels.

Monthly quota and packs

The month's quota is the plan's number of runners times its GB per runner (see the table on server security). A runner is an analysis in progress: the number of runners limits how many servers are analyzed at once. The GB count what was really analyzed; CVE analysis deducts from the same quota.

If the quota runs out, analyses stop and the page warns and offers a pack. Packs of 100 GB are used after the monthly quota, never expire and are only available on paid plans; they are requested with the panel form.

Statuses and common problems

  • Skipped because of load: a pass is skipped if the server is heavily loaded; it is retried on the next one.
  • Quota exhausted: see the previous point.
  • Coverage below 100%: there are more new logs than one pass can read; later passes catch up.
  • No read permission: with a non-root user, system logs may not be readable; use a user with permissions.