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

    Do the default RA's need tweaking.

    Scheduled Pinned Locked Moved IPv6
    27 Posts 10 Posters 6.3k 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.
    • RobbieTTR
      RobbieTT @pst
      last edited by RobbieTT

      @pst said in Do the default RA's need tweaking.:

      @RobbieTT If I understand the problem correctly, the configuration that pfSense generates is correct according to RFC 8106 but RADVD which is part of FreeBSD only complies with RFC 6106. The change should therefore be made in FreeBSD as it not a "pfSense issue" as such.

      I'm not versed in the ins and outs of pfSense vs FreeBSD vs Netgate's upstream revisions of FreeBSD. It is way-over my head.

      [edit:] FreeBSD 14 and current pfSense use radvd v2.19 (ie the latest) so it should be fully compliant with the later RFC.

      The warning though was triggered by a pfSense change, albeit with a laudable aim, as referenced earlier.

      โ˜•๏ธ

      P 1 Reply Last reply Reply Quote 0
      • P
        pst @RobbieTT
        last edited by

        @RobbieTT said in Do the default RA's need tweaking.:

        [edit:] FreeBSD 14 and current pfSense use radvd v2.19 (ie the latest) so it should be fully compliant with the later RFC.

        One could only wish that was the case, but checking the source code and change log (https://radvd.litech.org/) there is no mention of RFC 8106. Implementation of other RFCs are mentioned though.

        The configuration parser is written in YACC but quite easy to understand (radvd-2.19/gram.y):

        | T_AdvRDNSSLifetime number_or_infinity ';'
                        {
                                if ($2 > 2*(iface->MaxRtrAdvInterval))
                                        flog(LOG_WARNING, "warning: AdvRDNSSLifetime <= 2*MaxRtrAdvInterval would allow stale DNS servers to be d
        eleted faster");
                                if ($2 < iface->MaxRtrAdvInterval && $2 != 0) {
                                        flog(LOG_ERR, "AdvRDNSSLifetime must be at least MaxRtrAdvInterval");
                                        rdnss->AdvRDNSSLifetime = iface->MaxRtrAdvInterval;
                                } else {
                                        rdnss->AdvRDNSSLifetime = $2;
                                }
                                if ($2 > 2*(iface->MaxRtrAdvInterval))
                                        flog(LOG_WARNING, "warning: (%s:%d) AdvRDNSSLifetime <= 2*MaxRtrAdvInterval would allow stale DNS servers to be deleted faster", filename, num_lines);
        
                                rdnss->AdvRDNSSLifetime = $2;
                        }
        

        As you can see, the warnings that we get are only FYI as no change of the specified values take place. The non-compliance in the current software version (2.19) with RFC 8106 would be if AdvRDNSSLifetime is < MaxRtrAdvInterval which is rejected but should be allowed according to RFC 8106.

        I agree that the warning was triggered by the pfSense change but the alignment with RFC 8106 should be made in RADVD (IMHO).

        RobbieTTR 1 Reply Last reply Reply Quote 0
        • RobbieTTR
          RobbieTT @pst
          last edited by RobbieTT

          @pst The default and example configuration file in v2.19 use the later x3 standard. The example text included with pfSense also uses the factor 10 sec x 3 = 30 seconds.

          Joined-up, it is not.

          โ˜•๏ธ

          P 1 Reply Last reply Reply Quote 0
          • P
            pst @RobbieTT
            last edited by

            @RobbieTT There has been a change submitted to RADVD which align it to RFC8106:

            https://github.com/radvd-project/radvd/commit/17c43bff200bbc1d4786eb917860a79db4f95c2e

            Hopefully that will trickle through the system and end up in a pfSense release, at some point.

            RobbieTTR 1 Reply Last reply Reply Quote 0
            • RobbieTTR
              RobbieTT @pst
              last edited by RobbieTT

              @pst said in Do the default RA's need tweaking.:

              @RobbieTT There has been a change submitted to RADVD which align it to RFC8106:

              Thanks for that, very helpful. ๐Ÿ‘

              It shows as a committ and the issue marked as closed over 2 years ago. Do we know where the air gap is between the issue being resolved and where we are now with pfSense?

              [To me it looks like radvd itself has not been touched in over 2 years, suggesting that this package is not being maintained.]

              โ˜•๏ธ

              P 1 Reply Last reply Reply Quote 0
              • P
                pst @RobbieTT
                last edited by

                @RobbieTT No decision about a RADVD 2.20 release has been made yet (as of this post's date anyway), but voices has been raised:

                https://github.com/radvd-project/radvd/issues/185

                I don't know how long it will take after the 2.20 release before it ends up in pfSense as it needs to be integrated into FreeBSD first (I guess).

                RobbieTTR 1 Reply Last reply Reply Quote 1
                • RobbieTTR
                  RobbieTT @pst
                  last edited by

                  @pst Not looking good - the last question on 2.20 is asking if downstream users are now expected to build from git, rather than a [2.20] tagged release.

                  That was in January 2023.

                  Indeed, there have been no releases since the original package maintainer retired in Jan 2021.

                  โ˜•๏ธ

                  bearhntrB 1 Reply Last reply Reply Quote 1
                  • bearhntrB
                    bearhntr @RobbieTT
                    last edited by

                    @RobbieTT

                    Is there a way to fix this? Is there a set of instructions on fixing it? I am not super-Linux proficient, simple-is as simple-does. ๐Ÿ˜Š

                    I just going through some of these logs on my pfSense+ 23.05.1-RELEASE (amd64) - Just installed the latest this AM.

                    I am one of those who hates seeing errors and warnings. <grin>

                    RobbieTTR 1 Reply Last reply Reply Quote 0
                    • RobbieTTR
                      RobbieTT @bearhntr
                      last edited by

                      @bearhntr
                      I've no idea, sorry!

                      โ˜•๏ธ

                      JonathanLeeJ 1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee @RobbieTT
                        last edited by

                        @RobbieTT can I apply this patch in 23.05.01 ?https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/54b3109f0b1978e22866117b6d93715eb8d78c29

                        Make sure to upvote

                        GertjanG RobbieTTR 2 Replies Last reply Reply Quote 0
                        • JonathanLeeJ JonathanLee referenced this topic
                        • GertjanG
                          Gertjan @JonathanLee
                          last edited by Gertjan

                          @JonathanLee said in Do the default RA's need tweaking.:

                          https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/54b3109f0b1978e22866117b6d93715eb8d78c29

                          =>

                          e1e7fd8e-16f1-4d62-8016-3063e99a0a42-image.png

                          taht patch was applied more then 4 years !?

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          1 Reply Last reply Reply Quote 0
                          • RobbieTTR
                            RobbieTT @JonathanLee
                            last edited by

                            @JonathanLee said in Do the default RA's need tweaking.:

                            @RobbieTT can I apply this patch in 23.05.01 ?https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/54b3109f0b1978e22866117b6d93715eb8d78c29

                            Presumably not but there will be some RA tweaks in 25.07, which is not that far away from release.

                            โ˜•๏ธ

                            bearhntrB 1 Reply Last reply Reply Quote 1
                            • bearhntrB
                              bearhntr @RobbieTT
                              last edited by

                              @RobbieTT

                              What about in this version?

                              0258b777-8f53-4d7c-b490-8b57d6955097-image.png

                              RobbieTTR 1 Reply Last reply Reply Quote 0
                              • RobbieTTR
                                RobbieTT @bearhntr
                                last edited by

                                @bearhntr

                                I would presume not, at least not yet.

                                โ˜•๏ธ

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