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

    Performance regression 2.7.2 to 2.8

    Scheduled Pinned Locked Moved General pfSense Questions
    57 Posts 5 Posters 3.8k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Setting MSS in the interface adds pf scrub rules for IPv4 and IPv6 at 40B and 60B below the value set respectively.

      Setting that on the 6RD tunnel would theoretically affect any IPv4 traffic but since it only carries IPv6 it doesn't matter. So you should just be able to set it there.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        If that works and it wasn't required in 2.7.2 then it confirms the regression and we'll dig deeper.

        1 Reply Last reply Reply Quote 0
        • fatheadF
          fathead
          last edited by

          @stephenw10
          MSS is set to 1472 on the only wan interface, the only other interface is the lan.
          interfaces.php?if=wan How does this not affect ipv4?
          ifconfig shows wan_stf with mtu1472
          How to check MSS or are the pf scrub rules in a file or only in running memory?
          Also does a doc exist on docs.netgate.com about ipv6 packet too big being a default pass rule, is creating a pass rule for this redundant?

          stephenw10S 1 Reply Last reply Reply Quote 0
          • fatheadF
            fathead
            last edited by fathead

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Ah, OK the 6RD tunnel is not exposed dircetly... Hmm. I don't use 6RD.

              So, yes, applying that on the WAN will affect IPv4 traffic. And more importantly may not apply it to traffic inside the 6RD tunnel. Setting it on LAN would though.

              The actual value required may vary but in the one other case I've seen it was 1472.

              We are digging into this....

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator @fathead
                last edited by

                @fathead said in Performance regression 2.7.2 to 2.8:

                How to check MSS or are the pf scrub rules in a file or only in running memory?

                Look at the ruleset file: /tmp/rules.debug

                fatheadF 1 Reply Last reply Reply Quote 0
                • fatheadF
                  fathead @stephenw10
                  last edited by

                  @stephenw10 Thank you!
                  Looks like it affects both.
                  before:
                  scrub on $WAN inet all max-mss 1452 fragment reassemble
                  scrub on $WAN_STF inet6 all max-mss 1432 fragment reassemble
                  after setting MSS:
                  scrub on $WAN inet all max-mss 1432 fragment reassemble
                  scrub on $WAN_STF inet6 all max-mss 1412 fragment reassemble
                  What file creates the scrubs that are applied?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Oh, OK. That looks correct then. Except it's not including the 6RD overhead. What we want to see there is:

                    scrub on $WAN inet all max-mss 1452 fragment reassemble
                    scrub on $WAN_STF inet6 all max-mss 1412 fragment reassemble
                    

                    Yeah OK let me dig into this. It's likely a simple patch....

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Can you test a patch?

                      mr1226.diff

                      That should allow if_pppoe to work as expected. mpd5/netgraph is a different matter!

                      fatheadF 1 Reply Last reply Reply Quote 0
                      • fatheadF
                        fathead @stephenw10
                        last edited by

                        @stephenw10 Thanks for the reply!
                        That worked instantly.

                        scrub on $WAN inet all   max-mss 1452 fragment reassemble
                        scrub on $WAN_STF inet6 all   max-mss 1412 fragment reassemble
                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Nice 👍

                          And traffic passing as expected?

                          I imagine one of our devs might have a better patch than that but it proves the issue.

                          fatheadF 1 Reply Last reply Reply Quote 0
                          • fatheadF
                            fathead @stephenw10
                            last edited by

                            @stephenw10
                            99% of FIN_WAIT_2 are gone.
                            WAN side seems OK.
                            LAN side inconsistently get NO_TRAFFIC:NO_TRAFFIC with 64:ff9b::7f00:1

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Hmm, that could be nothing if you're not seeing connection issues at the clients.

                              You could try setting a slightly lower MSS value and see if it changes anything.

                              fatheadF 1 Reply Last reply Reply Quote 0
                              • fatheadF
                                fathead @stephenw10
                                last edited by

                                ping6 -s56 64:ff9b::7f00:1
                                ping6 -s32 64:ff9b::7f00:1
                                Sometimes works, sometimes does not.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Hmm, just with different ping sizes?

                                  MSS has no effect on pings, only TCP. So nothing should have changed there.

                                  fatheadF 1 Reply Last reply Reply Quote 0
                                  • fatheadF
                                    fathead @stephenw10
                                    last edited by

                                    @stephenw10
                                    ping6 from lan side to pfSense it self and lan to lan.
                                    I have only tested with small packets, however so far size does not matter.

                                    Both fail sometimes:
                                    ping6 -s56 64:ff9b::7f00:1
                                    ping6 -s32 64:ff9b::7f00:1
                                    Even the default address of 64:ff9b::c0a8:101 sometimes fails.
                                    What I do not understand is why it comes and goes.
                                    setting lan side mtu/mss to 1.4k, 1.5k or 9k changes nothing.

                                    stephenw10S 1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator @fathead
                                      last edited by

                                      @fathead said in Performance regression 2.7.2 to 2.8:

                                      ping6 from lan side to pfSense it self and lan to lan.

                                      Hmm, well that would have nothing to do with the pppoe change on WAN. Something local blocking traffic?

                                      fatheadF 1 Reply Last reply Reply Quote 0
                                      • fatheadF
                                        fathead @stephenw10
                                        last edited by

                                        @stephenw10 Only package installed is System_Patches for that one patch and all lan firewall rules are pass except port 53.

                                        1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by

                                          And you only see this for ping6? Internal IPv4 traffic is unaffected?

                                          firstofnineF fatheadF 2 Replies Last reply Reply Quote 0
                                          • firstofnineF
                                            firstofnine @stephenw10
                                            last edited by

                                            I was having this issue as well and can confirm the diff has solved my 6rd issues in 2.8.0

                                            If you'd like I have a pcap from when I was having issues I can provide.

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