X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 934DC9DC80E for ; Sun, 1 Jan 2006 15:05:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42304-08 for ; Sun, 1 Jan 2006 15:05:25 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by postgresql.org (Postfix) with ESMTP id 1E2D29DC81D for ; Sun, 1 Jan 2006 15:05:22 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 14so2301420nzn for ; Sun, 01 Jan 2006 11:05:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MoRHUBi7/vzz0ifOCgoewVIQxu7m+s4I0GUuAVtWmDiAQc15+wS/XO3OdFvkVWttwKW0RQWRff4MngQbgUcSJkOvPRGbh4Wdev2Chco1JZnWiqCdQ8tHYh2QDsvDsS+Ifw+QoPA7lRfaiuJFpTvdnjqCk2J3ArdEJ6Ly8MRY52M= Received: by 10.65.249.15 with SMTP id b15mr45687qbs; Sun, 01 Jan 2006 11:05:22 -0800 (PST) Received: by 10.64.53.4 with HTTP; Sun, 1 Jan 2006 11:05:22 -0800 (PST) Message-ID: <530357980601011105n5389c0di@mail.gmail.com> Date: Sun, 1 Jan 2006 20:05:22 +0100 From: =?ISO-8859-1?Q?Szabolcs_Andr=E1si?= To: tony Subject: Re: Connect to PostgreSQL server from an ADSL connection Cc: pgsql-admin@postgresql.org In-Reply-To: <1136131131.2833.41.camel@hush.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <530357980601010740j7b80e975s@mail.gmail.com> <1136131131.2833.41.camel@hush.localdomain> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200601/5 X-Sequence-Number: 20093 > ssh -v -L 5432:localhost:5432 dbuser@your.dyndns.domaine > > Then connect to your database on localhost. Hi Tony, Thank you very much for your answer. Sorry to bother you again with the same question but unfortunately it is still not clear to me how to configure the PostgreSQL server. Could you please be more specific and detailed? Let me write an exact situation to make the answer easier: - PostgreSQL is newly installed, so now everything is set to default values= . - The PostgreSQL server is runing on a computer with a domain name for example "my.pgserver.com" and listening on port 5432. - There is another remote computer with ADSL connection to Internet and it is registered to dyndns.org with a name for example "my.dyndns.domain". - A client application is running on this remote computer. This application would like to connect to the PostgreSQL server on "my.pgserver.com" and fetch some data from a table. The documentation says about the "listen_addresses" configuration parameter in the postgresql.conf file, that to accept TCP/IP connections its value must be '*' or at least its value must contain the host names on which the server is listening for connections from client applications. So I guess I should add "my.dyndns.domain" to it to accept TCP/IP connection from that remote computer. But I don't know if am I right? How should I configure the pg_hba.conf file? What else should I do? Or just explain more detailed (through the example above) that SSH connection please... Could you please help me? Thank you in advance again... Best regars, Szabolcs