Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Send an email alert when someone login on OPNSense (SSH or Web interface)
« previous
next »
Print
Pages: [
1
]
Author
Topic: Send an email alert when someone login on OPNSense (SSH or Web interface) (Read 3692 times)
ale
Newbie
Posts: 1
Karma: 0
Send an email alert when someone login on OPNSense (SSH or Web interface)
«
on:
January 10, 2020, 01:53:28 pm »
Hi everybody,
I'm a new OPNSense user and I've been asked to configure our OPNSense firewall/proxy to send an email whenever someone login via SSH or web management interface to it.
My boss would like to know (at least):
username used to login (at the moment only root is defined, in future there will be more admin user profiles)
ip from login comes from (to better understand suspicious activity on the lan).
Any other useful info would be appreciated.
I've read Monit documentation and FAQ and searched on the forum but it does not seem to trigger logins, as far I know nobody in the forum has asked anything similar (correct me if wrong).
Any of you has never faced such a type of request?
Probably I need to install something to monitor logins but my knowledge on OPNSense is low, very low... so if something is already bult in is better (for me).
Thank in advance for your suggestions
Ale
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: Send an email alert when someone login on OPNSense (SSH or Web interface)
«
Reply #1 on:
January 10, 2020, 04:05:44 pm »
You could do it using Monit for shell logins as described here.
https://www.elitmus.com/blog/technology/using-monit-to-get-email-alert-on-unauthorized-login/
You'd need to modify it a bit and look at the system.log I think but it could work.
And I can think of a way of hacking the system to send an email when a user logs in via the web interface, but it would be that, a hack. You could always request it as a feature on github.
«
Last Edit: January 10, 2020, 04:16:37 pm by marjohn56
»
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Send an email alert when someone login on OPNSense (SSH or Web interface)
«
Reply #2 on:
January 11, 2020, 07:36:51 am »
Since it is logged to Syslog you could do that also from an external logging server like the ELK stack.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Send an email alert when someone login on OPNSense (SSH or Web interface)