At Amazon AWS we have VPC, where one node has public IP and others - private. Instance with public IP is something like balancer. On every node we have Ubuntu LTS. One of the private nodes is PostgresSQL server.

How to make proper forwarding from balancer (for example IP is port #1234 to internal node (for example port #5432, so postgres will be available at

Thank you.


Have found a temporary solution a redir command.

So the solution became:

redir --lport 1234 --laddr --cport 5432 --caddr

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy