DNS Resolver sudden stop and filterdns PID 48934
-
yes :
[02-Mar-2021 08:59:09 Europe/Paris] 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('pagead2.googles...')
#1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('pagead2.googles...')
#2 {main}
thrown in /etc/inc/util.inc on line 680
[02-Mar-2021 08:59:10 Europe/Paris] 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('www.statcounter...')
#1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('www.statcounter...')
#2 {main}
thrown in /etc/inc/util.inc on line 680 -
@gertjan yes I see this message.
What is the solution for this problem in your opinion?
-
As said :
@gertjan said in DNS Resolver sudden stop and filterdns PID 48934:
They should be here : /usr/local/share/pear/Net/
Like "IPv6.php"'.is this the case ?
I have :
[2.5.0-RELEASE][admin@pfsense.me.net]/usr/local/share/pear/Net: ls -al total 140 drwxr-xr-x 2 root wheel 512 Feb 23 09:59 . drwxr-xr-x 19 root wheel 512 Feb 23 09:59 .. -rw-r--r-- 1 root wheel 26707 Feb 6 13:23 IPv6.php -rw-r--r-- 1 root wheel 47492 Feb 6 13:22 SMTP.php -rw-r--r-- 1 root wheel 20217 Feb 6 13:22 Socket.php -rw-r--r-- 1 root wheel 35169 Feb 6 13:22 URL2.php
What is your pfSense version ?
What is your pfB version ? (the latest, version 3.0.0_13, dates from last night). -
@gertjan In my own case if have the posted issue
here is some lines:
#0 /etc/inc/util.inc(657): is_ipaddrv6('portal.fb.com')
#1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('portal.fb.com')the problem as shown is in 2 folder (I think) /etc/inc/ with the file util.inc and in /usr/local/www/pfblockerng/www/ with the file index.php
about your directory here is my pfSense folder and file
what we must do in the folder that you mention?
-
pfSense Version 2.5.0-RELEASE (amd64)
built on Tue Feb 16 08:56:29 EST 2021
FreeBSD 12.2-STABLE -
pfBlockerNG-devel 3.0.0_13
-
-
there seems an update ...seen this when i reinstalled pfb.
-
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
what we must do in the folder that you mention?
Exactly these four files.
As you showed - as I showed.So this message :
Class 'Net_IPv6' not found in /etc/inc/util.inc:680
has nothing to do with the file "IPv6.php" missing.
Btw : the error happens like this : your browser, #2 {main}, opens a page :
#1 /usr/local/www/pfblockerng/www/index.php - on line 59 it finds "is_ipaddr('www.statcounter...')"The function is_ipaddr() is defined in the file
#0 /etc/inc/util.inc
where, on line 680, it finds :return Net_IPv6::checkIPv6($ipaddr);
and this function call / class can't be found.
Hence the error :PHP Fatal error: Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
Or, in the file /usr/local/share/pear/Net/IPv6.php, the class "Net_IPv6" IS defined (line 135).
I understood that PHP could not find the file /usr/local/share/pear/Net/IPv6.php what would explain the situation.
But, the files are there :/ -
@gertjan Could be the files are corrupted?
I restarted the pfSense with the option Reboot with Filesystem Check and every thing is good and no error was found while rebooting.
Still have the sudden stop of the DNS unbound, tried the pkg upgrade -fy unbound and testing the problem if it persist.
-
@thegenius21 I did it now and testing if the problem still exist. thank you dear.
-
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
Could be the files are corrupted?
Well, its open source.
Compare the source with what your have ^^Or execute :
md5 < IPv6.php
I got
2a7701126aae53348b3a1ddd17f745e4
The file size is ok, though.
-
@gertjan 2a7701126aae53348b3a1ddd17f745e4
same as yours, this message happens directly after the pfblockerng latest update, btw i have the same setup in the cloud (proxmox vm) and all works well. the only difference between them is the vm image has Hardware Checksum Offloading and others checked in the Advanced Networking, too annoying problem :(
-
There might be a way to get rid of the errors.
This file : /usr/local/www/pfblockerng/www/index.php is probably the start of the PHP section that builds the web page that users see when they try to visit a DNSBL blocked page.
I see mow the issue. That is, when I visit https://pfsense.me.net/pfblockerng/www/ manually it hit the error right away.
I advise you all to disable that web server that shows the DNS blocked page as it is rather useless, and very soon it won't work anyway.
( because of the MITM concepts, TLS, how https works, your browser won't show that page any more, etc etc )So :
and done.
-
@gertjan I did what you said and also restarted the firewall same Crash report
Crash report begins. Anonymous machine information:
amd64
12.2-STABLE
FreeBSD 12.2-STABLE d48fb226319(devel-12) pfSenseCrash report details:
PHP Errors:
[02-Mar-2021 14:13:18 Asia/Beirut] 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('pagead2.googles...')
#1 /usr/local/www/pfblockerng/www/index.php(59): is_ipaddr('pagead2.googles...')
#2 {main}
thrown in /etc/inc/util.inc on line 680No FreeBSD crash data found.
Could we do something else?
-
and in your opinion what is the solution of the following log entry in the DNS Resolver
filterdns 37490 (PID) failed to resolve host xxx will retry later again.
-
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
failed to resolve
When unbound fails, it stops. Resolving stops. For your LAN based device and any process on pfSense itself. filterdns is just one of such processes.
-
@gertjan after a while the message does not appear again, till now it is the solution.
already thank you for your patience and for this great solution.
Thumbs Up.
-
@gertjan how may I troubleshoot the failure of the unbound service? To know how to fix this issue if you cloud help me again.
-
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
how may I troubleshoot the failure of the unbound service?
The issue at the top isn't a unbound issue but a pfBlockerNG issue.
Something (some one) is hitting the PFB "block page". Who is it ? (hint : look in the logs ....)
De activate this page as stated above.
Or de active DNSBL - dooes that help ?Btw : you are not using unbound in the default mode, you forward to Google & co.
That complicates things.Unbound uist run in resolver mode for pfBlockerNG to work.
This one :
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
filterdns 48934 failed to resolve host pt1 will retry later again
is also not real an error.
"pt1" isn't valid hos name. -
How may I use the unbound in the default mode? what is the best practice to set up the forward servers ( not Google for example) and the solution that you have posted above works with me (Null Block)
Kindly if you can describe how that the unbound must run in resolver mode for pfBlockerNG to works perfectly
NB: pt1 is a computer name in my domain network.
-
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
Kindly if you can describe how that the unbound must run in resolver mode for pfBlockerNG to works perfectly
As already mentioned : use the default settings.
They work.@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
NB: pt1 is a computer name in my domain network.
Should be a fully qualified : like "pt1.local.tld". That way, unbound will know it's local, can resolve it directly, and won't send it to Google or OpenDNS, as these can't know what you have in your LAN anyway.
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
what is the best practice to set up the forward servers
The best way to use forward servers is : not using them. You don't need them (they need you and do not pay you for it ....)
-
@ramikilany said in DNS Resolver sudden stop and filterdns PID 48934:
[02-Mar-2021 09:14:55 Asia/Beirut] PHP Fatal error: Uncaught Error: Class 'Net_IPv6' not found in /etc/inc/util.inc:680
The solution :
https://github.com/pfsense/FreeBSD-ports/commit/8b27bcf00d06eeeed4e2ea5a5fdc23edf1b4ba23
look at the bottom of the page :
Works :