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

    23.01 BETA and f/w rule duplication bug

    Scheduled Pinned Locked Moved Plus 23.01 Development Snapshots (Retired)
    16 Posts 5 Posters 1.6k 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.
    • Bob.DigB
      Bob.Dig LAYER 8 @lohphat
      last edited by Bob.Dig

      @lohphat said in 23.01 BETA and f/w rule duplication bug:

      type config.xml | findstr /c:"<tracker>"

      Thank you! I found 3 duplicates on one WG Interface, but I am on 22.05-RELEASE, so no wonder. "Fixed" it now.

      1 Reply Last reply Reply Quote 1
      • R
        rcoleman-netgate Netgate @lohphat
        last edited by

        @lohphat friends don't let friends run Windows. :)

        Ryan
        Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
        Requesting firmware for your Netgate device? https://go.netgate.com
        Switching: Mikrotik, Netgear, Extreme
        Wireless: Aruba, Ubiquiti

        lohphatL 1 Reply Last reply Reply Quote 0
        • R
          rcoleman-netgate Netgate @lohphat
          last edited by

          @lohphat said in 23.01 BETA and f/w rule duplication bug:

          I may have uncovered another bug.

          Check the redmines. Open one if they don't exist yet.

          https://redmine.pfsense.org/

          At this point I'm moving this thread into the DEVELOPMENT channel.

          Ryan
          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
          Requesting firmware for your Netgate device? https://go.netgate.com
          Switching: Mikrotik, Netgear, Extreme
          Wireless: Aruba, Ubiquiti

          lohphatL 1 Reply Last reply Reply Quote 1
          • R rcoleman-netgate moved this topic from Problems Installing or Upgrading pfSense Software on
          • lohphatL
            lohphat @rcoleman-netgate
            last edited by

            @rcoleman-netgate said in 23.01 BETA and f/w rule duplication bug:

            friends don't let friends run Windows. :)

            That's why I consider myself "bi-OS versatile".

            And yes, I've had all my shots.

            SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_5)

            1 Reply Last reply Reply Quote 1
            • lohphatL
              lohphat @rcoleman-netgate
              last edited by

              @rcoleman-netgate

              Bug Created #13829 "WG not removing interface rules from config even if "Keep Configuration" is unchecked before pkg removal"

              SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_5)

              1 Reply Last reply Reply Quote 2
              • Bob.DigB Bob.Dig referenced this topic on
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by stephenw10

                Hmm, I don't think that is a bug. At least not in that way. The config that is kept or not is the Wireguard config specifically not firewall rules on an interface that may have been assigned to the Wireguard tunnel at that time. I would not expect rules to be removed.

                Steve

                Edit: Pretty much what Jim said there. 😉

                lohphatL 1 Reply Last reply Reply Quote 0
                • lohphatL
                  lohphat @stephenw10
                  last edited by lohphat

                  @stephenw10

                  The bug is re-opened the bug as he agreed that the removal of the package also removes the interface from the GUI which prevents rules from being deleted afterwards. At least there should be a reminder in the WG settings to remind the user to remove any rules created before removing the package, or even an additional checkbox to "delete all WG i/f rules upon removal"

                  But there is a larger question that in these situations, there are times where config data gets orphaned and hidden in limbo which are related to a package. In theory, all config data should be accessible for edit/deletion via the GUI -- forcing a user to muck around with an XML file to delete orphaned rules and settings is asking for trouble.

                  SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_5)

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

                    You might argue that any config data that isn't exposed doesn't matter because it doesn't do anything on the firewall. Which appears to be the situation here.
                    What's potentially an issue is if/when you create and assign a new interface after removing the WG interface it can inherit the old rules. That wouldn't apply to WG group rules though.

                    lohphatL 1 Reply Last reply Reply Quote 0
                    • lohphatL
                      lohphat @stephenw10
                      last edited by

                      @stephenw10 said in 23.01 BETA and f/w rule duplication bug:

                      You might argue that any config data that isn't exposed doesn't matter because it doesn't do anything on the firewall.

                      Well that tingles my security Spidey Sense[tm] and not in a good way.

                      Having unused settings -- and potentially scripts -- hidden in a config file is an invitation for an attack vector.

                      My personal preference is that active config files only contain known settings and comments the admin desires to remain. Hiding or orphaning settings invites config file bloat over time and is fodder for misconfigurations or unintended behaviors.

                      The ability for a package to leave its config intact after package removal is really handy and needed as sometimes a package removal and reinstall in necessary. But other than that, e.g. if an interface is deleted any associated settings (like f/w rules) should also disappear since the i/f is now gone from the GUI.

                      SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_5)

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

                        Yup, that's not an unreasonable argument IMO.

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