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

    pfblockerng crash report

    Scheduled Pinned Locked Moved pfBlockerNG
    14 Posts 6 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.
    • chudakC
      chudak
      last edited by

      After update today started seeing crashes like this below.

      Crash report begins.  Anonymous machine information:
      
      amd64
      12.2-STABLE
      FreeBSD 12.2-STABLE d48fb226319(devel-12) pfSense
      
      Crash report details:
      
      PHP Errors:
      [01-Mar-2021 15:25:50 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
      Stack trace:
      #0 /etc/inc/util.inc(657): is_ipaddrv6('common.duapps.c...')
      #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('common.duapps.c...')
      #2 {main}
        thrown in /etc/inc/util.inc on line 680
      
      
      No FreeBSD crash data found.
      

      Any clues WTH ?

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

        @chudak said in pfblockerng crash report:

        No FreeBSD crash data found.

        Edit the following file:
        /usr/local/www/pfblockerng/www/index.php

        Line #57

        Reference:
        https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-pfBlockerNG-devel/files/usr/local/www/pfblockerng/www/index.php#L57

        From:

        if ($i == 0) {
        

        To:

        if ($i == 9) {
        

        I am working to find the cause.

        "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/

        chudakC A 2 Replies Last reply Reply Quote 2
        • chudakC
          chudak @BBcan177
          last edited by

          @bbcan177

          Not sure if you need more logs...

          
          Crash report begins.  Anonymous machine information:
          
          amd64
          12.2-STABLE
          FreeBSD 12.2-STABLE d48fb226319(devel-12) pfSense
          
          Crash report details:
          
          PHP Errors:
          [01-Mar-2021 17:19:51 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
          Stack trace:
          #0 /etc/inc/util.inc(657): is_ipaddrv6('storrent.top')
          #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('storrent.top')
          #2 {main}
            thrown in /etc/inc/util.inc on line 680
          [01-Mar-2021 17:19:52 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
          Stack trace:
          #0 /etc/inc/util.inc(657): is_ipaddrv6('storrent.top')
          #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('storrent.top')
          #2 {main}
            thrown in /etc/inc/util.inc on line 680
          [01-Mar-2021 17:19:52 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
          Stack trace:
          #0 /etc/inc/util.inc(657): is_ipaddrv6('storrent.top')
          #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('storrent.top')
          #2 {main}
            thrown in /etc/inc/util.inc on line 680
          [01-Mar-2021 17:19:52 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
          Stack trace:
          #0 /etc/inc/util.inc(657): is_ipaddrv6('storrent.top')
          #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('storrent.top')
          #2 {main}
            thrown in /etc/inc/util.inc on line 680
          [01-Mar-2021 17:19:52 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
          Stack trace:
          #0 /etc/inc/util.inc(657): is_ipaddrv6('counter.yadro.r...')
          #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('counter.yadro.r...')
          #2 {main}
            thrown in /etc/inc/util.inc on line 680
          [01-Mar-2021 17:20:07 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
          Stack trace:
          #0 /etc/inc/util.inc(657): is_ipaddrv6('franecki.net')
          #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('franecki.net')
          #2 {main}
            thrown in /etc/inc/util.inc on line 680
          
          
          
          No FreeBSD crash data found.
          			
          
          
          1 Reply Last reply Reply Quote 0
          • A
            Andrew453 @BBcan177
            last edited by

            @bbcan177 I'm getting what looks to be a very similar error.

            Crash report begins.  Anonymous machine information:
            
            amd64
            12.2-STABLE
            FreeBSD 12.2-STABLE d48fb226319(devel-12) pfSense
            
            Crash report details:
            
            PHP Errors:
            [02-Mar-2021 06:25:05 Europe/London] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
            Stack trace:
            #0 /etc/inc/util.inc(657): is_ipaddrv6('pad-v3.presage....')
            #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('pad-v3.presage....')
            #2 {main}
              thrown in /etc/inc/util.inc on line 680
            [02-Mar-2021 06:41:01 Europe/London] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
            Stack trace:
            #0 /etc/inc/util.inc(657): is_ipaddrv6('pad-v3.presage....')
            #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('pad-v3.presage....')
            #2 {main}
              thrown in /etc/inc/util.inc on line 680
            
            
            
            No FreeBSD crash data found.
            

            I'm not sure if it's related but I also lose DNS after the update. To restore it I have to release and renew the WAN DHCP.

            Thanks for all your work on pfBlockerNG.

            Andrew

            1 Reply Last reply Reply Quote 0
            • Bob.DigB
              Bob.Dig LAYER 8
              last edited by Bob.Dig

              Me, too...

              Crash report begins.  Anonymous machine information:
              
              amd64
              12.2-STABLE
              FreeBSD 12.2-STABLE d48fb226319(devel-12) pfSense
              
              Crash report details:
              
              PHP Errors:
              [02-Mar-2021 11:01:17 Europe/Berlin] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
              Stack trace:
              #0 /etc/inc/util.inc(657): is_ipaddrv6('i.mxplayer.j2in...')
              #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('i.mxplayer.j2in...')
              #2 {main}
                thrown in /etc/inc/util.inc on line 680
              [02-Mar-2021 11:11:18 Europe/Berlin] PHP Fatal error:  Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
              Stack trace:
              #0 /etc/inc/util.inc(657): is_ipaddrv6('i.mxplayer.j2in...')
              #1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('i.mxplayer.j2in...')
              #2 {main}
                thrown in /etc/inc/util.inc on line 680
              
              
              
              No FreeBSD crash data found.
              

              Thankfully, that reminded me to block some apps on my phone. 😉

              3.0.0_13, IPv6 DNSBL enabled, unbound mode

              BBcan177B 1 Reply Last reply Reply Quote 0
              • BBcan177B
                BBcan177 Moderator @Bob.Dig
                last edited by

                Fixed in v3.0.0_14

                "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/

                chudakC fireodoF 2 Replies Last reply Reply Quote 3
                • chudakC
                  chudak @BBcan177
                  last edited by

                  @bbcan177 said in pfblockerng crash report:

                  Fixed in v3.0.0_14

                  13 is not a good number anyway :)

                  1 Reply Last reply Reply Quote 1
                  • fireodoF
                    fireodo @BBcan177
                    last edited by

                    @bbcan177 said in pfblockerng crash report:

                    Fixed in v3.0.0_14

                    Is the increasing number of "tail_pfb" processes also fixed?

                    Thanks again!

                    Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                    SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                    pfsense 2.8.0 CE
                    Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                    RonpfSR 1 Reply Last reply Reply Quote 0
                    • RonpfSR
                      RonpfS @fireodo
                      last edited by

                      @fireodo Yes in 3.0.0_14

                      • Re-add rc_stop as good measure to ensure services are stopped

                      2.4.5-RELEASE-p1 (amd64)
                      Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                      Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                      fireodoF 2 Replies Last reply Reply Quote 0
                      • fireodoF
                        fireodo @RonpfS
                        last edited by

                        @ronpfs said in pfblockerng crash report:

                        rc_stop

                        Thanks!

                        Regards,
                        fireodo

                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                        pfsense 2.8.0 CE
                        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                        1 Reply Last reply Reply Quote 0
                        • fireodoF
                          fireodo @RonpfS
                          last edited by

                          @ronpfs said in pfblockerng crash report:

                          @fireodo Yes in 3.0.0_14

                          • Re-add rc_stop as good measure to ensure services are stopped

                          It seems that is not working because this morning:

                          12645 - S 0:01.36 /usr/bin/tail_pfb -n0 -F /var/log/filter.log
                          15089 - S 0:01.38 /usr/bin/tail_pfb -n0 -F /var/log/filter.log
                          41182 - S 0:03.72 /usr/bin/tail_pfb -n0 -F /var/log/filter.log
                          42986 - S 0:00.00 sh -c ps ax | grep tail_pfb 2>&1
                          43101 - S 0:00.00 grep tail_pfb

                          This is pfBlockerNG-devel 3.0.0_14 and I have yesterday allready done:

                          rm /usr/local/etc/rc.d/pfb_filter.sh
                          pkill tail_pfb

                          and a force update after that.

                          Regards,
                          fireodo

                          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                          pfsense 2.8.0 CE
                          Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                          RonpfSR 1 Reply Last reply Reply Quote 0
                          • fireodoF
                            fireodo
                            last edited by fireodo

                            As a "quick and dirty" solution of the "tail_pfb" issue I added in the pfblockerng.inc this:

                            	# Terminate pfBlockerNG Firewall filter Daemon (clog) and filter Daemon, if found
                            	/usr/bin/logger -p daemon.info -t "\${filter_type}" "[pfBlockerNG] Firewall Filter Service stopped"
                            	/usr/bin/logger -p daemon.info -t php_pfb "[pfBlockerNG] filterlog daemon stopped"
                            	pidnum="\$(/bin/ps -wax | /usr/bin/grep '[c]log_pfb -f /var/log/filter.log\|[t]ail_pfb -n0 - F /var/log/filter.log\|[p]fblockerng.inc filterlog' | /usr/bin/awk '{print \$1}')"
                            	if [ ! -z "\${pidnum}" ]; then
                            		for i in \${pidnum}; do
                            			/bin/kill -9 "\${i}"
                            		done
                            pkill tail_pfb
                            	fi
                            

                            After "done" I added the "pkill tail_pfb" and now everything is as it should and there is only one process "/usr/bin/tail_pfb -n0 -F /var/log/filter.log" active.

                            UPDATE: After a chat with bbcan he point me to a mistake I made - its a "space" before the "F" in the script above:
                            "[t]ail_pfb -n0 - F" should be "[t]ail_pfb -n0 -F"! Now everything runs like expected.

                            Regards,
                            fireodo

                            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                            pfsense 2.8.0 CE
                            Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                            1 Reply Last reply Reply Quote 0
                            • RonpfSR
                              RonpfS @fireodo
                              last edited by RonpfS

                              @fireodo The problem occurred when Unbound restart after WAN was toggling.

                              I stop Firewall service, that stopped all tail_pfb processes. Start Firewall service.

                              2.4.5-RELEASE-p1 (amd64)
                              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                              fireodoF 1 Reply Last reply Reply Quote 0
                              • fireodoF
                                fireodo @RonpfS
                                last edited by

                                @ronpfs said in pfblockerng crash report:

                                @fireodo The problem occurred when Unbound restart after WAN was toggling.

                                I stop Firewall service, that stopped all tail_pfb processes. Start Firewall service.

                                I have also toggled the WAN and there was no problem.

                                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                pfsense 2.8.0 CE
                                Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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