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

    Telegram notifications about ipsec and gateways

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 1.1k 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.
    • M
      MichaelRMO
      last edited by

      Hello. I created telegram bot for my pfSense notifications, mostly to recieve ino about lost connections. Currently it only sends me info about connect/disconnect to OpenVPN server. I would like also recieve notifications about disconnected P1s of ipsec connections and local gateway states. I'm kinda new to this thing and would like to get an advice about how to make this thing possible. VPN connection notification I got on some forum, so I almost have no idea how that script works. I couldn't find any sample of script for telegram notifications that would create ipsec or gateway status messages. Thank you all in advance

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        How do you have it configured now?

        By default notifications should include anything that appears as a system alert so firewall reboots, interface link state changes etc.

        Steve

        M 1 Reply Last reply Reply Quote 0
        • M
          MichaelRMO @stephenw10
          last edited by MichaelRMO

          @stephenw10
          I configured Telegram notifications in System->Advanced->Notifications->Telegram. Test worked fine and yesterday I got notification about successful boot, but no gateway states or anything else, only boot. OVPN notifications were configured via .sh script and custom options

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Hmm, I would expect to see notifications of a WAN failover event. The gateways you are testing with are in a gateway group?

            The notifications system could certainly be improved though. There are a few feature requests open for it.

            Steve

            M 1 Reply Last reply Reply Quote 0
            • M
              MichaelRMO @stephenw10
              last edited by

              @stephenw10
              No, currently I don't have any gateway groups. In future my pf will have at least one group to create a failover for Internet access in case of main provider failuer.
              I thought that notifications work also for gateways as standalone config. It works only with groups?

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                If you add a dyndns entry to it you will be notified when that changes. For a failover group that will show when it fails over.

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