Skip site navigation (1) Skip section navigation (2)

Re: Patch to make postmaster bind to only to localhost.

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: "John C(dot) Quillan" <john_quillan(at)datasoft(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch to make postmaster bind to only to localhost.
Date: 2000-09-12 16:02:51
Message-ID: 200009121602.MAA24228@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
> On Tue, 12 Sep 2000, Bruce Momjian wrote:
> 
> > > On Tue, 12 Sep 2000, Bruce Momjian wrote:
> > > 
> > > > The big question is why we can't just scan pg_hba.conf and bind only
> > > > to those ip's.  That way, we don't have to have a new flag.  It will
> > > > all happen by default.
> > > 
> > > huh?  pg_hba.conf references IPs on remote hosts ... won't you find i
> > > tkinda difficult to bind to them? :)
> > 
> > Well, we list the IP numbers we will accept connections from in
> > pg_hba.conf.  If only on IP address appears on the file, why not just
> > bind to that one only?
> 
> okay, unless my read of Steven's missed something, you cannot bind to *the
> remote host* ... you can only bind to an IP on the local machine
> ... pg_hba.conf lists *remote hosts*, not local ones ...
> 
> Basically, binding means listening to a specific interface ... since the
> remote host IP is not a local IP, you can't listen on that interface ...

OK, but how then does -L work?  Seems it only accept 127.0.0.1 connections.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-patches by date

Next:From: The Hermit HackerDate: 2000-09-12 16:10:22
Subject: Re: Patch to make postmaster bind to only to localhost.
Previous:From: The Hermit HackerDate: 2000-09-12 16:00:37
Subject: Re: Patch to make postmaster bind to only to localhost.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group