Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    ipv6 broken: radvd: can't join ipv6-allrouters on <interface>

    Scheduled Pinned Locked Moved 2.5 Development Snapshots (Retired)
    144 Posts 15 Posters 60.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • w0wW
      w0w @maverick_slo
      last edited by

      @maverick_slo
      Generally not quite like that
      https://github.com/reubenhwk/radvd/graphs/contributors

      1 Reply Last reply Reply Quote 0
      • M
        maverick_slo
        last edited by

        Not quite that but still bad.
        Really bad.

        w0wW 1 Reply Last reply Reply Quote 0
        • w0wW
          w0w @maverick_slo
          last edited by

          @maverick_slo
          May be, but may be not, since we are not sure that it is not some configuration issue or not radvd issue at all.

          I am testing now latest snapshot with radvd workaround disabled, may be we have some improvements, also I've enabled this patch. 24H already tested, no problem, IPv6 works, previous ended ~6hours with IPv6 fail.

          1 Reply Last reply Reply Quote 0
          • w0wW
            w0w
            last edited by

            Failed again. Same can't join ipv6-allrouters on ix1

            1 Reply Last reply Reply Quote 0
            • kiokomanK
              kiokoman LAYER 8
              last edited by

              yeah, you were too optimistic 😂

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

              1 Reply Last reply Reply Quote 0
              • w0wW
                w0w
                last edited by

                What mode do everyone use as router mode with HE?
                Should it be "Assisted" for use with DHCPv6?

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @w0w
                  last edited by

                  Having squashed a regression to 6RD a few days ago (See #9649). At least for the first day, I thought my IPv6 problems were solved. No such luck, looks like I have joined this party now.

                  I first eliminated the log spamming "IPv6 forwarding" message. In the pfSense version "check_ipv6_iface_forwarding" is stubbed out, forcing the log spam. I removed the call and log message in interface.c (could have easily been changed to a dlog call instead on retrospect).

                  I begin to receive the "can't join ipv6-routers" message after about 24 hours. Hoping to capture the cause, I restarted radvd with debug level 4. When the "can't join" message begins to appear, a debug message that my interface, em0 in my case, "em0 is ready" stops. That suggests to me that radvd is failing in the call to "setup_allrouters_membership" code patch of device-bsd44.c in the calls to setsockopt. Not sure why this is occurring after 24 hours yet. will have to modify the patch code to get more debugging information.

                  w0wW 2 Replies Last reply Reply Quote 1
                  • kiokomanK
                    kiokoman LAYER 8
                    last edited by

                    welcome to the party ! i was unable to say hello earlier due to force majeure ...
                    20190917_221152.jpg

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                    1 Reply Last reply Reply Quote 0
                    • w0wW
                      w0w @A Former User
                      last edited by

                      @rschell
                      I see only one user-defined setting that is exactly 24H, it's
                      AdvValidLifetime 86400;
                      I don't think it's related, but...

                      1 Reply Last reply Reply Quote 0
                      • yon 0Y
                        yon 0
                        last edited by

                        this still not fixed.

                        w0wW 1 Reply Last reply Reply Quote 0
                        • w0wW
                          w0w @yon 0
                          last edited by

                          @yon-0
                          To be fixed, there must be someone who will fix. I see only @rschell going deeper so far.

                          yon 0Y kiokomanK 2 Replies Last reply Reply Quote 0
                          • yon 0Y
                            yon 0 @w0w
                            last edited by

                            @w0w I don't understand this technology, so I can only feedback the problem.☹

                            1 Reply Last reply Reply Quote 0
                            • kiokomanK
                              kiokoman LAYER 8 @w0w
                              last edited by

                              @w0w
                              not exactly as you can see here https://forum.netgate.com/post/847189
                              the test that rschell is doing as already been made by me at that time, there was nothing usefull to share, i found out the same.. you can prevent the log to appear but that would not solve the problem.

                              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                              Please do not use chat/PM to ask for help
                              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                              1 Reply Last reply Reply Quote 0
                              • w0wW
                                w0w @A Former User
                                last edited by

                                @kiokoman said in ipv6 broken: radvd: can't join ipv6-allrouters on <interface>:

                                @w0w
                                not exactly as you can see here https://forum.netgate.com/post/847189
                                the test that rschell is doing as already been made by me at that time, there was nothing usefull to share, i found out the same.. you can prevent the log to appear but that would not solve the problem.

                                So you think that debugging

                                @rschell said in ipv6 broken: radvd: can't join ipv6-allrouters on <interface>:
                                Not sure why this is occurring after 24 hours yet. will have to modify the patch code to get more debugging information.*

                                does not get us closer to the solution? You already did that with no luck?

                                1 Reply Last reply Reply Quote 0
                                • kiokomanK
                                  kiokoman LAYER 8
                                  last edited by kiokoman

                                  yes, i already did that with no luck but i'm no expert so maybe he have more luck/knowledge than me

                                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                  Please do not use chat/PM to ask for help
                                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @kiokoman
                                    last edited by A Former User

                                    I improved the logging in "setup_allrouters_membership" routine with:

                                    	/* XXX: See pfSense ticket #2878 */
                                    	if (setsockopt(sock, IPPROTO_IPV6, IPV6_LEAVE_GROUP, 
                                                           &mreq, sizeof(mreq)) < 0) {
                                                    dlog(LOG_ERR, 4, "can't leave ipv6-allrouters on %s, failed: %s(%d)", 
                                                           iface->props.name, strerror(errno), errno);
                                            }
                                    
                                    	if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
                                    			&mreq, sizeof(mreq)) < 0) {
                                    		flog(LOG_ERR, "can't join ipv6-allrouters on %s, failed: %s(%d)", 
                                                            iface->props.name, strerror(errno), errno);
                                    		return (-1);
                                    	}
                                    

                                    This code has been running for about 15 hours so far. The result of the first setdockopt call every radvd cycle is:

                                    "can't leave ipv6-allrouters on em0, failed: Can't assign requested address(49)"

                                    so I'm not sure what that call is trying to accomplish in Ticket #2878, but it doesn't appear to do/result in anything in version 12 of FreeBSD. Have to dig deeper in the kernel I'm afraid.

                                    The second setsockopt call hasn't produced an error yet, still 9 hours or so to go.

                                    1 Reply Last reply Reply Quote 0
                                    • kiokomanK
                                      kiokoman LAYER 8
                                      last edited by

                                      yeah i don't remember well but i think that the "address" in question was ff02::1 or something,
                                      you can easily find out if you read

                                      truss -p pidofradvd
                                      

                                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                      Please do not use chat/PM to ask for help
                                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                      ? 1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User @kiokoman
                                        last edited by A Former User

                                        The second setsockopt call error results in:

                                        "can't join ipv6-allrouters on em0, failed: Too many references: can't splice(59)"

                                        ? 1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User @A Former User
                                          last edited by

                                          Might focus some attention on was has changed in:

                                          sys/netinet6/in6_mcast.c

                                          with the error codes EADDRNOTAVAIL and ETOOMANYREFS

                                          1 Reply Last reply Reply Quote 0
                                          • kiokomanK
                                            kiokoman LAYER 8
                                            last edited by kiokoman

                                            my guess at that time was some kind of buffer overrun like it's opening sockets until there are so many that is unable to go on and it stop working and depending on the hardware it could happen after 4 / 8 / 24 hours

                                            setsockopt(4,IPPROTO_IPV6,IPV6_LEAVE_GROUP,0x7fffffffd3e0,20) ERR#49 'Can't assign requested address'
                                            setsockopt(4,IPPROTO_IPV6,IPV6_JOIN_GROUP,0x7fffffffd3e0,20) = 0 (0x0)
                                            

                                            it is joining but not leaving everytime

                                            this is from ip6 man page for freebsd:

                                            IPV6_LEAVE_GROUP struct ipv6_mreq *
                                            Drop membership from the associated multicast group. Memberships are automatically dropped when the socket is closed or when the process exits.

                                            this is what made me think that restart radvd would temporary solve the problem
                                            but i don't understand a damn about c/c++ or coding
                                            but again that could be completely unrelated

                                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                            Please do not use chat/PM to ask for help
                                            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.