Re: strange problem with ip6

From: Christian Kratzer <ck-lists(at)cksoft(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: strange problem with ip6
Date: 2007-05-18 07:23:14
Message-ID: 20070518092205.L76440@vesihiisi.cksoft.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On Thu, 17 May 2007, Tom Lane wrote:

> Christian Kratzer <ck-lists(at)cksoft(dot)de> writes:
>> It's not that simple though. The ipv6 stack will propably not allow
>> users to build sockets from addresses in link local scope from a
>> specific interface to a server bound to a global address, ::1, or
>> scoped to any other interface. After all link local means exactly
>> this.
>
>> So if you have your postgres listening on ::1 you will not be
>> able to connect from your fe80::dead:beef%fxp0 address.
>
> But if you tell it to listen to *, won't it bind to everything in sight?

yes.

> In particular we know that this thread started because someone had a
> connection through a scoped address, so one way or another it's possible.

thats propably exactly how it happened. I agree now that a workaround
is needed until the inet types supports scoped addresses.

Greetings
Christian

--
Christian Kratzer CK Software GmbH
Email: ck(at)cksoft(dot)de Schwarzwaldstr. 31
Phone: +49 7452 889 135 D-71131 Jettingen
Fax: +49 7452 889 136 HRB 245288, Amtsgericht Stuttgart
Web: http://www.cksoft.de/ Geschaeftsfuehrer: Christian Kratzer

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Max Khon 2007-05-18 08:39:18 Re: ON DELETE CASCADE with multiple paths
Previous Message Tom Lane 2007-05-18 00:47:13 Re: BUG #3266: SSL broken pipes kill the machine and fill the disk