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

    FreeBSD Bug 188261 - How to apply patch to pfSense

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 4 Posters 1.4k Views 5 Watching
    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.
    • DaddyGoD Offline
      DaddyGo @maverickws
      last edited by

      @maverickws said in FreeBSD Bug 188261 - How to apply patch to pfSense:

      I'll go to pfSense bug tracker

      pls. let me suggest his help as well @viktor_g

      Cats bury it so they can't see it!
      (You know what I mean if you have a cat)

      maverickwsM 1 Reply Last reply Reply Quote 0
      • maverickwsM Offline
        maverickws @DaddyGo
        last edited by

        @DaddyGo I've added here:
        https://redmine.pfsense.org/issues/10820

        Thanks!

        DaddyGoD 1 Reply Last reply Reply Quote 0
        • DaddyGoD Offline
          DaddyGo @maverickws
          last edited by

          @maverickws said in FreeBSD Bug 188261 - How to apply patch to pfSense:

          I've added here:

          nice..๐Ÿ˜‰
          You Welcome

          Cats bury it so they can't see it!
          (You know what I mean if you have a cat)

          maverickwsM 1 Reply Last reply Reply Quote 1
          • maverickwsM Offline
            maverickws @DaddyGo
            last edited by

            @DaddyGo Hi,
            I just wanted to post an update, after some tests I concluded that this issue was only happening when I was using Hetzner vSwitch, and after creating new network interfaces and assigning those the issue stopped. So it is not due to pfSense nor the virtualisation per se.
            Cheers

            DaddyGoD 1 Reply Last reply Reply Quote 0
            • DaddyGoD Offline
              DaddyGo @maverickws
              last edited by

              @maverickws said in FreeBSD Bug 188261 - How to apply patch to pfSense:

              Hetzner vSwitch

              In any case, it is definitely useful for lessons and information about Hetzner vSwitch vs. pfSense ๐Ÿ˜‰

              Cats bury it so they can't see it!
              (You know what I mean if you have a cat)

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

                Just for reference if you wanted to apply that patch (which you don't because it's ancient) you would need to do so against the pfSense source code and then build it. You can't apply it against an installed system, it's against C source code.
                https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_4_5/sys/netinet/ip_fastfwd.c

                Steve

                1 Reply Last reply Reply Quote 0
                • maverickwsM Offline
                  maverickws @DaddyGo
                  last edited by

                  @DaddyGo said in FreeBSD Bug 188261 - How to apply patch to pfSense:

                  In any case, it is definitely useful for lessons and information about Hetzner vSwitch vs. pfSense ๐Ÿ˜‰

                  Right. So here what happened was I had set the LAN interface to MTU 1400, but apparently that was not enough (at all!)

                  What I did next was to, in:
                  Services > DHCP Server

                  for each interface that was connected to Hetzner's vSwitch I have added to:

                  • Additional BOOTP/DHCP Options

                  Option Number: 26
                  Type: Unsigned 16 bit integer
                  Value: 1400

                  This fixed it, but afterwards I went to the interfaces and also added MSS 1400 (for target value 1360).

                  @stephenw10 said in FreeBSD Bug 188261 - How to apply patch to pfSense:

                  Just for reference if you wanted to apply that patch (which you don't because it's ancient) you would need to do so against the pfSense source code and then build it. You can't apply it against an installed system, it's against C source code.
                  https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_4_5/sys/netinet/ip_fastfwd.c

                  Steve

                  Yes I see that now. But actually it turned out to be good that wasn't easily patched as the solution was not related to that!!

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

                    Nice catch. That's an unfortunate situation if you really need to apply that to everything.

                    Is that workaround documented anywhere?

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • maverickwsM Offline
                      maverickws
                      last edited by maverickws

                      Hi Stephen, not that I know of.
                      Actually I busted my brains for three days trying to figure out the issue. As I was already looking to patch pfSense :D and all lol.

                      So basically here I had set the LAN/DMZ etc interface (the internal facing) to MTU 1400 on the interface configuration. I had assumed that by having the interface at 1400 mtu it would automatically set it to all the client interfaces but apparently not.

                      So after I added the additional dhcp options all started working just fine, but decided to configure MSS anyway after reading about.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        chrcoluk
                        last edited by

                        If you want this patch I think the best avenue is a ticket on redmine. If the pfSense developers agree, then they will patch themselves. Otherwise it is waiting until an eventual update which would use a patched version of FreeBSD

                        pfSense CE 2.8.0

                        DaddyGoD 1 Reply Last reply Reply Quote 0
                        • DaddyGoD Offline
                          DaddyGo @chrcoluk
                          last edited by

                          @chrcoluk said in FreeBSD Bug 188261 - How to apply patch to pfSense:

                          ticket on redmine

                          if you read, this has happened in the past ๐Ÿ˜‰

                          @maverickws " I've added here:
                          https://redmine.pfsense.org/issues/10820

                          Thanks!"

                          Cats bury it so they can't see it!
                          (You know what I mean if you have a cat)

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