Open Connection On PostgreSQL Server

Just in case the firewall is enabled, please also ensure that you configure your firewall rules properly for the connections between PostgreSQL server and the services of MetaDefender Distributed Cluster, which include MetaDefender Core services.

The guide here assumes we are using an SSL connection with PostgreSQL. With a non-SSL connection, please use host instead.

Windows

  1. Locate and modify pg_hba.conf configuration file within the PostgreSQL data directory. For example: C:\Program Files\PostgreSQL\16\data\pg_hba.conf.
pg_hba.conf
Copy

In the above example, all source addresses from MetaDefender Distributed Cluster and MetaDefender Core services are permitted. Refer here for more details.

  1. Locate and modify postgresql.conf configuration file within the PostgreSQL data directory. For example: C:\Program Files\PostgreSQL\<version>\data\postgresql.conf.
postgresql.conf
Copy

The configuration above directs PostgreSQL server to permit incoming connections from all sources associated with MetaDefender Distributed Cluster and MetaDefender Core services. Learn more from here.

Linux

  1. Locate and modify the pg_hba.conf configuration file within the PostgreSQL data directory. For example: /var/lib/pgsql/<version>/data/pg_hba.conf.
pg_hba.conf
Copy

In the above example, all source addresses from MetaDefender Distributed Cluster and MetaDefender Core services are permitted. Refer here for more details.

  1. Locate and modify the postgresql.conf configuration file within the PostgreSQL data directory. For example: /var/lib/pgsql/<version>/data/postgresql.conf.
postgresql.conf
Copy

The configuration above directs PostgreSQL server to permit incoming connections from all sources associated with MetaDefender Distributed Cluster and MetaDefender Core services. Learn more from here.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard