Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id DA0081337B93 for ; Wed, 30 Mar 2011 12:23:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 42354-05 for ; Wed, 30 Mar 2011 15:23:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mail.postgresql.org (Postfix) with ESMTP id 47F101337B83 for ; Wed, 30 Mar 2011 12:23:36 -0300 (ADT) Received: by pzk9 with SMTP id 9so214905pzk.19 for ; Wed, 30 Mar 2011 08:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=cOarzv4sn3js7nvLfz5H83CnXenyreCkCrpwuDVWBtI=; b=V8RiRHklBuKYPcz/4TMOKN7DW04VXfatZ4xgdipbOMpsTeOO9U3g/f+LXMvHphu3Uu wvC29yPJytbJHXmGOlac7kMZVYtuRGiW3BNRolsnkP3C97pwq3406wxzbrD9zB1ztk5+ 1V47T8VwMW3bLgsGy6RPVEj5teLleh2dyVwnM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=itwu49vFmoX1yCd6CIGuRenkjUDfUf3AGS1YBS6f/DN86L73W1zFiGtv9JH8a8p8hF 6McvSHEVZdkDUWAZ1ibhLd3Bhq8lGNCKjLK0zPbDZ9X4N/kglUJOyHFtv8BUj4O3AIum VxBPujJHtNUIvMPoYivPQWwJh4ovFT5jcwWMM= Received: by 10.143.26.7 with SMTP id d7mr1023656wfj.134.1301498615316; Wed, 30 Mar 2011 08:23:35 -0700 (PDT) Received: from [192.168.1.117] (66-224-233-230.atgi.net [66.224.233.230]) by mx.google.com with ESMTPS id w11sm224968wfh.6.2011.03.30.08.23.33 (version=SSLv3 cipher=OTHER); Wed, 30 Mar 2011 08:23:34 -0700 (PDT) Message-ID: <4D934AF3.8040404@gmail.com> Date: Wed, 30 Mar 2011 08:23:31 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Marc Fromm CC: "postgresql@finner.de" , "pgsql-odbc@postgresql.org" Subject: Re: first time odbc References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net> <93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu> <20110330061806.13f0a67f@isengard.finner.de> <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu> In-Reply-To: <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201103/35 X-Sequence-Number: 10626 On 03/30/2011 07:54 AM, Marc Fromm wrote: > I only want the users to read data, thus I removed superuser and applied grant select. > > If the listen_address is not a client filter, would it still be better to only have it listen to localhost and the few ip addresses that will need to odbc to the postgres database? Is it just not possible to assign listen_address = 'localhost, 1.ip.address, 2.ip.address'? listen_address refers to the addresses available on the host. More than one assumes you have more than one IP address bound to the database host. You will not get the result you want using the method you propose above. > > One other thing still, if in the pg_hba.conf file I do not include any ip addresses I cannot connect to the database. If I enter just one ip address, any computer can connect to the database, even though some machines have static ip addresses and others have dhcp address from a completely different subnet. Do you know why this is? I figured the pg_hba.conf file controlled access by ip address, based on other googled articles. pg_hba.conf works by first match wins. My guess is you have line above your IP line that is more permissive and is allowing connections. Per a previous post, you probably should spend some time with the manual to fully understand the interaction between the various security,access components of Postgres:) > > Thanks > > -- Adrian Klaver adrian.klaver@gmail.com