> Source: https://docs.cyberelements.io/bastion/4.7/fi/Installation/BrowserIsolation/Prerequisites/

# Prerequisites of the Browser Isolation Docker server

## Machine

- A 64-bit Debian 13 (Trixie) machine, physical or virtual, without a graphical interface, dedicated to this role. Its resources depend on the number of simultaneous Isolate (Web) sessions, each of which runs a browser:

| Resource | Recommendation |
|---|---|
| Processor | 4 vCPU, to increase with a heavy use of Browser Isolation. |
| Memory | 512 MB for the system, plus 512 MB to 1 GB per simultaneous Isolate (Web) session. Below 512 MB per session, the browser runs short of memory on some web resources. |
| Disk | 20 GB minimum, with at least 10 GB free in the partition that holds `/var/lib/docker`. |

> **Disk space of the browser images**
>
> The browser images are stored in `/var/lib/docker`: about 1.8 GB per version of the image. When the image is updated, the new version is downloaded before the old one is deleted: plan for the space of two versions in the partition that holds `/var/lib/docker`. With the containers of the sessions in progress and their logs, keep **at least 10 GB free** in this partition (two versions of the image take about 3.6 GB).

- A **static IP address** and a **final machine name**: the TLS certificate of the API is generated during the installation from the name (`hostname -f`) and the IP addresses of the machine.

> **Recommendation**
>
> The security hardening guide details the minimal Debian installation, the removal of the packages installed by default and the review of the listening ports: see [R1](https://docs.cyberelements.io/bastion/4.7/fi/Security/SystemHardening/SystemInstallation/#r1), [R4](https://docs.cyberelements.io/bastion/4.7/fi/Security/SystemHardening/SystemInstallation/#r4) and [R5](https://docs.cyberelements.io/bastion/4.7/fi/Security/SystemHardening/SystemInstallation/#r5).

## Network

The address of the Docker server is designated below by `IP_DOCKER`.

| Source | Destination | Destination port | Comments |
|---|---|---|---|
| `IP_GW` | `IP_DOCKER` | TCP 56654 | API of the Docker server (creation, follow-up and deletion of the sessions) and relay of the display of the sessions, by the Edge Gateways allowed to launch the Isolate applications. The Mediation Controller reaches the API through these Edge Gateways. |
| `IP_DOCKER` | `pub-oci-registry.cyberelements.io` | TCP 443 | Download of the browser images from the CyberElements registry. |
| `IP_DOCKER` | Web servers | TCP 80 or 443 (if using the standard port) | Access of the containerised browser to the web applications. |
| `IP_DOCKER` | `IP_GW` | TCP 8443 | Video recording of the privileged Isolate (Web) applications. |
| `IP_DOCKER` | `IP_GW` | TCP 443 | Recording of the URLs visited in the privileged Isolate (Web) applications. |
| `IP_DOCKER` | Debian repositories | TCP 80 | Installation of the dependencies and system updates. |
| `IP_DOCKER` | `pypi.org`, `files.pythonhosted.org` | TCP 443 | Download of the Python components of the Docker server when its package is installed or updated. |
| `IP_DOCKER` | DNS server | UDP 53 | Name resolution. |
| Administrator workstation | `IP_DOCKER` | TCP 22 | SSH connection to the Docker server. |

> **Information**
>
> The containers publish their display on local ports of the Docker server (`40000` to `40050` by default), reachable from the server itself only: these ports are not to be opened in the firewall.

> **Name resolution of the Edge Gateways**
>
> For the recording of the privileged Isolate (Web) applications, the Docker server reaches the Edge Gateways by the name entered in their **FQDN** field: this name must be resolved by the DNS server, not by the `/etc/hosts` file.
