Skip to content

CCRRX/dnsmasq-dhcp-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

dnsmasq-dhcp-push

Get a push notification when a DHCP lease is created or deleted.

Installation

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

About

Get a push notification when a DHCP release is created or deleted

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages