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 E1F299FA5E6 for ; Thu, 15 Jun 2006 23:47:05 -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 85822-07 for ; Thu, 15 Jun 2006 23:46:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 648D19FA160 for ; Thu, 15 Jun 2006 23:46:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5G2kmZ3012218; Thu, 15 Jun 2006 22:46:48 -0400 (EDT) To: Geoffrey Knauth cc: pgsql-sql@postgresql.org Subject: Re: listen_addresses = '*' ok, specific address(es) no In-reply-to: <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org> References: <7F9DD4F9-A334-4A52-8501-1DA780CD4D2E@knauth.org> <27882.1150382418@sss.pgh.pa.us> <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org> Comments: In-reply-to Geoffrey Knauth message dated "Thu, 15 Jun 2006 22:06:25 -0400" Date: Thu, 15 Jun 2006 22:46:48 -0400 Message-ID: <12217.1150426008@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/194 X-Sequence-Number: 25430 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