Mailing List Archive

[lvs-users] Problem with ipvs and IPv6
Hi,

when I create a loadbalancer with the following rules:

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP [2001:db8::1]:smtp wlc
-> [2001:db8::4d82]:smtp Route 1 0 0

and telnet to that address:25 that I see that the SYN packet receives the
director and then the director starts to send out ICMPv6 neigh solicit for its
virtual address:

11:37:16.920154 IP6 2001:db8:ff00:33f::2.49931 > 2001:db8::1.25: Flags [S],
seq 1035995206, win 4880, options [mss 1220,sackOK,TS val 2256545946 ecr
0,nop,wscale 7], length 0
11:37:16.920252 IP6 fe80::21d:9ff:fe6d:3501 > ff02::1:ff00:1: ICMP6, neighbor
solicitation, who has 2001:db8::1, length 32

Any ideas what might be wrong?

Kernel: 3.10.1

--
Mit freundlichen Grüßen,

Michael Schwartzkopff

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
Re: [lvs-users] Problem with ipvs and IPv6 [ In reply to ]
Michael,

Try 3.10.18+ Kernels - some weird and nasty ipv6 bugs are in earlier ones....
I can't remember the specifics.



On 29 November 2013 10:49, Michael Schwartzkopff <ms@sys4.de> wrote:
> Hi,
>
> when I create a loadbalancer with the following rules:
>
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP [2001:db8::1]:smtp wlc
> -> [2001:db8::4d82]:smtp Route 1 0 0
>
> and telnet to that address:25 that I see that the SYN packet receives the
> director and then the director starts to send out ICMPv6 neigh solicit for its
> virtual address:
>
> 11:37:16.920154 IP6 2001:db8:ff00:33f::2.49931 > 2001:db8::1.25: Flags [S],
> seq 1035995206, win 4880, options [mss 1220,sackOK,TS val 2256545946 ecr
> 0,nop,wscale 7], length 0
> 11:37:16.920252 IP6 fe80::21d:9ff:fe6d:3501 > ff02::1:ff00:1: ICMP6, neighbor
> solicitation, who has 2001:db8::1, length 32
>
> Any ideas what might be wrong?
>
> Kernel: 3.10.1
>
> --
> Mit freundlichen Grüßen,
>
> Michael Schwartzkopff
>
> --
> [*] sys4 AG
>
> http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
> Franziskanerstraße 15, 81669 München
>
> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
> Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
> Aufsichtsratsvorsitzender: Florian Kirstein
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users



--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] Problem with ipvs and IPv6 [ In reply to ]
Hello,

On Fri, 29 Nov 2013, Michael Schwartzkopff wrote:

> Hi,
>
> when I create a loadbalancer with the following rules:
>
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP [2001:db8::1]:smtp wlc
> -> [2001:db8::4d82]:smtp Route 1 0 0
>
> and telnet to that address:25 that I see that the SYN packet receives the
> director and then the director starts to send out ICMPv6 neigh solicit for its
> virtual address:
>
> 11:37:16.920154 IP6 2001:db8:ff00:33f::2.49931 > 2001:db8::1.25: Flags [S],
> seq 1035995206, win 4880, options [mss 1220,sackOK,TS val 2256545946 ecr
> 0,nop,wscale 7], length 0
> 11:37:16.920252 IP6 fe80::21d:9ff:fe6d:3501 > ff02::1:ff00:1: ICMP6, neighbor
> solicitation, who has 2001:db8::1, length 32
>
> Any ideas what might be wrong?
>
> Kernel: 3.10.1

There are 1-2 commits that fix this problem in IPV6
but as the fixes are not part of the IPVS files I'm not sure
which stable kernels include them. You need at least this fix:

commit 96dc809514fb2328605198a0602b67554d8cce7b
Date: Sun Oct 20 15:43:03 2013 +0300
ipv6: always prefer rt6i_gateway if present

Look for changes in include/net/ip6_route.h,
rt6_nexthop().

Regards

--
Julian Anastasov <ja@ssi.bg>

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users