Looking for a more reliable, easy-to-manage alternative to pfSense without frequent false-positive notifications? … chueyise.com has a recommendation. This article describes a customizable solution to monitor devices connected to your network and utilizes the pfSense notification feature to alert you via email and/or text message when new devices are detected. The solution maintains a persistent database of known devices that can be tailored as needed (e.g., your guests using wifi left and you want to remove them from the known device list).
A 16-character passcode is needed to allow your pfSense firewall to access your Google account to send alert emails/text messages. Information for creating and managing Google App passwords is located in Gmail App Password Help. NOTE: The passcode is not available once you close the window displaying the newly generated 16-character passcode.
Log into your pfSense firewall via the web interface. Click System >> Advanced >> Notifications. Populate the E-Mail stanza with the appropriate gmail information. Enter your 16-character Google App passcode from Step 1 in the ‘Notification E-Mail auth password‘ fields.
NOTE: If you ‘Test SMTP Settings‘, you will need to re-enter your 16-character passcode and then ‘Save‘.
NOTE: This site provides details for how to send a text message from your email account.
Create a script (called /var/netmon/netmon.sh) that performs the following functions.
Here are examples of the netmon bash script, and the mac.db and ignores.txt files used by netmon.
Use the following example files and customize as needed. These are closely based on the original pfSense modules contained in /etc/inc directory.
Once the files from Steps 4 and 5 are uploaded onto your pfSense in the appropriate directories, run commands:
chown -R root:wheel /var/netmon
chmod -R 750 /var/netmon
Log into your pfSense firewall via the web interface. Click Services>> Cron >> +Add. Create a cron job to run the netmon utility every minute and ‘Save‘.