Re: haproxy and interaction with VRRP

From: Sander Klein <roedie#roedie.nl>
Date: Tue, 13 Dec 2011 09:43:59 +0100


On 12.12.2011 14:32, Vincent Bernat wrote:
> On Mon, 12 Dec 2011 13:23:11 +0100, Sander Klein wrote:
>
>>>>>> I started doing this because there is no nonlocal_bind option
>>>>>> for
>>>>>> IPv6 (or I didn't search well enough (-: )
>>>>>
>>>>> From the source code, it seems that IPv4 non local bind sysctl
>>>>> also
>>>>> applies to IPv6. Since 2.6.30.
>>>>
>>>> Hmmm, then I'm going to look into it again. I'm running 2.6.39 and
>>>> it
>>>> doesn't seem to work. Could be a problem on my side.
>>>
>>> You are right. It only applies to v4-mapped addresses.
>>
>> It would have been nice if it did work though... It's one of those
>> features I'm missing.
>>
>> Binding ip's to the dummy interface works, but it always feels a bit
>> hacky and brings up a lot of administration if you have lots of vrrp
>> addresses.
>
> Here is a patch for this (only slightly tested):
>
> http://marc.info/?l=linux-netdev&m=132369656811468&w=2
>
> It is targeted at the net-next branch and will not apply cleanly on a
> vanilla kernel: you just need to remove the check on inet->freebind
> which is not yet present in vanilla kernels.

Thanks! I'll have a look if I can get it working. Received on 2011/12/13 09:43

This archive was generated by hypermail 2.2.0 : 2011/12/13 10:00 CET