I have successfully used iptables to direct ports for other services. For example I run apache on 8443 on 127.0.0.1 and use iptable to direct traffic to public ip on 443. Trying the same with postgresql does not seem to work properly.
I was wondering whether anyone has successfully used iptables + postgres this way