Run script on new lease only for certain interface
In a nutshell, what I'm trying to do is send a message (using curl) when a new lease is acquired on my guest network (interface == wl0.1). I was thinking I could use dnsmasq's "dhcp-script" option, but I don't see a way to restrict that to only wl0.1. So it's looking like I'll need to do this with iptables, but I'm unclear how to determine when a new lease is acquired with iptables. Can anyone point me in the right direction?
|