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 18.104.22.168) port #1234 to internal node (for example 192.168.1.44) port #5432, so postgres will be available at 22.214.171.124:1234?