Skip to content

PFsense plugin to receive login alerts (SSH/Web GUI)

Notifications You must be signed in to change notification settings

NavyTitanium/pfs-paranoid

Repository files navigation

pfs-paranoid

PFsense plugin to receive login alerts (SSH/Web GUI)

How does it work ?

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

Installation

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/

Interface

https://pfsense.local/packages/paranoid/paranoid.php

paranoid.php

Todo

Refactor the project to standardize it for pfSense and create a FreeBSD package.

About

PFsense plugin to receive login alerts (SSH/Web GUI)

Topics

Resources

Stars

Watchers

Forks