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

    PfBlockerNG 2.0 DNSBL Log Browser

    pfBlockerNG
    5
    16
    6.2k
    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.
    • H
      hda
      last edited by

      On an Alix & 2.2.5 & (ro).
      I requested pfBlockerNG: Log Browser then Log Files | dnsbl.log | clear current logfile.

      After wait a minute server GUI "the connection was reset" for page: http://myaddress/pfblockerng/pfblockerng_log.php
      On return still dnsbl.log filled, not empty.

      So I stopped the DNSBL webserver as a service (Dashboard Services Status). Makes no difference.
      Then I set nanoBSD to (rw). Makes no difference.

      Why is the dnsbl.log file not emptied ?
      N.B. clearing for example pfblockerng.log is no problem…

      1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator
        last edited by

        Hi hda,

        Can you edit the file below and see if you can delete the dnsbl.log file with this change?

        /usr/local/pkg/pfblockerng/pfblockerng.inc    LINE 1707

        Original:  @file_put_contents($pfb['dnslog'], $log, FILE_APPEND | LOCK_EX);
        New    :  @file_put_contents($pfb['dnslog'], $log, FILE_APPEND);

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • H
          hda
          last edited by

          @BBcan177:

          Can you edit the file below and see if you can delete the dnsbl.log file with this change?
          …

          Yes I did and No, the removal of OR LOCK_EX does not make the difference…

          And what maybe a hint: Log Browser then Log Files | dnsbl.log | download current logfile button does not react either.

          1 Reply Last reply Reply Quote 0
          • BBcan177B
            BBcan177 Moderator
            last edited by

            What browser are you using? Do you have any Browser add-ons? Can you try in a different browser or use incognito mode?

            "Experience is something you don't get until just after you need it."

            Website: http://pfBlockerNG.com
            Twitter: @BBcan177  #pfBlockerNG
            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

            1 Reply Last reply Reply Quote 0
            • H
              hda
              last edited by

              FF 42, disabled add-on's (no-script, adblock).
              And, but with pfblockerng.log and the downloadbutton returns the Open|Save dialog OK, so… browser ?

              Seamonkey 2.39 same results.

              1 Reply Last reply Reply Quote 0
              • F
                fraglord
                last edited by

                Also not possible to delete the dnsbl.log.
                Using latest version of chrome.

                pfSense 2.4.0 (amd64) running on IGEL H710C | 1G RAM | 8G SSD | INTEL PRO/1000 PT Dual NIC

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

                  I tested on 2 boxes and no problems to clear any log file from pfblockerNG log menu.

                  1 Reply Last reply Reply Quote 0
                  • H
                    hda
                    last edited by

                    @n3by:

                    I tested on 2 boxes and no problems to clear any log file from pfblockerNG log menu.

                    And any env. data about your hardware(what), software(pfSense version), browser(brand), code correction(Y/N) ?

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by

                      As noted on the wiki - keep the damned thing mounted RW all time if you are nanobsd with CF.

                      1 Reply Last reply Reply Quote 0
                      • H
                        hda
                        last edited by

                        I decided to clear package out and install it again. So it resolved itself….

                        I suspect a file crosslink corruption on the first two installs with this cache issues BBcan177 mentioned in the other thread OR nanoBSD(ro). And all went with nanoBSD(ro) this time, but doktornotor you have a point there case (rw). Damned. It's a test what else ;)

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned
                          last edited by

                          Sadly, since 2.2.3, the read-only feature with a normal use case (CF or SD card) is just not usable. Could be removed altogether if you ask me, with the benefit of simplifying the code in a bunch of places. Having it enabled by default on nanobsd just makes for a crappy experience for a lot of unsuspecting users. UFS performance is completely abysmal with these kinds of devices.

                          1 Reply Last reply Reply Quote 0
                          • H
                            hda
                            last edited by

                            This is becoming a PITA.
                            Behaviour is back. It ran for 3 hours again a new fresh install of 2.0 on nanoBSD 2.2.5(rw) and just tested I can not empty || download dnsbl.log, when just after install it could do it… only once ?

                            It is for the file dnsbl.log, not the others. Any suggestions ?

                            1 Reply Last reply Reply Quote 0
                            • D
                              doktornotor Banned
                              last edited by

                              I for one cannot see what's your constant need for removing the log.

                              1 Reply Last reply Reply Quote 0
                              • H
                                hda
                                last edited by

                                @doktornotor:

                                I for one cannot see what's your constant need for removing the log.

                                Well, it's building up with 500KB/day and the /var in RAM is 65% of 58MB, so I wanted to test if I could flush it. Then I ran into this phenomenon.

                                Do you happen to know where the code starts, the filename, for the buttons in the log browser?

                                1 Reply Last reply Reply Quote 0
                                • D
                                  doktornotor Banned
                                  last edited by

                                  hda: There's a setting to limit the number of lines in the log file on the General tab. So, it won't really keep growing beyond that. Plus, babysitting the thing ain't useful way to keep the size limited either. The logs are in /var/log/pfblockerng directory. If the setting above-mentoned setting doesn't work for you, it should be fixed there, instead of deleting it manually.

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    hda
                                    last edited by

                                    @doktornotor:

                                    There's a setting to limit the number of lines in the log file on the General tab…

                                    Ah thanks, I overlooked the variable. That 20000 will be about 5MB and 10% /var increase and then no problem for me. I'll check if/how it pans out.

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