Skip to content
Skip the docs menu

Safety

Server protection

Check what a server exposes, then harden it, limit floods and ban addresses that keep guessing sign-ins. Every change can be undone.

Last updated 5 min readView as Markdown

On this page

Server protection (technical name: hardening, firewall and sign-in bans) is part of the Business plan. It is in the server's Security tab. On other plans you can still check a server and see what it exposes.

What it does#

  1. Check this server reads what the server exposes. It changes nothing and takes about a minute.
  2. You see a checklist, grouped as Network and firewall, Sign-in bursts, Web server limits, Databases and Updates. Each line says Protected, Can be improved or Needs you, in plain words, with its technical name beside it and the fix on the line.
  3. Turn protection on shows exactly what will be written (open Technical details: the exact files), then applies it.
  4. Every part is tested by the program it belongs to before it is used. Then every site on the server is asked for its home page, and Fuzops checks it can still reach the server. If a site stops answering, or anything fails, everything is put back as it was and the page says why.
Server protection of a server that was checked: the sentence naming what can be better protected, What protection covers, and the first checklist groupServer protection of a server that was checked: the sentence naming what can be better protected, What protection covers, and the first checklist group
Server protection after Check this server, before protection is turned on.

The parts#

Part Technical name What it does
Kernel network settings sysctl: SYN cookies, rp_filter, redirects, source routing Ignores forged routing messages and answers connection floods with SYN cookies. A full connection table is made larger.
Malformed and invalid packets nftables: invalid state, bad TCP flags, fragments Drops packets no real visitor sends. This is what is left of the old "ping of death" family: modern systems are no longer affected by it, so protection limits ping floods and drops malformed packets.
Connection floods SYN rate per address One address cannot open connections faster than a busy browser would.
Remote login bursts new SSH connections per address Password guessing tools are slowed to a few tries a minute.
Web connection floods new and open connections per address on the web One address cannot hold hundreds of connections to your sites.
Ping floods ICMP echo rate per address Pings are limited, never blocked: uptime monitors keep working.
Sign-in guessing fail2ban: sshd, WordPress wp-login.php and xmlrpc.php, password-protected pages An address that keeps failing to sign in is banned for a while.
Scanners fail2ban: repeated 4xx answers, probes for admin pages, hitting the limits Addresses that probe your sites are banned.
Repeat offenders fail2ban recidive An address banned again and again is kept out much longer.
Requests per visitor nginx limit_req, limit_conn A visitor can ask for pages only so fast. Pictures, styles and scripts do not count.

Your own firewall rules are not changed: protection uses a firewall table of its own that only stops traffic, and never lets in what your rules keep out. Your own login protection jails are not changed either.

Who is never limited#

  • The server itself, and every server of your team (load balancers and database servers included).
  • Addresses on a private network, unless you switch Never limit addresses on your private network off.
  • Visitors behind Cloudflare: the limit counts the real visitor Cloudflare names, never Cloudflare itself. Visitors sent by one of your load balancers are counted by their own address too.

Standard or Strict#

Standard (recommended) has generous limits: normal visitors, an office behind one address and monitoring never reach them. Per address it allows 60 new web connections a second, 30 pages a second (300 at once), 10 remote logins a minute, and bans for an hour after 6 failed remote logins or 10 failed WordPress sign-ins.

Strict halves the limits and bans for longer (6 hours, 4 weeks for repeat offenders). Use it for a server under attack or with few visitors.

Each part can be switched off on its own in Turn protection on or Change protection.

What it cannot do#

This absorbs floods your server can absorb. A flood larger than your server's connection needs protection in front of it, at your provider or a proxy such as Cloudflare. No setting on the server itself can stop traffic that fills the line before it arrives.

The figures#

With protection on, the page shows What protection stopped: addresses banned now, in 24 hours and in 7 days and why, sign-in attempts stopped, packets each part dropped, requests limited per site, the addresses banned most, and the latest activity. Every number comes from a counter on your server; they are read every hour and with Read the figures now. Mail figures only appear when a mail server is installed.

Use Unban beside an address that is yours or a colleague's.

Databases#

The checklist looks at each database installed: addresses it answers on compared with your firewall, accounts without a name or a password, the administrator account reachable from other machines, the sample "test" database, old encryption, and for PostgreSQL its access file and how it stores passwords. Redis and Memcached are checked too.

A fix that can be done in one click shows exactly which accounts or settings change before it runs, and says whether it can be undone. Fuzops never removes an account or a database you made: when something needs your decision, the line says what to do.

How the databases are doing shows slow queries, connections, tables without a primary key, tables on the old storage engine, tables with a lot of empty space, unused indexes and long-running queries. Refresh statistics is safe at any time. Rewrite fragmented tables makes changes to each table wait while it is rewritten, so run it at a quiet time; it never runs by itself. Memory and connection sizes stay on Recommended settings.

Remote login with a password#

Protection never turns password login off for you, so nobody can be locked out. The line links to Users and login keys, where Turn password login off first checks that an account that can become administrator signs in with a key.

Keep it applied#

Fuzops checks the server every day. Something new that leaves it open (a database that starts answering the internet, login protection stopped, protection removed by hand) becomes Needs you on the page, and you get an alert. With Keep it applied on (the default), a part you chose that was removed or changed outside Fuzops is put back. Turn it off if you edit these files yourself.

A site you add after protection was turned on gets the per-visitor limits at the next check (or at once with Add the limits to the new sites); it is never reported as a change made outside Fuzops, and no alert is sent for it. The same goes for a part Fuzops adds to protection in a later version.

Undo protection#

Undo protection removes every file protection wrote, takes its firewall table away and puts back the kernel values from before protection was first turned on. Addresses banned by protection can connect again.

Still stuck? Get help

Docs menu