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

Problem with Python Group Policy - Cached Domains

Scheduled Pinned Locked Moved pfBlockerNG
4 Posts 2 Posters 867 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.
  • Y
    yaw
    last edited by Sep 7, 2023, 1:54 AM

    Hi All,

    I believe I've stumbled upon an issue with using Python Group Policy to exclude IPs from DNSBL. The bypassing works great for IPs in the list. However, when an IP in this list resolves a domain that is blocked, Unbound caches it. This effectively bypasses the DNSBL for all clients that are supposed to be using the block. Only way I've seen to get around it is to clear the Unbound cache. Once the cached domain expires, then blocking resumes as normal for all other clients.

    Any way to resolve this issue?

    Thanks.

    G 1 Reply Last reply Sep 7, 2023, 9:23 AM Reply Quote 0
    • G
      Gertjan @yaw
      last edited by Sep 7, 2023, 9:23 AM

      @yaw

      I've saw this side effect while testing the Group Policy functionality, a while ago.

      @yaw said in Problem with Python Group Policy - Cached Domains:

      Once the cached domain expires

      When the Python module (just a script file) was created, I forced (modifying the python script file) the TTL for every request emitted by a IP member of the Group Policy to a low, say 15 seconds, TTL value. If would vanish from the resolver cache rapidly.
      But this trick is probably not compatible with Services > DNS Resolver > Advanced Settings > Prefetch Support.

      Another solution might be : not adding DNS requests from devices on the "Group Policy" into the resolver cache ( if this is even possible ? )

      @yaw said in Problem with Python Group Policy - Cached Domains:

      Any way to resolve this issue?

      Calling the expert @BBcan177 😊

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

      Y 1 Reply Last reply Sep 7, 2023, 2:56 PM Reply Quote 0
      • Y
        yaw @Gertjan
        last edited by Sep 7, 2023, 2:56 PM

        @Gertjan

        Another solution might be : not adding DNS requests from devices on the "Group Policy" into the resolver cache ( if this is even possible ? )

        This is the behavior I would expect. I'm not sure if it is possible either.

        1 Reply Last reply Reply Quote 0
        • G Gertjan referenced this topic on Sep 11, 2023, 8:05 AM
        • Y
          yaw
          last edited by Nov 18, 2023, 5:00 PM

          Any update on this? With the recent announcement of killing Squid support, I'm again looking at pfBlockerNG for my filtering needs. However, this issue complicates things.

          1 Reply Last reply Reply Quote 0
          • G Gertjan referenced this topic on Dec 9, 2024, 12:31 PM
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received