Re: Re Dynamic IP - pg_hba

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: <dirk-hamstra(at)attbi(dot)com>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Re Dynamic IP - pg_hba
Date: 2003-02-18 00:06:32
Message-ID: 200302171606.32814.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Dirk,

> Well figured out the answer to my own question. Pattern is simply a mask of
> 0s like this for the internal network:
>
> host all 0.0.0.0 0.0.0.0 trust

This opens your database to the Universe, including the internet. You sure
you want to do this? If so, give me your ip address, I could use some extra
database testing space <grin>

I think you want something more like this:

host all 10.1.0.0 255.255.0.0 trust

... assuming that your DHCP range is 10.1.x.x. You'll need to ask your
network administrator for the right numbers to cover your internal network.

Also, "trust" means that any user on your network does not need a password to
log in, a really insecure situation. Depending on what your client supports,
you want (in descending order of security):

host all 10.1.0.0 255.255.0.0 md5
host all 10.1.0.0 255.255.0.0 crypt
host all 10.1.0.0 255.255.0.0 password

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2003-02-18 03:25:09 Re: MySQL comparable syntax for PostgreSQL
Previous Message Josh Berkus 2003-02-18 00:00:29 Re: Multiple Return Values?