Skip to content
Skip the docs menu

Safety

Security rules, users and login keys

Decide which traffic may reach a server, block addresses, check a port from outside, and manage who can log in to the machine with which key or password.

Last updated 5 min readView as Markdown

On this page

A server's Security tab holds Security rules, Users and login keys, Security updates (see Security alerts), Server protection on the Business plan (see Server protection) and Health check.

Every server Fuzops sets up starts safe: the firewall allows only web traffic and remote login, login protection blocks addresses that keep failing to sign in, and security updates install by themselves.

Security rules#

Security rules (technical name: firewall, UFW) decide which traffic may reach the server. Traffic reaches it only where a rule allows it. Each rule reads in plain words, for example Web traffic (HTTP), with its port, what happens (Allow or Block) and from whom.

Security rules of a server: web traffic, secure web traffic and remote login allowedSecurity rules of a server: web traffic, secure web traffic and remote login allowed
Security rules. The web traffic rules are always kept.

The rules for web traffic (HTTP and HTTPS) are always kept: your sites and their certificates need them.

Add a rule#

Choose Add a rule and pick what you want:

  • Allow remote login from one address only…: the safest setting for remote login when you always work from the same place.
  • Allow a database from another server…: let a website server reach a database on this server (MySQL or MariaDB, PostgreSQL).
  • Block an address…
  • Custom rule…: Allow this traffic or Block this traffic, a Port (one, such as 8080, or a range such as 6000:6010), the protocol (TCP (most programs), UDP or Both) and From (an IP address or a range; empty means anyone).

A rule limited to one address asks you to confirm that you checked the address, so you do not lock yourself out.

Addresses blocked automatically#

Login protection (technical name: fail2ban) blocks for a while any address that keeps failing to sign in. The list shows blocked addresses; unblock one if it is yours or a colleague's. On Services, Protect the web server extends this to repeated attacks on your sites.

Someone keeps guessing your passwords? On the Business plan, Server protection also bans addresses that keep guessing WordPress sign-ins or password-protected pages, keeps repeat offenders out for much longer, and slows remote login guessing to a few tries a minute.

Check a port from outside#

Check a port from outside tries to reach one port of this server from the internet, the way a visitor would, for example 443 for HTTPS or 22 for remote login. It only checks the server's own public address.

Fuzops does not need any incoming opening: the server connects out to it. Never open anything "for Fuzops".

Outgoing connections#

Your server has to be able to connect out to Fuzops, or it loses contact. Servers Fuzops sets up allow outgoing connections, and the rules on this page are for incoming traffic only.

Some servers you bring in restrict outgoing connections. Before the firewall is turned on, Fuzops reads what its saved rules would do. If they would block what the server needs (its connection to Fuzops, name lookups and the clock), nothing changes and the page says: "This server blocks outgoing connections. Fuzops needs the server to be able to reach it, or it loses contact." Then choose:

  • Allow outgoing connections: the usual setting, recommended.
  • Open only what Fuzops needs: outgoing connections stay restricted, and only Fuzops's own connection, its live connection, name lookups and the clock are opened, to any address. A firewall cannot allow "only Fuzops" by name, because the addresses Fuzops answers from can change.

The Health report also warns when the firewall blocks this now, or would after the next restart, with Allow outgoing connections as its one-click fix. It also warns when an active firewall does not let remote login in.

A change that cuts Fuzops off is undone by itself#

After every change to the firewall (turning it on, a rule added or removed, server protection applied, a fix from the health report) the server checks that it still reaches Fuzops. If it does not, the change is put back at once and the task says so: "the change was undone because this server could not reach Fuzops afterwards". If the change stopped halfway, or the server could not even report back, the server puts the earlier rules back by itself within five minutes, and contact comes back. At the next health check (within half an hour), Security rules shows that the last change was undone, and why.

Users and login keys#

Users and login keys (technical name: system users, SSH keys) decides who can log in to the server directly, for example a developer, and holds the separate accounts your sites can run under. Many people never need this page.

Users and login keys: the server's own key, login keys added here, and password loginUsers and login keys: the server's own key, login keys added here, and password login
Users and login keys. The server's key is blurred in this picture.

Add a login key#

  1. Choose Add login key.
  2. Give it a Name (the person or computer).
  3. Paste one public key, starting with ssh-ed25519 or ssh-rsa.
  4. Choose Log in as: an account on the server, or root. Anyone holding the matching private key can then log in as that account.

Keys already on the server are listed under Other keys on the server. They were not added in Fuzops, and Fuzops never removes them by itself.

Save your keys once: My login keys#

Under Your account › My login keys, save the public half of your own keys. You can then add them to any server in one click, and turn on Add my keys to every new server of a team so each new server gets them as soon as it is set up.

Logging in with a password#

Logging in with a password shows whether accounts can sign in with a password. Anyone who guesses a password can get in, so Turn password login off is safer once your login keys work.

Accounts on the server#

A separate account keeps one site's files apart from the others. Create account asks for an Account name, How it signs in (With a login key only (safest) or With a password) and whether it May act as administrator (sudo). To run a site as its own account, choose Run this site as when you add the site.

The server's own key#

This server's own key is the key the server uses to fetch your code from a code host. Add it at your code host (as a deploy key or SSH key) when a site's code is private and has no access key of its own.

Health check#

Health check compares the server with what Fuzops set up and tells you when something is wrong or was changed outside Fuzops, with a fix next to each problem. Checking only looks; it changes nothing. After the first Check now, checks run by themselves every few hours.

Still stuck? Get help

Docs menu