Welcome to the Linux Foundation Forum!

How to disable postgresql port for out-server connection?

mxcdh Posts: 2

I installed on my dedicated server ubuntu 20.04, docker, and container with postgressql. I have problem beacouse I want that ubuntu blocked all connection with postgressql, out-server from domain, ip server etc, which added to server.

At the moment I can connect with PostgreSQL:

via ssh
via server ip. ip.ip.ip:5432/...
via all domain which added to nginx like domain1.com:5432 etc.
I want disabled connection via server ip and all domain which added to nginx



Upcoming Training