Title
Create new category
Edit page index title
Edit category
Edit link
Air-gapped
PostgreSQL version 16 is required.
To install PostgreSQL in an air-gapped environment, download the required packages on a preparation machine and then transfer them to the air-gapped server. The preparation machine should have internet access and run the same operating system version as the target server.
Prerequisites
Before installing the PostgreSQL service, ensure the following requirements are met.
Requirement | Description |
|---|---|
Operating System | Debian 12+, Ubuntu 22.04+, Rocky Linux 9+, or RHEL 9+. |
Privileges |
|
Hardware | Minimum 8 vCPU and 16 GB RAM. |
Disk space | At least 1 TB of available storage on SSD or NVMe for optimal performance. Approximately 4 GB of storage is required per 1 million scanned objects for a deployment with 5 MD Core instances running 8 AV engines each. |
Network access | Required port is open (default port: 5432). A minimum network bandwidth of 1 Gbps is required. A bandwidth of 5 Gbps or higher is strongly recommended for production deployments. |
Offline Package Transfer | A USB drive or other secure transfer medium is required to move the packages to the air-gapped server. |
Debian, Ubuntu
Prepare packages
On the preparation machine, create file
prepare_postgresql.shwith content:
Run commands.
Copy the
postgresql-offlinefolder to a USB drive or secure transfer medium.Move it to the air-gapped server.
Install PostgreSQL
On the target server, insert the USB drive or secure transfer medium.
Copy
postgresql-offlinefolder to/opt/postgresql-offline. E.g:
Run the commands below.
Open connection
Locate the PostgreSQL data directory on your server.
To allow remote connections, open the postgresql.conf file and configure the following setting:
To allow MetaDefender Cluster services to access the database, open the pg_hba.conf file and add the following rule.
Restart the PostgreSQL service to apply the changes.
Rocky, RHEL 9
Prepare packages
On the preparation machine, create file
prepare_postgresql.shwith content:
Run commands.
Copy the postgresql-offline folder to a USB drive or secure transfer medium.
Move it to the air-gapped server.
Install PostgreSQL
On the target server, insert the USB drive or secure transfer medium.
Copy
postgresql-offlinefolder to/opt/postgresql-offline. E.g:
Run the commands below.
Open connection
Locate the PostgreSQL data directory on your server.
To allow remote connections, open the postgresql.conf file and configure the following setting:
To allow MetaDefender Cluster services to access the database, open the pg_hba.conf file and add the following rule.
Restart the PostgreSQL service to apply the changes.