Re: listen_addresses = '*' ok, specific address(es) no

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: listen_addresses = '*' ok, specific address(es) no
Дата
Msg-id
12217.1150426008@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
listen_addresses = '*' ok, specific address(es) no Geoffrey Knauth <geoff@knauth.org>
Re: listen_addresses = '*' ok, specific address(es) no Andrew Sullivan <ajs@crankycanuck.ca>
Re: listen_addresses = '*' ok, specific address(es) no Tom Lane <tgl@sss.pgh.pa.us>
Re: listen_addresses = '*' ok, specific address(es) no Geoffrey Knauth <geoff@knauth.org>
Re: listen_addresses = '*' ok, specific address(es) no (.... and a thread hi-jack!) "Phillip Smith" <phillips@weatherbeeta.com.au>
Re: listen_addresses = '*' ok, specific address(es) no (.... and a thread hi-jack!) Tom Lane <tgl@sss.pgh.pa.us>
Re: listen_addresses = '*' ok, specific address(es) no (.... and a thread hi-jack!) "Phillip Smith" <phillips@weatherbeeta.com.au>
Re: listen_addresses = '*' ok, specific address(es) no Tom Lane <tgl@sss.pgh.pa.us>
Re: listen_addresses = '*' ok, specific address(es) no "Phillip Smith" <phillips@weatherbeeta.com.au>
Re: listen_addresses = '*' ok, specific address(es) no Geoffrey Knauth <geoff@knauth.org>
Geoffrey Knauth  writes:
> Andrew Sullivan wrote:
>> Well, do you actually have an interface with that address?

> I think I do, in that the machine's wireless interface is set up with  
> a 192.168.1.x/24 address and 1.33 is on the same subnet.  Or maybe  
> I'm misunderstanding.  I thought the purpose of listen_addresses was  
> to allowing incoming connections only from listed addresses.

You're misunderstanding then.  What listen_addresses can bind to is IP
addresses of *your own machine*.  For example, if you bind to only
127.0.0.1 then only local loopback connections will work.  Binding to
just one external IP address is only interesting if your machine has
more than one such address; then it prevents connections that're coming
in through one of the other addresses.

The right way to limit incoming connections to only come *from*
particular IP addresses is to use pg_hba.conf.
		regards, tom lane

В списке pgsql-sql по дате отправления
От: Geoffrey Knauth
Дата:
От: Phillip Smith
Дата:
FAQ