use ssh and create a local tunnel, something like this (only works if you have the ssh daemon on the web server)
ssh user@www.unit4.it -CNL localhost:5432:192.168.1.128:5432
The above will listen on 5432 (postgres port) on the local host and redirect all traffic to the remote computer via the web server.
source share