Обсуждение: pg_hba.conf

Поиск
Список
Период
Сортировка

pg_hba.conf

От
"Sidar Lopez Cruz"
Дата:
how can i config this file to connect from any ip on my lan

:-) Sidar Lopez Cruz
- Cero Riesgo, S.A.

Re: pg_hba.conf

От
Robert Treat
Дата:
host all     192.168.0.0     255.255.0.0 trust

that should work, though it's pretty insecure. note you might need to
address your lan ip address if it's not 192.168.*.*

Robert Treat

On Thu, 2003-02-27 at 14:59, Sidar Lopez Cruz wrote:
> how can i config this file to connect from any ip on my lan
>
> :-) Sidar Lopez Cruz
> - Cero Riesgo, S.A.




Re: pg_hba.conf

От
"Ed L."
Дата:
On Thursday February 27 2003 3:50, Robert Treat wrote:
> On Thu, 2003-02-27 at 14:59, Sidar Lopez Cruz wrote:
> > how can i config this file to connect from any ip on my lan
> >
> host all     192.168.0.0     255.255.0.0 trust
>
> that should work, though it's pretty insecure. note you might need
> to address your lan ip address if it's not 192.168.*.*

That applies only for pre-7.3 releases, I believe.  Pg 7.3.x
introduced new syntax for pg_hba.conf.  You'll need an extra 'all'
after the 'all' above for 7.3.x.

Ed