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

    pfBlocker & user agents

    Scheduled Pinned Locked Moved pfBlockerNG
    5 Posts 3 Posters 1.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.
    • U
      underscore
      last edited by

      Hello,

      I was wondering if it's possible to filter by user agent in pfBlocker (perhaps via regex blocking)?

      Thanks

      NollipfSenseN 1 Reply Last reply Reply Quote 0
      • NollipfSenseN
        NollipfSense @underscore
        last edited by

        @underscore Not sure...maybe if you know what address or IP the user agent contacts, then you could approach it that way.

        pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
        pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

        1 Reply Last reply Reply Quote 0
        • U
          underscore
          last edited by underscore

          @NollipfSense Thanks for the reply. The thing is the IPs the user-agent contacts change. I'm also aware I could do this with Squid quite easily but I'd rather not proxy all of my traffic. The user-agent string is part of the http headers. I'm assuming pfblocker sees the headers, in which case simple regex with the user-agent name should do the trick, but it doesn't... I'm a bit surprised.

          Thanks again.

          M 1 Reply Last reply Reply Quote 0
          • M
            mcury Rebel Alliance @underscore
            last edited by

            @underscore pfblocker doesn't look the http header.
            Everything happens at the DNS level.

            dead on arrival, nowhere to be found.

            U 1 Reply Last reply Reply Quote 0
            • U
              underscore @mcury
              last edited by

              @mcury Thanks for chiming in. That settles that. :-)

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