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

    Python Regex List

    Scheduled Pinned Locked Moved pfBlockerNG
    3 Posts 2 Posters 2.0k 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.
    • J
      javier2020
      last edited by

      Hi

      I use "pfBlockerNG-devel" ver 3.0.0_10 in PfSense 2.4.5-p1 and have active "Unbound python mode".

      d354bb5e-042f-47a2-a4a5-47c3c77a1d77-image.png

      I tried to use "Python Regex List" to block sites content word "yahoo" in domain. ( www.yahoo.com or mail.yahoo.com, etc )

      27db8ec3-8fa7-4835-9a95-56af140e9837-image.png
      Is it necessary to apply a "Python Regex List" on a particular DNSBL?. How is it done this? or what other option is necessary to apply correctly "Python Regex list"?

      Thanks for your help.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @javier2020
        last edited by

        @javier2020

        Use it like this :

        a66773f5-38b1-46d3-9b1c-cdc3e3a851f0-image.png

        Remove the leading / and trailing /.

        Now you'll find DNSBL log entries like :

        7de3b185-698d-4ada-b3b7-e1339749a830-image.png

        and this one was the result of a (DNSBL) regex match.

        Btw : be careful, this way of filtering is very powerful ;)

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

        J 1 Reply Last reply Reply Quote 1
        • J
          javier2020 @Gertjan
          last edited by

          @gertjan Thank You.

          Works great!!

          1 Reply Last reply Reply Quote 0
          • A anishkgt referenced this topic on
          • A anishkgt referenced this topic on
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.