ipv6: allow nonlocal_bind for ipv6 addresses
Timh B
timh at shiwebs.net
Wed Jun 26 08:47:02 UTC 2013
Hi,
We've encountered a problem when migrating services that uses vrrpd (for
example) to IPv6 (dualstack), a nonlocal_bind problem to be exact, for
IPv4 there's a sysctl-setting that allows us to bind to addresses that are
not configured on the host directly.
I'm aware that there's freebind and ip_transparent options to setsockopt()
but changing all the services's code would have been a larger task than
implementing the nonlocal_bind option for IPv6 in the kenrel.
The patch is done for kernel 3.5, so for 3.2 (Ubuntu 12.04 LTS) the patch
from Maciej Żenczykowski has to be applied first;
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/net/ipv6/af_inet6.c?id=f74024d9f05caa570dcf7582b498bbf011943491
My patch is attached.
Usage: sysctl -w net.ipv6.ip6_nonlocal_bind=1
-- Timh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-UBUNTU-SAUCE-Added-ip_nonlocal_bind-functionality-fo.patch
Type: text/x-patch
Size: 4789 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20130626/5e7626c5/attachment.bin>
More information about the kernel-team
mailing list