pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Szabolcs AndrĂ¡si <andrasi.szabolcs@gmail.com>
To: tony <tony@tgds.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Connect to PostgreSQL server from an ADSL connection
Date: Sun, 1 Jan 2006 20:05:22 +0100
Message-ID: <530357980601011105n5389c0di@mail.gmail.com> (raw)
In-Reply-To: <1136131131.2833.41.camel@hush.localdomain>
References: <530357980601010740j7b80e975s@mail.gmail.com>
	<1136131131.2833.41.camel@hush.localdomain>

> 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



view thread (5+ messages)  latest in thread

Message-ID: <530357980601011105n5389c0di@mail.gmail.com>
Permalink:  ../530357980601011105n5389c0di@mail.gmail.com/
Also on:    postgresql.org/message-id/530357980601011105n5389c0di@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrasi.szabolcs@gmail.com, tony@tgds.net
  Subject: Re: Connect to PostgreSQL server from an ADSL connection
  In-Reply-To: <530357980601011105n5389c0di@mail.gmail.com>
  References: <530357980601010740j7b80e975s@mail.gmail.com> <1136131131.2833.41.camel@hush.localdomain> <530357980601011105n5389c0di@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox