Navigation

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

    pfSense Login Notifications

    General pfSense Questions
    2
    3
    143
    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.
    • N
      newUser2pfSense last edited by

      I'm using pfSense 23.01-RELEASE (amd64). I've enabled Notifications which works as expected. Would anyone know if psSense has a setting to send notifications when someone has logged into pfSense by using a webpage or SSH? I'm not looking to setup any type of external logging. I'm just looking to select a checkbox in pfSense to enable this feature. Thank you.

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

        @newuser2pfsense

        Well, there is this :

        ebf74782-d31e-4ff5-b347-39d809e69895-image.png

        and if that one isn't checked, you see a message on the console - and in the Status > System Logs >Authentication >General log.

        Check your /etc/inc/auth.inc line 2169 and 2170

        That part of pfSense handles login, so, exceptionally, I'm not going to post any PHP examples, as the slightest mistake will have a big impact.
        But : if you can read and understand what happens there, you'll be able to also find that /etc/inc/notices.inc is all about sending notices to smtp/telegram/etc.
        So, a solution would be : add just after line 2170 a line that sends a notice ;)

        Check with https://github.com/pfsense/pfsense/blob/master/src/etc/inc/auth.inc that very recently the log behavior changed.

        https://github.com/pfsense/pfsense/commit/6c186dae17fe41851c2ee3bb72852178596f2652

        For classic "add a web GUI option please", see Redmine pfSense feature request

        No "help me" PM's please. Use the forum.

        1 Reply Last reply Reply Quote 0
        • N
          newUser2pfSense last edited by

          @Gertjan
          You wouldn't happen to have a Redmine account would you? 😁

          1 Reply Last reply Reply Quote 0
          • First post
            Last post