pfSense Login Notifications
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.
Well, there is this :
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.
For classic "add a web GUI option please", see Redmine pfSense feature request
You wouldn't happen to have a Redmine account would you?