UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac
-
Re: Error Encountered in pfBlockerNG
Hello,
I am referencing an older thread here because I have encountered a similar issue. It appears that an Amazon Echo device is attempting to send DNS requests to pfblockerng that is causing the error. The Echo Show is designed to act as a controller for other smart devices and scans for other devices on my subnet. When it attempts to establish a connection to a discovered device it seems to treat it like a "Captive Portal." To ensure it isn't being spoofed or redirected, the software creates a "unique" probe string. It appears to try to concatenate the IP and port with some extra characters to make the query.
Since I can't control what this device does, I was thinking that the "pfb_unbound.py" could include an attempt to catch this before it throws an error so that the rest of the processing may continue without impacting unbound's other features.Please see below for some details:
pfBlockerNG-devel net 3.2.14_2
pfsense Version 2.8.1-RELEASE (amd64)
unbound 1.24.2unbound logs:
Jul 16 02:06:19 pfSense unbound[15301]: [15301:1] error: pythonmod: Exception occurred in function operate, event: module_event_new Jul 16 02:06:19 pfSense unbound[15301]: [15301:1] error: pythonmod: python error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 7: invalid start byte The above exception was the direct cause of the following exception: Traceback (most recent call last): File "pfb_unbound.py", line 1401, in operate tld = get_tld(qstate) ^^^^^^^^^^^^^^^ File "pfb_unbound.py", line 575, in get_tld if qstate and qstate.qinfo and len(qstate.qinfo.qname_list) > 1: ^^^^^^^^^^^^^^^^^^^^^^^ SystemError: <built-in function _get_qname_components> returned a result with an exception setdns_reply logs:
DNS-reply,Jul 16 02:06:19,servfail,AAAA,AAAA,Unk,192.168.1.174?443?http,192.168.1.32,ServFail,unk -
@bschae1 we are working on a new upcoming release for devel and this should be resolved at that time.
Privacy Policy · Cookie Policy