Get a push notification when a DHCP lease is created or deleted.
1: Install the Pushover app on your phone (Yes its a 7 day trail, but only ~5$ ... - YOU know a better free app? Please tell it to me!)
https://pushover.net/clients
2: Edit the dnsmasq config.
If youre running a classic dnsmasq, edit /etc/dnsmasq.conf and add this line:
dhcp-script=/var/dnsmasq/push.sh
IF youre running a OpenWRT Router, login via SSH and edit the /etc/config/dhcp and add under the "config dnsmasq" line this:
option dhcp-script '/var/dnsmasq/push.sh'
3: Uploade the script and dont forget to fill in your keys!
vi /var/dnsmasq/push.sh
(maybe you need to create the folder dnsmasq at var!)
4: Make it executable:
chmod +x /var/dnsmasq/push.sh
5: Testingtime!
/var/dnsmasq/push.sh
Now you should see a notificaton on your phone :)
6: Restart dnsmasq:
/etc/init.d/dnsmasq reload
(if this fails /etc/init.d/dnsmasq restart
)
7: Now you should get a lot of noifications on your phone for every device that connects :>
8: If you like this, please give me a beer or stuff like this when you see me ;D