Re: Connect to PostgreSQL server from an ADSL connection

From: Szabolcs Andrási <andrasi(dot)szabolcs(at)gmail(dot)com>
To: tony <tony(at)tgds(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Connect to PostgreSQL server from an ADSL connection
Date: 2006-01-01 19:05:22
Message-ID: 530357980601011105n5389c0di@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> ssh -v -L 5432:localhost:5432 dbuser(at)your(dot)dyndns(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message tony 2006-01-01 19:52:52 Re: Connect to PostgreSQL server from an ADSL connection
Previous Message tony 2006-01-01 15:58:50 Re: Connect to PostgreSQL server from an ADSL connection