port warded (iptables) postgres

Started by zhong ming wuover 15 years ago2 messagesgeneral
Jump to latest
#1zhong ming wu
mr.z.m.wu@gmail.com

Hello

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

Thanks in advance

Mr. Wu

#2Scott Mead
scott@scottrmead.com
In reply to: zhong ming wu (#1)
Re: port warded (iptables) postgres

Make sure that listen_addresses='<someIP>' or '*'

By default, the server only listens on unix sockets.

--Scott

On Tue, Nov 16, 2010 at 6:41 PM, zhong ming wu <mr.z.m.wu@gmail.com> wrote:

Show quoted text

Hello

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

Thanks in advance

Mr. Wu

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general