Secure perimeter of 2019: gateway, workload node, standby
Security

Gateway, workload node, standby: how a 2019 secure perimeter was built and what I would change today

Secure perimeter of 2019: a courier with a key at the only gate, behind it a workshop and a standby site joined by blue tubes

A small company that needs a secure perimeter does not need its own data centre. It needs three servers with distinct roles, one way in and a clear path for every packet. In 2019 I designed exactly that for organisations with elevated information-security requirements and wrote it up as technical documentation: a gateway, a workload node and a standby. I don’t name the clients, because the documents were written for specific organisations and this piece is about the architecture, not about them.

This article opens a series on building a secure perimeter yourself. Below: how the design worked, the two generations of software it went through during 2019, how traffic travelled from a device to a service, and what I would do differently in 2026. At the end there is a “2019 component, status, replacement” table and ten questions worth asking of your own design. The product side of the same work is in the Monolith case study. That case describes a later state of the product, already on KVM and WireGuard/OpenVPN; here I go through the original 2019 design documents.

Three roles: gateway, workload node, standby

The server side was three physical hosts. Each did one job, and that separation is the main thing worth taking from the design.

  • Firewall host, the gateway. The only way in: VPN for user devices, authentication of staff, developers and partners, deep packet inspection, intrusion detection, and failover to the standby when the main server went down or load crossed a set threshold.
  • Main host, the workload node. This is where the services ran: mail, telephony, chat, remote desktops, the database and monitoring. It was invisible from outside; the only route to it was the internal VPN from the gateway.
  • Backup host, the standby. VM replication, control over copies, and failover to a standby site.

All three servers were joined by an internal VPN. Requests reached the main server through a reverse proxy, which the document also made responsible for balancing between the main and backup servers. A user, even an authenticated one, never talked to the main server directly.

My share of the work was written down in five lines: changes to the UEFI bootloader, hypervisor hardening and configuration, OS hardening and configuration, VPN protection of the link, and clustering with fault tolerance. That is the whole path from machine boot to a fault-tolerant cluster.

The standards behind the design

The servers were hosted in a data centre compliant with Russian law and configured against four documents: GOST R 51275-2006 on factors affecting information, GOST R 50922-2006 with the basic terms of information protection, recommendations R 50.1.053-2005 on technical-protection terminology, and GOST R ISO/IEC 27001 on information-security management.

What did those references actually give the project? The first three define vocabulary and a list of threats; they do not tell you how to configure a firewall. ISO 27001 describes a management system, not a configuration. The client needed the references so the project read in a language they recognised. For the engineers, the working documents were the diagrams, the service lists and the hardening checklist covered below. Today I would keep the 27001 reference and add measurable requirements with a verification method: what exactly must be closed and how you check it.

Generation one: VMware ESXi and Kerio

The first revision was built on commercial products. The main server ran VMware ESXi 6.5.2 with four virtual machines:

  • CentOS 7.2 with Docker and the Plesk panel. The containers held the Prosody chat server, the Collabora office suite, the dante proxy, a RADIUS server (FreeRADIUS with the daloRADIUS panel and MySQL) and websites;
  • CentOS 7.2 with the Kerio Connect mail server;
  • Debian 9 with Kerio Operator telephony;
  • Windows Server 2016 with remote desktops.

In the early revision the gateway also ran ESXi 6.5.2, with Kerio Control as the firewall. For the Prosody chat the diagram lists 58 XMPP extensions: group rooms, message archive, push notifications, file upload, login by client certificate, security labels.

The main server came with a hardening checklist: firewall and security policy, IP blocking with Fail2Ban, the ModSecurity WAF, forced HTTPS with a 301 redirect and HSTS, DNSSEC, TLSA and SSHFP records, restrictions on creating DNS subzones, a second factor through Google Authenticator PAM, port knocking on libpcap, Patchman and a vulnerability scanner. Much of that list is still baseline configuration for any server in 2026.

Generation two: Proxmox, pfSense and SoftEther

In the same Main server diagram I left a migration plan: Kerio Control to pfSense, VMware to Proxmox, Kerio Operator to FreePBX, Kerio Connect to Zimbra, Plesk to Vesta, CentOS to Ubuntu Server. Every replacement in the plan points the same way: from commercial, licensed products to open ones.

The first two items made it into the final technical documentation. All three hosts run Proxmox VE 6.0. The gateway carries two VMs: Ubuntu 18.04 LTS with SoftEther VPN for the internal network (AES256-GCM-SHA384), and pfSense 2.4.4 on FreeBSD providing the firewall, IPS, antivirus scanning, link balancing and monitoring. The main server kept CentOS 7.2 with Docker, Debian 9 and Windows Server 2016. The backup server runs the same Proxmox VE 6.0 with backup, VM replication and failover to a standby site.

The mail and telephony replacements never reached the final document; they stayed in the plan. And one inaccuracy is worth showing: the text says the Main host has “four virtual servers” but lists three. Most likely the number was left over from generation one, which did have four machines including a second CentOS with Kerio Connect, and nobody corrected it when the text was rewritten. Small mismatches like this cost hours of reconciliation later, which is why today I describe the machine inventory in code rather than prose.

The same three-role design carried on. In the 2020 continuation of the project it went into the report almost unchanged, and in the 2020–2021 fintech prototype it grew to five servers: load balancing, front end, back end, database and backup. The five-server setup gets its own article later in the series.

The path of a packet from device to service

The document walks a request step by step. A request from the user’s computer goes through the carrier network and the internet into the hosting provider’s network, reaches a managed switch, and the switch delivers it to the IP and MAC of the gateway’s physical network card. The hypervisor, through its virtual switch, picks the virtual NIC of the right VM, and the traffic reaches the service: pfSense or SoftEther VPN. In the later revision of the diagram the gateway runs two VMs with separate VPNs, SoftEther VPN 1 and SoftEther VPN 2.

What this gives you:

  • each service has its own IP and MAC and its own virtual NIC that can be configured separately;
  • services run independently, so a VPN crash does not take the firewall down;
  • one physical server carries a branched structure instead of a single process doing everything.

What it does not give you is missing from the document and needs saying. Isolation happens at the hypervisor, not between physical devices. A hypervisor vulnerability or a misconfigured virtual switch exposes every service on the gateway at once. There is one physical gateway, and if it fails the perimeter loses its only entrance. The 2019 text describes fault tolerance for the main server, but not for the gateway.

Who connected and how

The connection diagram distinguished four kinds of client.

  • A computer with a token connected to the gateway over VPN with AES256-GCM-SHA384. Without the token the tunnel would not come up. The token complied with GOST R 34.10-2012 (digital signature), GOST R 34.11-2012 (hash function) and the VKO GOST R 34.10-2012 session-key algorithm.
  • A smartphone connected over TLS and through SOCKS5. It only ever saw the gateway’s external address; the server holding the data stayed hidden.
  • Servers talked to each other over the internal VPN: gateway to main, main to backup.
  • The client’s own system received results through a REST API.

The strength of this design is that entry is tied to a physical key, not just a password. The weakness is that once in, the user sat inside a trusted network. That is no longer considered enough: access is checked on every request to every service. I described how that works in practice in Zero Trust infrastructure in practice.

The operator’s workstation

The user’s computer was part of the perimeter, not an outside device. The disk was split into two encrypted partitions running Windows Embedded 8.1: a guest one with basic functions and a main one with a hidden volume. The main partition held the client software, the SoftEther VPN client, the Rutoken control panel, Rohos for Windows login by token, VeraCrypt 1.22 for disk encryption and TeamViewer for on-demand remote support.

Two small items on that list do more than many large measures:

  • a separate utility dropped the VPN after a period of inactivity, so a laptop left open did not keep a channel into the perimeter;
  • Unified Write Filter redirected every change to the system partition into RAM and discarded it on reboot.

For remote-desktop-only work there was a simpler variant: a single Windows Embedded 8.1 install with UWF covering all data on the machine. Every boot returned it to the reference image. That was a first step towards what is now called an immutable workstation.

I won’t cover the hidden OS here; it has its own article, a hidden OS on UEFI. TeamViewer I would remove from a protected machine today: a third-party remote-access service on a workstation inside the perimeter is one more way in that bypasses the gateway. Support is better run through a service inside the perimeter.

What still holds in a 2026 secure perimeter, and what is out of support

Seven years on, almost all the software in the design is either out of support or on a different branch. Component by component:

2019 componentStatus at the end of 2026What to use now
VMware ESXi 6.5.2general support ended 15 Oct 2022already replaced by Proxmox in generation two
Proxmox VE 6.0the 6.x branch has been out of support since September 2022the current Proxmox VE branch, as a cluster rather than three separate hosts
pfSense 2.4.4the 2.4 branch is obsolete; 2.5 and later have shipped since 2021current pfSense CE or OPNsense, two nodes
SoftEther VPN on Ubuntu 18.04Ubuntu 18.04 standard support ended 31 May 2023WireGuard with keys on a hardware token
CentOS 7.2CentOS 7 support ended 30 Jun 2024Debian or a supported RHEL-compatible distribution
Debian 9LTS ended 30 Jun 2022the current Debian stable
Windows Server 2016extended support until 12 Jan 2027plan the migration now
Windows Embedded 8.1extended support ended 11 Jul 2023a thin client or an immutable image on a supported OS
Kerio Control, Connect, Operatorreplaced or scheduled for replacement back in 2019open components with a clear owner for updates
Hand-configured hostsdo not scale and cannot be reproducedinfrastructure as code

What survived unchanged: one controlled way in, role isolation across servers, an internal VPN between them, a standby site, login by hardware key and rolling the workstation back to a reference image. These are architectural decisions; any secure perimeter rests on them, and they do not depend on versions.

What did not survive: a single physical gateway as a single point of failure, trusting everything that came through the VPN, and a hand-built setup that nobody can repeat a year later.

What I would change today

Building the same design for a small company in 2026, I would change six things.

  1. Two gateways instead of one. A firewall pair sharing a virtual address (CARP in pfSense and OPNsense). Losing one node must not close the entrance.
  2. WireGuard instead of SoftEther. A small codebase, modern cryptography with no cipher-suite negotiation, a key per device. The private key can live on a hardware token, as in WireGuard YubiKey Manager.
  3. A cluster instead of three separate hosts. Proxmox today builds into a cluster with live migration and a dedicated backup server. How I do it is in a production Proxmox cluster as code.
  4. Code instead of manual setup. Machines, networks and firewall rules live in a repository, and a server comes up from scratch without console access. I described that in from bare metal to production with infrastructure as code. Mismatches like “four machines, three listed” stop happening.
  5. A check on every request. The VPN stays a transport, not a pass: each service verifies who is calling it.
  6. Secrets in a vault. Service keys and passwords live in a dedicated secrets store, for example OpenBao, not in config files on the hosts.

A separate note on the standby. In the 2020 continuation of the project the backup host had the same disk array as the main one: 15 drives of 12 TB in RAID5. For backups I would choose differently today: RAID6 or RAID10 for drives that size, and at least one off-site copy that cannot be modified from the main perimeter. Storage sizing and the mistakes in it get their own article later in the series.

Ten questions to ask of your own design

I ask these when I review someone else’s perimeter, and I would ask them of my own 2019 design.

  1. How many entry points do you have from outside, and can you list them all?
  2. What happens to access if the only gateway fails?
  3. After the VPN, does a user see the whole internal network or only their own services?
  4. Is login tied to a physical key or only to a password?
  5. Does the channel close when a workstation sits idle?
  6. Does the workstation return to a reference image after a reboot?
  7. Which perimeter components are already out of vendor support?
  8. Can you rebuild the perimeter from a repository without remembering settings?
  9. Where are service keys and passwords stored?
  10. When did you last fail over to the standby site for real, not on paper?

If you have no answer to questions three, eight and ten, start there. It is usually cheaper than buying another security product. If you want an outside view, that is part of my information security services.

Frequently Asked Questions

Why three servers when everything could run on one?

So that a failure or breach of one role does not open the others. The gateway takes all external traffic and is attacked first. If the data sits on it too, breaching the gateway means a leak straight away. Splitting roles across physical machines adds another boundary on top of virtualisation.

Do I need GOST tokens if the company does not operate in Russia?

No. Tokens with GOST algorithms are needed where a regulator requires them. In other jurisdictions FIDO2 keys or smart cards play the same role. The principle is what matters: login is tied to a physical device that cannot be copied along with the password.

Is it fine to run pfSense in a virtual machine today?

Yes, provided the gateway’s hypervisor is not managed from the network it protects, and there are two nodes. A virtual firewall on a single physical host without a standby is still a single point of failure, just as in the 2019 design.

What should I take from this design first?

One way in, an internal VPN between servers, and rolling workstations back to a reference image. These three decisions cost almost nothing and close most of the typical problems of a small perimeter.

Does a VPN replace Zero Trust?

No. A VPN encrypts the channel and limits who can connect to the perimeter, but once connected, a user in the 2019 design could see the internal network. Zero Trust adds a check on every request: each service decides whether to let a given user on a given device in. The VPN stays as transport.

Where do I start if some perimeter components are already out of support?

List the components with their end-of-support dates and start with those that take external traffic: the gateway, the firewall, the VPN. The operating systems of servers holding data come next. Put anything with a near date, such as Windows Server 2016 with support until 12 Jan 2027, into the plan now, not in the final month.

Sources

Need a consultation?

If you run a small perimeter of a few servers and are not sure it would survive a gateway failure or an audit, book a call. We will start with a map of entry points and a list of components out of support. More about the work on the information security services page.

Rate article