> Source: https://docs.cyberelements.io/bastion/4.7/fi/Installation/Cluster/Introduction/

# Introduction to the installation of a Cluster platform

The Cluster architecture of CyberElements Bastion consists of three roles:

- The `Mediation Controller` server that assigns and controls access permissions to managed resources.
- The `Edge Gateway` server that acts as a “passive” network gateway to managed resources. This server generates session recordings before storage.
- The `HTML5 Gateway` server that is a gateway used for an access without agent on the user side by converting RDP, SSH, and VNC protocols to web flows.

> **Note**

This last server can be deployed on the same machine as the Edge Gateway server.

Cluster architecture typically consists of:

- Two `Mediation Controller` servers (mandatory)
- Two `Edge Gateway` servers combining the `HTML5 Gateway` role

Below is the architecture diagram for CyberElements Bastion with external access (WAN mode):

- **[Prerequisites](https://docs.cyberelements.io/bastion/4.7/fi/Installation/MediationController/Prerequisites/#network-cluster)**

  ---

  Definition of prerequisites for the CyberElements Bastion cluster architecture.
- **[Installation from virtual appliances](https://docs.cyberelements.io/bastion/4.7/fi/Installation/MediationController/Introduction/#choosing-the-procedure)**

  ---

  Installation of a CyberElements Bastion Cluster platform using virtual appliances provided by CyberElements.
- **[Installation from scratch](https://docs.cyberelements.io/bastion/4.7/fi/Installation/MediationController/Introduction/#choosing-the-procedure)**

  ---

  Installation of a CyberElements Bastion Cluster platform using blank Debian servers.

> **Recommendation**
>
> The security hardening guide gathers the recommendations for hardening the Debian servers, the SSH service, the local firewall, Apache, TLS and the session recordings: see [Security hardening guide](https://docs.cyberelements.io/bastion/4.7/fi/Security/SecurityHardening/).
