X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1F4059FA42B for ; Fri, 16 Jun 2006 11:40:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 43316-07 for ; Fri, 16 Jun 2006 11:40:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp4.suscom.net (smtp4.suscom.net [64.78.119.249]) by postgresql.org (Postfix) with ESMTP id 3D8CF9FA5C3 for ; Fri, 16 Jun 2006 11:40:16 -0300 (ADT) Received: from localhost (unknown [127.0.0.1]) by smtp4.suscom.net (Postfix) with ESMTP id 59C17150058 for ; Fri, 16 Jun 2006 10:40:14 -0400 (EDT) Received: from smtp4.suscom.net ([127.0.0.1]) by localhost (smtp4.suscom.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24923-01-6 for ; Fri, 16 Jun 2006 10:39:52 -0400 (EDT) Received: from [192.168.29.51] (ip7.244.23.209.suscom.net [209.23.244.7]) by smtp4.suscom.net (Postfix) with SMTP id 0DE2E150076 for ; Fri, 16 Jun 2006 10:39:48 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <12217.1150426008@sss.pgh.pa.us> References: <7F9DD4F9-A334-4A52-8501-1DA780CD4D2E@knauth.org> <27882.1150382418@sss.pgh.pa.us> <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org> <12217.1150426008@sss.pgh.pa.us> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Geoffrey Knauth Subject: Re: listen_addresses = '*' ok, specific address(es) no Date: Fri, 16 Jun 2006 10:39:46 -0400 To: pgsql-sql@postgresql.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: amavisd-new at suscom.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/212 X-Sequence-Number: 25448 Thank you Tom Lane and Phillip Smith, you've answered my questions. --Geoff On Jun 15, 2006, at 22:46, Tom Lane wrote: > 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