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

    pfblocker IP list bypass

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 4 Posters 1.5k 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.
    • 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.