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

    Event on block

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 3 Posters 668 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.
    • E
      enuro12
      last edited by

      Can pfsense trigger a script or similar on a block event?

      Say i want to block all outbound traffic. Anything that tries to get out gets blocked. Then i want to return, "who got blocked and trying to access what" (ie. Mac address & URL/IP:port)

      1 Reply Last reply Reply Quote 0
      • E
        enuro12
        last edited by

        Anyone have a thought on this?

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          I am not aware of any such functionality built-in.  It's FreeBSD so you could always hack something together.

          Perhaps you could setup a syslog server, and then trigger an alert of some type when a specific event rolls in.

          1 Reply Last reply Reply Quote 0
          • K
            kpa
            last edited by

            Not with PF at least since PF has no hooks for triggering any kind of events on rule match. Maybe IPFW has something like that but I'm not too familiar with it.

            1 Reply Last reply Reply Quote 0
            • E
              enuro12
              last edited by

              @KOM:

              I am not aware of any such functionality built-in.  It's FreeBSD so you could always hack something together.

              Perhaps you could setup a syslog server, and then trigger an alert of some type when a specific event rolls in.

              Thanks for the responses.

              For this to work smoothly it would have to be a hook of some sort. I did consider that though.

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