X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D19BD474E4F for ; Fri, 9 May 2003 19:32:22 -0400 (EDT) Received: from mail.4dmatrix.com (unknown [208.248.151.248]) by postgresql.org (Postfix) with ESMTP id D5664474E4F for ; Fri, 9 May 2003 19:31:46 -0400 (EDT) Received: from joshdesk2 (sonicwall.4dmatrix.com [208.248.151.201] (may be forged)) by mail.4dmatrix.com (8.9.3/8.9.3) with SMTP id QAA07950; Fri, 9 May 2003 16:25:07 -0700 Message-ID: <007b01c31682$fb463df0$6e02a8c0@4dmatrix.com> From: "Josh Goldberg" To: "Randall Perry" , "Hans Spaans" , References: Subject: Re: Pg_hba and dynamic dns Date: Fri, 9 May 2003 16:30:31 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-20.5 required=5.0 tests=BAYES_10,NO_DNS_FOR_FROM,ORIGINAL_MESSAGE, QUOTED_EMAIL_TEXT,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/126 X-Sequence-Number: 8688 set them up with an ssh tunnel to the db server and connect with that. That's how I have my suits access our intranet remotely. ----- Original Message ----- From: "Randall Perry" To: "Hans Spaans" ; Sent: Friday, May 09, 2003 6:51 AM Subject: Re: [ADMIN] Pg_hba and dynamic dns > Ok, those are valid points. > > What I'm trying to do is get access to the db for clients who are on the > road using connections with dynamic IPs, from a PC running an MS Access db > app. Dynamic DNS would have been an easy solution. > > Any ideas how to achieve this in other ways? > > > > On Thu, May 08, 2003 at 06:40:14PM -0400, Randall Perry wrote: > >> I've discovered I can use URLs for an IP address in pg_hba.conf, and > >> everything works ok if the host can be resolved. > >> > >> If it can't be resolved I get the error: > >> psql: FATAL: Missing or erroneous pg_hba.conf file, see postmaster log for > >> details > >> > >> And then all tcp/ip is denied. > >> > >> That sucks -- means I can't use dynamic DNS. Anyone else think tcp/ip access > >> shouldn't break if a URL can't be resolved? > > > > IMHO support for fqdn should be removed. > > > > 1. FQDN's are mostly resolved when the configuration is being loaded. > > So that data isn't going to change when the program is running or > > would you like to do a dns query for every connection you get? > > > > 2. How are you going to handle forward and reversed dns? Think about > > multiple A-records, fake or no reversed DNS, etc. > > > > 3. If fqdn is being checked when the db gets a connection people can > > break in when you only check reversed dns. > > > > 4. Who is going to ensure me that dns isn't compromised somewhere down > > the line? > > > > This are just a few things, but I'm wondering. > > -- > Randall Perry > sysTame > > Xserve Web Hosting/Co-location > Website Development/Promotion > Mac Consulting/Sales > > http://www.systame.com/ > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >