Re: TCP/IP with 7.4 beta2 broken? - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: TCP/IP with 7.4 beta2 broken?
Date
Msg-id 3F562118.4030005@pse-consulting.de
Whole thread Raw
In response to Re: TCP/IP with 7.4 beta2 broken?  ("Andrew Dunstan" <andrew@dunslane.net>)
Responses Re: TCP/IP with 7.4 beta2 broken?  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan wrote:

>Andreas Pflug said:
>  
>
>>Tommi Maekitalo wrote:
>>
>>    
>>
>>>>*nod* but it would be nicer if all loopback interfaces worked by
>>>>default - hence my localhost suggestion, which would match any of
>>>>
>>>> 127.0.0.1/32
>>>>
>>>> ::ffff:127.0.0.1/128 and
>>>> ::1/128
>>>>
>>>>        
>>>>
>>>...
>>>That sounds good. Is it possible to extend lookup that way?
>>>
>>>      
>>>
>>I'd feel a bit uncomfortable making ::1/128 from 127.0.0.1/32 because
>>it's not converting the same address from one format into another, but
>>a  completely different address.
>>Extending "local" to accept all local tcpip addresses would fit better.
>>
>>    
>>
>
>I agree. The only automatic mapping in host* lines should be from
>p.q.r.s/n to ::ffff:p.q.r.s/n+96. Loopback interfaces are special and
>should be treated separately from the general case, which is what I
>propose to do.
>
This doesn't look consistent to me. Local addresses can be all addresses 
that the host's interfaces are currently configured with, loopback is 
nothing special in this sense. The admin can easily do 'ifconfig' to see 
all addresses configured and enter them into pg_hba.conf, because these 
addresses are obvious.

Regards,
Andreas




pgsql-hackers by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: libpq makefile for bcc
Next
From: Kurt Roeckx
Date:
Subject: Re: TCP/IP with 7.4 beta2 broken?