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

    Alias edits causing firewall rule black holes

    Scheduled Pinned Locked Moved Firewalling
    11 Posts 4 Posters 891 Views 3 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.
    • S Offline
      SteveITS Rebel Alliance @Dakpan
      last edited by

      @Dakpan I assume you're applying after the alias change.

      Check:
      Diagnostics > Tables of the alias (before and after removing the IP?)
      Diagnostics > Filter Reload for errors

      Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
      Upvote ๐Ÿ‘ helpful posts!

      D 2 Replies Last reply Reply Quote 0
      • patient0P Online
        patient0 @Dakpan
        last edited by

        @Dakpan what pfSense version are you using? No floating rules in play this time ;)?

        Btw, referring to another thread from you back in July: floating rules are evaluated before interface rules pfSense documentation: Rules Processing Order

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          Dakpan @patient0
          last edited by Dakpan

          @patient0 I remember very well, thats why I started the Setup simplified with "I have no floating rules" ;)
          The box having the issue is a 2.7.2 Release

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dakpan @SteveITS
            last edited by Dakpan

            @SteveITS you might be on to something here. The filter reload states no errors, but it stops at:
            Pre-caching BLOCK ANY

            While when I reload the filter on any other PF box, it ends with:
            Running plugins
            Done

            I'll try to find out what there is about this rule first and keep you posted.
            And to be complete: The tables act as expected before and after removal.

            GertjanG 1 Reply Last reply Reply Quote 0
            • D Offline
              Dakpan @SteveITS
              last edited by

              @SteveITS lets post the first addon right away:

              The Filter Reload page stopped on a rule with this value in the description:
              BLOCK ANY | No internet via this device

              Apparently the refresh script crashed on the pipe character, I renamed the description to:
              BLOCK ANY - No internet via this device and the Filter Reload page reached the end line Done

              For now it is to soon to tell if this character messed up the filter or just the Filter Reload output.

              To be continued...

              S D 2 Replies Last reply Reply Quote 0
              • S Offline
                SteveITS Rebel Alliance @Dakpan
                last edited by

                @Dakpan is the IP in the table, though?

                Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                Upvote ๐Ÿ‘ helpful posts!

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  Dakpan @SteveITS
                  last edited by

                  @SteveITS yes when I add a subnet to the alias it appears in the table, when I remove the subnet from the alias it disappears in the table. So that works as expected.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dakpan @Dakpan
                    last edited by

                    said in Alias edits causing firewall rule black holes:

                    @SteveITS lets post the first addon right away:

                    The Filter Reload page stopped on a rule with this value in the description:
                    BLOCK ANY | No internet via this device

                    Apparently the refresh script crashed on the pipe character, I renamed the description to:
                    BLOCK ANY - No internet via this device and the Filter Reload page reached the end line Done

                    For now it is to soon to tell if this character messed up the filter or just the Filter Reload output.

                    To be continued...

                    No difference, client still unable to mail. I'll start by setting up a test lab in front of the PF so I can impersonate his public IP...

                    1 Reply Last reply Reply Quote 0
                    • GertjanG Offline
                      Gertjan @Dakpan
                      last edited by Gertjan

                      @Dakpan said in Alias edits causing firewall rule black holes:

                      but it stops at:
                      Pre-caching BLOCK ANY

                      I see a lot of these Pre-caching

                      eac9110c-b4fb-4bd8-b599-4a27f7eecd62-image.png

                      If your reload stops (breaks ?) at the first then changes are great that the firewall get only partially reloaded ... and that would explain strange filter results (is think I would call this a critical salutation I guess).

                      That said, I 'Filter reload' yesterday and didn't saw any "Pre-caching ...".

                      My thoughts : you have firewall rule that 'breaks' things ?

                      Btw : while I could find :

                      d8ba3f12-d107-41c3-a23b-5a5838925783-image.png

                      in my /etc/inc/filter.inc (I'm using 25.07.1)

                      If you have an issue, it happens around that place.

                      The same file on github :
                      pfsense/src/etc/inc/filter.inc

                      is way different ?!?!! (a lot of work in progress)

                      The github == the source, has ... a lot of recent modifications in it ... ๐Ÿ˜Š

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

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        Dakpan @Gertjan
                        last edited by Dakpan

                        @Gertjan if I run this little bit of php:

                        $file = 'test.txt';
                        file_put_contents($file, "BLOCK ANY | No internet via this device". PHP_EOL, FILE_APPEND);

                        The piped text is appended just fine to my testfile, so I think the script crash is more related to the code printing the contents of the filter_reload_status file.

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