PFsense plugin to receive login alerts (SSH/Web GUI)
The monitor.sh script parses the log file /var/log/auth.log
and sends it to insert.php for additional processing and insertion into the local SQLite3 database. If the conditions are met and the entry is new, the script also sends the notifications by utilizing the functions implemented in the pfSense file /etc/inc/notices.inc
. E.g:
- notify_via_slack($message)
- notify_via_pushover($message)
- notify_via_telegram($message)
- notify_via_smtp($message)
Those settings are predefined by the administrator in: System -> Advanced -> Notifications
monitor.sh has to be in /tmp/
chmod +x /tmp/monitor.sh
paranoid.php, paranoid.inc and insert.php goes in /usr/local/www/packages/paranoid/
https://pfsense.local/packages/paranoid/paranoid.php
Refactor the project to standardize it for pfSense and create a FreeBSD package.