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

    pfBlockerNG-devel 3.1.0_4 Not Blocking Email Content

    Scheduled Pinned Locked Moved pfBlockerNG
    11 Posts 4 Posters 1.2k 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.
    • N
      newUser2pfSense
      last edited by

      Hello! I hope everyone is doing well. I have pfBlockerNG-devel version 3.1.0_4 installed on my pfSense 22.05. I mostly do a quick check of my email using my iPhone. It was always nice seeing that content was being stripped out of advertising emails that I was receiving. A couple of days ago, I noticed that the advertising content was no longer being stripped out. I've been running this version of pfBlockerNG-devel for a while and I haven't changed anything. Has anyone seen this behavior before or have an idea of what might be occurring? Thanks.

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

        @newuser2pfsense

        A mail client can, when receiving a mail from an 'unknown' source, decide not to load any URLs listed in the mail. These are often images, and other content.
        Ones you've selected , Outlook (Office 365) shows this like this :

        26d85fc4-6a0e-4204-874a-30b2bfc529ec-image.png

        ( sorry, French, but you get the picture )

        Ones I click on that text, outlook reaches out to get all the non shown images and other content.
        Btw : this actions often confirms to the sending side you've 'seen' the mail.
        Sometimes a text is shown to 'trust' the host name, or just the mail address, and any further mails from them will get shown immediately and entirely.

        If the URLs used on the mail (they contain host names) and these are listed in a DNSBL, then the content can't be loaded by Outlook, (or a web browser, or whatever you use).

        You can see for yourself what happens :
        Look at the mail, not the one shown by your 'html' capable mail reader : look at the real mail as it is received. Also called "the source".
        There you will find the URLs that link to outside content.
        If these URL ( == their host names ) are in a DNSBL, then that info will never be shown, as the mail reader won't be able to read ( access ) that host.

        This implies of course that the mail reader should use the DNS by pfSense, so the resolver can do it work. The resolver will use the DNSBL lists, and return 0.0.0.0 ( or 10.10.10.1) if there is a match, so the content can't be loaded.

        There can also be a general mail reader setting that

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

        N 1 Reply Last reply Reply Quote 0
        • N
          newUser2pfSense @Gertjan
          last edited by newUser2pfSense

          @gertjan Thanks for the reply. I began seeing this issue when I was testing pfBlockerNG-devel. This is what I did -

          1. I began with pfBlockerNG-devel Enabled.
          2. I unchecked Enable and saved.
          3. I then checked Enable and saved.
          4. I restarted pfSense.
          5. The unbound DNS Resolver service would not start at all after several pfSense restarts.
          6. I had the following entries in the Services > DNS Resolver > General Settings > Custom options -
            log-replies: yes
            server:include: /var/unbound/pfb_dnsbl.*conf
          7. I deleted the following line -
            log-replies: yes
          8. I saved and then restarted pfSense.
          9. The unbound DNS Resolver service started and has stayed on ever since.

          I can't attribute the above steps to what I'm seeing but it's the only thing I did to pfSense before advertising email content stopped being stripped out.

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

            You don't need these :
            @newuser2pfsense said in pfBlockerNG-devel 3.1.0_4 Not Blocking Email Content:

            The unbound DNS Resolver service would not start at all after several pfSense restarts.

            and the error in the unbound / resolver log file said what ?

            @newuser2pfsense said in pfBlockerNG-devel 3.1.0_4 Not Blocking Email Content:

            I had the following entries in the Services > DNS Resolver > General Settings > Custom options -
            log-replies: yes
            server:include: /var/unbound/pfb_dnsbl.*conf

            For example, this : "server:include: /var/unbound/pfb_dnsbl.*conf" is needed if you manage you own DNSBL files called "pfb_dnsbl.*conf" in the folder /var/unbound/

            That was needed before, with the old version, a couple of years ago.

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

            N 1 Reply Last reply Reply Quote 0
            • provelsP
              provels
              last edited by

              Just throwing this out there, but could the phone be using DNS over HTTPS which is not blocked by pfB unless you're using a DoH blocklist?

              On the other hand, I have images that get blocked in Outlook emails even though I have WL'd the source... But that's something else.

              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)

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @provels
                last edited by

                @provels said in pfBlockerNG-devel 3.1.0_4 Not Blocking Email Content:

                but could the phone be using DNS over HTTPS

                yeah it sure could..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • provelsP
                  provels
                  last edited by provels

                  Linky => does iphone use dns over https

                  Etc. => DoH Blocklists

                  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)

                  1 Reply Last reply Reply Quote 0
                  • N
                    newUser2pfSense @Gertjan
                    last edited by

                    @gertjan I deleted the remaining following line from the Services > DNS Resolver > General Settings > Custom options -

                    server:include: /var/unbound/pfb_dnsbl.*conf

                    After deleting the above line, I saved and restarted pfSense with no issues. Guess what, I went back to see if Custom options was blank and it was not. That line reappeared automagically. I deleted the line again, saved, and restarted pfSense once more. The line reappeared automagically again. Apparently I cannot delete the line.

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

                      @newuser2pfsense said in pfBlockerNG-devel 3.1.0_4 Not Blocking Email Content:

                      pfb_dnsbl

                      Ok, I saw this also :

                      875c2a53-c3bb-4dc5-8837-9257b8c6b9ea-image.png

                      This gets added when you use the 'old' unbound mode :
                      08674281-59da-4b42-bd15-2d0da94a9b73-image.png

                      All dnsbl entries, like the feeds, are stored in these files :

                      2d80e040-a061-4b3c-804e-6c6fced838ed-image.png

                      so unbound reads all /var/unbound/pfb_dnsbl.*conf files upon start.

                      I wasn't seeing /var/unbound/pfb_dnsbl.*conf initially, as I do not use the "unbound mode" any more, the far superior (IMHO) "python mode" was made available when version 3.x came out.
                      Having unbound read in all the DNSBL info upon start is painfully slow. The authors of unbound recommend using this mode when huge file handling needs to take place.

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

                      1 Reply Last reply Reply Quote 0
                      • N
                        newUser2pfSense
                        last edited by

                        @Gertjan Thanks for that tidbit of info. I now set my DNSBL Mode to Unbound python mode. I'll see if this will strip out unwanted malvertising from my emails.

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          newUser2pfSense @newUser2pfSense
                          last edited by

                          @Gertjan The Unbound python mode seems to be working. It's definitely stripping content from advertising emails but not all. I'll take what I can get.

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