Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 209 Views 2 Watching
    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.
    • B Offline
      bschae1
      last edited by

      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.2

      unbound 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 set
      

      dns_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
      
      BBcan177B 1 Reply Last reply Reply Quote 0
      • BBcan177B Offline
        BBcan177 Moderator @bschae1
        last edited by

        @bschae1 we are working on a new upcoming release for devel and this should be resolved at that time.

        "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
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy