Security and protection1 min readUpdated

How Gen2 servers are secured

The layers that protect every server: updates, SELinux, firewall, SSH, fail2ban, per-application isolation, bot protection and backups.

Security on a Gen2 server is a set of layers. If one is bypassed, the next one still holds. Most of them are on from the first minute and need nothing from you.

Updates

Security updates for the operating system are installed automatically every day.

SELinux

Enforcing. A process that is broken into can only touch what its role allows.

Firewall

Only web, mail and SSH ports are open. You add rules per address or range.

SSH

No root login and no passwords for system accounts. Optional allow-list for SSH and SFTP.

fail2ban

Bans addresses that guess passwords, scan for weak spots or keep hitting the limits.

Isolation

Each application has its own Linux user and PHP pool and cannot read another application's files.

Bot protection

Per-address and per-shop limits, refused attack tools, and a browser check when overloaded.

Backups

Every night, pulled to a NAS in another place, 7 nights kept.

Request1. Firewallfail2ban bansclosed ports2. Rulesblocked IPs, agents,countries: 444attack tools refused3. Limitsper addressper shop (filters)over: 4294. Checkbrowser checkwhen chosen oroverloadedYour shopGoogle and Bing are recognised by their published addresses and never limited or checked.
The four layers every request goes through before it reaches PHP.

What you should do

  • Turn on two-factor sign-in for your console account.
  • Use SSH keys rather than passwords for SFTP and SSH users, and give each person their own user.
  • Keep your store's software and extensions up to date; most hacked stores are hacked through an old extension.
  • Run WhizzyScan after installing extensions from unknown sources.
  • Invite your team with the smallest role they need (roles).

Did this solve it? If not, tell us what you see and we look at your server.

Open a ticket

Still stuck? Ask a person.

Tickets go straight to the engineers who run ShopWhizzy servers. Tell us the store, what you see and when it started, and we take it from there.