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 2312D9FA5E6 for ; Thu, 15 Jun 2006 23:52:57 -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 90028-06 for ; Thu, 15 Jun 2006 23:52:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from weatherbeeta.com.au (mail.weatherbeeta.com.au [202.154.127.242]) by postgresql.org (Postfix) with SMTP id 0F2889FA160 for ; Thu, 15 Jun 2006 23:52:40 -0300 (ADT) Received: (qmail 5038 invoked from network); 16 Jun 2006 02:52:38 -0000 X-NetworkBox-HamSign: 0101;OUT;wbeetaau1;446d05867ed27a9b0d04f767573f5dac; Received: from mail.weatherbeeta.com.au (HELO wb-email) (172.20.0.2)by network-box.weatherbeeta.com.au with SMTP; 16 Jun 2006 02:52:38 -0000 Received: from IT-PHIL ([172.20.0.155]) by wb-email (602Pro LAN SUITE 2003) id 2d53403a for pgsql-sql@postgresql.org; Fri, 16 Jun 2006 12:50:30 +1000 Reply-To: From: "Phillip Smith" Cc: Subject: Re: listen_addresses = '*' ok, specific address(es) no Date: Fri, 16 Jun 2006 12:52:04 +1000 Organization: Weatherbeeta P/L Message-ID: <005401c690ef$d979f5f0$9b0014ac@ITPhil> MIME-Version: 1.0 Content-Type: text/plain;charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <12217.1150426008@sss.pgh.pa.us> X-Scanned-By-wbeetaau1: Virus scan performed by network-box X-Scanned-By-wbeetaau1: Scanner file id is wbeetaau1-1150426358.643-5033-000 X-Scanned-By-wbeetaau1: No known viruses found in message (received+scanned in 0.02/0.06 secs) X-Scanned-By-wbeetaau1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/196 X-Sequence-Number: 25432 quote: "The right way to limit incoming connections to only come *from* particular IP addresses is to use pg_hba.conf." Apologies Geoff - that would be the easier way rather than ipchains / iptables. -p -----Original Message----- From: pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of Tom Lane Sent: Friday, 16 June 2006 12:47 PM To: Geoffrey Knauth Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] listen_addresses =3D '*' ok, specific address(es) no=20 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 =20 > I'm misunderstanding. I thought the purpose of listen_addresses was =20 > 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 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email. Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments