InfraNestInfraNest
Servers

Keep a server secure

Every server has a Security Advisor that turns "is this set up safely?" into a simple checklist, sorted by how important each issue is, with one-click fixes.

Updated November 8, 20269 min read

The Security Advisor is a built-in checklist for every server that flags safety issues, ranks them by importance, and gives you one-click fixes — useful for anyone responsible for keeping a server safe, no security background needed.

#Overview

  • Checks your firewall, backups, delete protection, monitoring, alerts, updates and reboots, and more.
  • Shows what is broken or exposed right now, and separately, what is just a good idea to turn on.
  • Works from your cloud provider's data alone, and sees even more once the InfraNest agent is installed.

#Run the Security Advisor

  1. Open a server. The Protection card on the right of its overview shows one line for each thing that protects it — firewall, backups, delete protection, monitoring, alerts, and updates and reboots — each starting with a one-word state (On, Off or Not checked; mail blocklists show Clean or Listed; updates show Up to date or Waiting), followed by detail such as "On · daily at 03:00" or "Not checked · needs the agent". A dot repeats the state: green when the check passed, red or orange when it needs you, grey only when it could not be checked. Where a line needs you, the detail text is itself a link to the fix.
  2. Anything that is open or broken right now — a port the whole internet can reach, no firewall, backups switched off, a reboot waiting to apply updates — also appears as its own card on the left, under What runs here. Each card explains what is wrong, what to do, and what was found, with a button that jumps straight to the fix.
  3. Click See all checks at the bottom of the Protection card to see every check: recommendations with their own fix buttons, checks that need the agent, and checks that already passed.
  4. If a check doesn't apply to a server, you can ignore it there. It then stops counting everywhere — on the server, the servers list and Home.
Keep a server secure (1)
Keep a server secure (2)
Keep a server secure (3)

#What it checks

  • Needs you — no firewall; SSH open to the world; a database port exposed publicly; remote desktop (RDP) open to the world; a port reachable without need; the server's address on a mail blocklist; backups switched off; a reboot waiting to apply installed updates.
  • Recommendations — no snapshot; delete protection off; monitoring not activated; no alert rule watching the server; no IPv6; the server has been up for over 90 days; no private network; unattached volumes in your account.

The servers list, the server's page and Home all use the same checks, so they always agree. An exposed port, missing firewall or open database also shows up on Home, where you can snooze it or mark it as intentional.

NoteA snooze or "intentional" only covers the exact exposure you marked — that firewall, that port, that service. If a different one opens later, it shows up as new rather than staying hidden.

#Backups

Backups switched off is judged from what your provider reports when InfraNest syncs: Hetzner and DigitalOcean report a backup window, OVHcloud its automated backup, and TransIP whether the backup add-on is active. If a provider doesn't answer during a sync, the check is left out rather than marked off.

#Some checks need the agent

Your cloud provider only sees a server from the outside — it can't tell whether updates are waiting for a reboot, or when the server last restarted. Without the agent, those checks show as Needs the agent instead of being guessed. Installing the agent fills them in within a minute, and also adds the server's restart history: how many unexpected restarts in the last 30 days, and when and why it last restarted.

#How the server itself is set up

With the agent installed on a Linux server, the System tab shows how the server itself is configured. The agent only reads settings any user can read — never as root, and it changes nothing — and InfraNest checks five things:

  • SSH accepts passwords — and whether SSH is reachable by the whole internet, and whether anything (such as fail2ban or CrowdSec) slows down repeated guesses. All three true is a warning; some true is a note. If you've let the agent read the system log, the check also reports how many failed login attempts occurred in the last 24 hours (just the count, never who or from where).
  • Root can log in over SSH — flagged when set to allow it outright; key-only login is fine.
  • A new administrator — someone added to the sudo, wheel or admin group since the agent's first reading. If it was you, click That was us to clear it (recorded in your audit log). If not, treat it as serious.
  • Nothing backs up this server — provider backups are off and no backup software or job is visible to the agent. Marked as likely, not certain — say so if you back up another way and it's set aside.
  • Security updates are not installed automatically — unattended-upgrades or dnf-automatic is off or missing. A warning when updates are waiting, otherwise a recommendation.

Each card explains how we know (the exact setting and file it was read from) and gives the fix as a command you run on the server, with a copy button and a link to your distribution's documentation. Before turning off SSH passwords, confirm you can log in with a key first.

Further down, Security and setup summarises how many checks passed, how many the agent can't read, and how many it never reads without root. Click Show the checks to see both Checked and fine and Not read without root, so unknown lists.

WarningThese checks need agent v0.21.0 or later and run on Linux only; on Windows the section reports that it isn't read.

#Check if the server's address is on a mail blocklist

If spam was ever sent from your server's address, mail servers may reject or spam-box its mail — a common reason contact-form or order emails "never arrive". InfraNest checks each server's public IPv4 address against two free blocklists, SpamCop and PSBL: a new server within a minute of being added, then daily on paid plans and weekly on the Free plan.

  1. Look at the Protection card's Mail blocklists line — it shows Clean with the last check time, or Listed with the list name.
  2. If listed, open the card to see which list names the address, with a link to that list's own page where you can look it up and request removal.
  3. If it's a new server, ask your provider for a different address — the previous user likely caused the listing.
  4. If it's a server you've had a while, find and stop whatever sent the spam first, then request removal — asking before it's fixed just gets it re-listed.
  5. Click Check again under the Mail blocklists line to ask the lists right away (limited to once a day per server).

You'll get one alert when the address is listed and one when it's removed; two matching automation triggers are available. The finding clears itself once the lists no longer name the address.

#See what the internet can really reach

A firewall rule only says a port may be reached. With the agent installed, InfraNest also sees which ports actually listen, and how many addresses connect — public, private network, or the server itself. Comparing the two reveals:

  • Open for nothing — a rule opens a port nothing listens behind. Remove the rule.
  • Only private addresses use it — everyone may reach it, but only your own network connects. Limit the rule to your private network or dynamic IP.
  • No firewall in front — something meant to be private listens on every address with no firewall. Change it to listen on localhost or a private address, or add a firewall.
  • Open to everyone — a database, remote desktop or SSH reachable and listening for anyone.
  1. Open the server's Overview to see these problems under Reachable from the internet, inside the firewall finding under Needs you.
  2. Click All ports on Networking to see the full list with who connects.
  3. Use the fix button on a problem port — named for what it does, such as Limit to Office or Remove the rule in web-default — to change the rule at your provider. This is recorded in the audit log.

#Check if a database is reachable from the internet

Databases and caches open to the whole internet are a common way small servers get taken over — Redis and Memcached often answer without a password. With the agent installed, InfraNest warns you when three things agree, shown under How we know:

  1. What listens — a database listens on a public or every address.
  2. Nothing stops anyone — a firewall rule lets everyone reach the port, or no firewall is attached.
  3. A public address — the server has an internet-reachable address.

The card also says how sure it is: Certain when InfraNest read the firewall and listener directly; Very likely when your provider has no readable firewall, since a firewall on the server itself might still close the port.

To fix it, make the database listen on localhost or your private network only, or limit the firewall rule. Click Close it in the firewall to open the firewall and change it.

#Review a port that started listening this week

When something starts listening on a new port — a debug server left running, a database newly listening on every address — InfraNest tells you.

  1. Look for New since last week: port {n} is listening on the server's Workloads tab, on its Overview (if everyone can reach it), or on Home. In the ports table on Networking, the port is marked New.
  2. Read the card: when it was first seen, what happened just before (a deploy, a service starting, a restart), and who can reach it (everyone, some addresses, private network only, or nobody from outside).
  3. Click Show details to see what each source saw — listening addresses, firewall rules, and events around that time.
  4. If you meant to open the port, answer Expected. InfraNest remembers this for that server and port and won't ask again; it's recorded in the audit log and can be undone on Home.

TipPorts Docker publishes can forward traffic without anything listening on the server itself. There, a port with nothing behind it shows as Cannot tell rather than "open for nothing", so check before removing anything.

#Set up monitoring and alerts

Monitoring and alerting are two separate checks, so the advisor only ever asks for the one you still need.

  1. If you see Monitoring not activated, use its fix to open the server's monitoring page and activate it (this also installs the agent).
  2. Once monitoring is on, if you see No alert rule is watching this server, use its fix to open Alert rules and create one. A rule that's switched off doesn't count — the advisor checks whether anything is actually watching.

TipIf you're just getting started, set your workspace's alert rule defaults once — every server, including ones you add later, inherits them automatically.

Related articles

Try this in your own account

Connect one provider and work through these steps against your own infrastructure.

Free plan · No credit card required · Set up in minutes