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

    Error Encountered in pfBlockerNG

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 171 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.
    • S Offline
      smsigroupit
      last edited by smsigroupit

      Good day!

      I’m encountering the following error message in pfBlockerNG. Could you please advise what might be causing this issue?

      Version 25.07-RELEASE

      This error repeats frequently in the logs.

      Thank you for your assistance.

      Aug 20 13:37:29  unbound  32722  [32722:4] error: pythonmod: python error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 2: invalid start byte
      The above exception was the direct cause of the following exception:
      Traceback (most recent call last):
        File "pfb_unbound.py", line 1404, in operate
          tld = get_tld(qstate)
        File "pfb_unbound.py", line 578, 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
      
      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @smsigroupit
        last edited by

        @smsigroupit said in Error Encountered in pfBlockerNG:

        'utf-8' codec can't decode byte 0xc0 in position 2: invalid start byte

        Like this one.

        To understand the issue, I added the 'log_info(...) line :

        86b06685-7c8a-41e3-859a-5088c2ad9d5c-image.png

        I saw :
        2aae10fb-89fa-4c7b-9e9e-50e5450693f8-image.png

        What happened is : host names must be - probably not ( !) use utf-8encoding.
        Somehow, the pfSense resolver unbound was 'fed' with a host names that contains a 'utf-8' charterer, your "0xc0", and unbound use uses the pythonmod scrip /var/unbound/pfb_unbound.py - to parse (check for DNSBL) and that one can't handle utf-8 chars. It fails.

        How to deal with this ?

        If you know what device was asking for these 'illegal' ? ** host names, stop it doing so ?
        Or, add the line as I've show above, so you know what host name is the one that fails. That could give you an indication who (what device) was asking for it.

        I'm not sure if utf-8 is allowed in host names. I have the impression it actually is (not sure if this is a good thing, though ...).
        pfb_unbound.py doesn't like it, that's for sure.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          smsigroupit @Gertjan
          last edited by

          @Gertjan

          thank you!

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