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

    How to create an alert for when someone connects via VPN to my network

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 399 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.
    • T
      tleguizamon
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • noplanN
        noplan
        last edited by

        Email?

        Client connect / client disconnect script with email notification works like a charm

        U can also get a notification with telegram
        BrNP

        1 Reply Last reply Reply Quote 0
        • T
          tleguizamon
          last edited by

          Lo puede realizar siguiendo este How to :

          https://hometechhacker.com/5-tips-to-help-get-the-most-out-of-pfsense/#Tip_1_Get_notified_when_someone_connects_to_your_OpenVPN_server

          Saludos.

          1 Reply Last reply Reply Quote 0
          • noplanN
            noplan
            last edited by

            If u got time compare the scripts u showed in the link with the scripts we posted here in the forum

            BrNP

            1 Reply Last reply Reply Quote 0
            • T
              tleguizamon
              last edited by tleguizamon

              Script de conexión -->

              #BEGIN EDIT
              /bin/echo "Client $common_name from $trusted_ip connected @ date"
              | /usr/local/bin/mail.php -s"OpenVPN Connection Beginning"
              #END EDIT

              Script de Des-conexión -->
              #BEGIN EDIT
              /bin/echo "Client $common_name from $trusted_ip disconnected @date"
              | /usr/local/bin/mail.php -s"OpenVPN Connection Ending"
              #END EDIT

              Estos scripts funcionan perfectamente, acabo de testearlos.

              Así debería quedar el script "openvpn.attributes.sh"

              30c42a3b-68e4-4c13-a83e-828d0a586bcc-image.png

              Saludos

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