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

Re: [HACKERS] Another crack at doing a Win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [HACKERS] Another crack at doing a Win32
Date: 2004-03-05 16:13:40
Message-ID: 200403051613.i25GDeg13256@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32pgsql-patches
Andrew Dunstan wrote:
> How does this sound?
> 
> . if -i/tcpip_socket is not set, then bind to localhost
> . if -i/tcpip_socket is set, and virtual_host is not set, behave as now 
> (i.e. bind to all addresses)
> . if  -i/tcpip_socket is set, and virtual_host is set, bind to all but 
> immediately close connections where the local address is not either 
> localhost or the virtual_host.
> 
> That seems to me to get as close as reasonably possible to the Unix 
> behaviour. I don't think that always allowing localhost connections on 
> Windows is a big security risk.
> 
> Also, what is the default connection mode of psql? It should probably be 
> equivalent to "-h localhost", shouldn't it?

Now that is something I had not thought of.  Seems we can assume a Win32
psql can never use unix domain sockets, so defaulting that to localhost
is a good solution too.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers by date

Next:From: scott.marloweDate: 2004-03-05 16:47:26
Subject: Re: [HACKERS] Tablespaces
Previous:From: Andrew DunstanDate: 2004-03-05 15:41:12
Subject: Re: [HACKERS] Another crack at doing a Win32

pgsql-patches by date

Next:From: Fabien COELHODate: 2004-03-05 16:15:04
Subject: Re: notice about costly ri checks (2)
Previous:From: Andrew DunstanDate: 2004-03-05 15:41:12
Subject: Re: [HACKERS] Another crack at doing a Win32

pgsql-hackers-win32 by date

Next:From: scott.marloweDate: 2004-03-05 16:47:26
Subject: Re: [HACKERS] Tablespaces
Previous:From: Andrew DunstanDate: 2004-03-05 15:41:12
Subject: Re: [HACKERS] Another crack at doing a Win32

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