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

    pfblocker IP list bypass

    General pfSense Questions
    4
    20
    1.5k
    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.
    • provelsP
      provels @michmoor
      last edited by

      @michmoor
      Try this

      Peder

      MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
      BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

      M 1 Reply Last reply Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @provels
        last edited by

        @provels Im not using DNSBL. This is for IP

        1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @michmoor
          last edited by

          @michmoor said in pfblocker IP list bypass:

          My expectation is that I see it in the Floating Rules list. If i create a custom IPv4 list do i have to use it as an Alias?

          I've not actually tried that so don't know the answer. If you create your own rules using aliases you can order them as needed and create a rule above it to bypass the blocks, and not try to have pfB generate that allow rule. It's at least, one way to do it.

          Pre-2.7.2/23.09: 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 restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

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

            I assume you do see rules for the other 4 lists?

            M 1 Reply Last reply Reply Quote 0
            • M
              michmoor LAYER 8 Rebel Alliance @stephenw10
              last edited by

              @stephenw10 Yep. Those are there. Screen Cap of that.
              This is starting to look like a bug. The custom group just isnt being processed.

              ae7aab06-bfcd-45e1-a257-cd03c89b77f1-image.png

              Logs

              ===[  DNSBL Process  ]================================================
              
               Loading DNSBL Statistics... completed
               Loading DNSBL SafeSearch... disabled
               Loading DNSBL Whitelist... completed
              
              [ MPatrol ]			 exists. [ 06/15/23 17:23:25 ]
              [ PhishingArmy ]		 exists.
              [ OISD ]			 exists.
              [ URLhaus_Mal ]			 exists.
              [ CoinBlocker_All ]		 exists.
              [ Abuse_ThreatFox ]		 exists. [ 06/15/23 17:23:26 ]
              [ CustomBlockList_custom ]	 exists.
              
              ===[  GeoIP Process  ]============================================
              
              [ pfB_NAmerica_v4 ]		 exists. [ 06/15/23 17:23:28 ]
              
              ===[  IPv4 Process  ]=================================================
              
              [ Abuse_Feodo_C2_Agr_v4 ]	 exists.
              [ Abuse_SSLBL_Agr_v4 ]		 exists.
              [ CINS_army_v4 ]		 exists.
              [ ET_Block_v4 ]			 exists.
              [ ET_Comp_v4 ]			 exists.
              [ ISC_Block_v4 ]		 exists.
              [ Spamhaus_Drop_v4 ]		 exists.
              [ Spamhaus_eDrop_v4 ]		 exists.
              [ Talos_BL_v4 ]			 exists.
              [ BDS_TOR_v4 ]			 exists.
              [ DMe_TOR_All_v4 ]		 exists.
              [ ET_TOR_All_v4 ]		 exists.
              [ PROJECT_TOR_EN_v4 ]		 exists.
              [ Alienvault_v4 ]		 exists.
              [ AS714_v4 ]			 exists.
              [ AS15169_v4 ]			 exists.
              
              ===[  Aliastables / Rules  ]==========================================
              
              No changes to Firewall rules, skipping Filter Reload
              No Changes to Aliases, Skipping pfctl Update
              
              ===[  Kill States  ]==================================================
              
              No matching states found
              
              ======================================================================
              
               UPDATE PROCESS ENDED [ 06/15/23 17:23:30 ]
              
              M 1 Reply Last reply Reply Quote 0
              • M
                michmoor LAYER 8 Rebel Alliance @michmoor
                last edited by

                As a workaround for now I created a a floating rule and set it to the top. Then changed the rules processing order in pfblocker.
                Maybe its the better way to do it but the pfblockerNG is my preferred way of handling it but IPv4 custom rules set up like this doesnt work.

                Can anyone reproduce this on their end?

                d8c12ae1-b235-4878-80a6-e5c51f1d6a21-image.png

                caaa3f83-9615-4d4f-a440-c475152e78fb-image.png

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

                  If you set it as block in pfBlocker does the rule get created?

                  I don't see that custom list in the update logs...

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    michmoor LAYER 8 Rebel Alliance @stephenw10
                    last edited by

                    @stephenw10 It does not.

                    43cd3ed9-2a04-4d95-87e9-5ea9cd761805-image.png

                    debc8d39-0ef4-44d2-b696-7b7723f8fe9b-image.png

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

                      Ok, so it's probably not populating the list. Or it's not enabled or similar.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        michmoor LAYER 8 Rebel Alliance @stephenw10
                        last edited by

                        @stephenw10 Yeah for some reason it just doesnt see the custom group. I'll open a redmine

                        Also i do have an Ports Alias that i use in an Inbound Firewall rule in conjunction wtih GeoIP thats processed without issue.

                        1ec12502-0888-4b05-8e18-7f0e370ba1c4-image.png

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

                          This seems like it might just be the list isn't configured correctly. What is in that list apart from the custom firewall source?

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

                            Yes, in fact re-reading this it looks like you might have created an empty list and just added the alias the firewall rules section as a source to use?
                            That won't create any rules since nothing is actually listed.

                            You probably want to add the IPs directly in the 'IPv4 Custom_List' section.

                            M 1 Reply Last reply Reply Quote 1
                            • M
                              michmoor LAYER 8 Rebel Alliance @stephenw10
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • M
                                michmoor LAYER 8 Rebel Alliance @stephenw10
                                last edited by michmoor

                                @stephenw10 Ok I see what you mean now. My logic was faulty.
                                But when i add it to the custom IPv4 list those IPs show up as Destinations. I suppose setting it to Alias Native would work but anyway to have the IPs listed in my field set to source

                                EDIT: Figured it all out...
                                Going out for a drink. haha.
                                @stephenw10 @SteveITS Appreciate yall

                                EDIT2: For future me or anyone else who looks back at this.

                                1. Create the custom group with the IPv4 Custom_List IPs.
                                2. Set to Alias Permit
                                3. Under Floating Rules , create a Pass rule.
                                4. Set the Firewall Auto Rule Order to pfSense Pass...
                                5. Adjust accordingly.

                                My rule is at the top exactly where I needed it to be.

                                9a6ebcb0-2a76-4f91-8701-522ab73f25d5-image.png

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

                                  Yup, that's probably how you'd have to do it.

                                  My only concern there is that the pfBlocker auto-rules might get moved above that when they are reloaded. You should check that.

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    michmoor LAYER 8 Rebel Alliance @stephenw10
                                    last edited by

                                    @stephenw10 Still at the top of the rule set.

                                    I made sure to make the following change overnight.

                                    fc6d16b2-98c7-4fa1-8dab-36fd1a8f4ea0-image.png

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