Send hotspot MAC address to external URL

Hi,

We are implementing a service that requires the list of MAC addresses served by the hotspot sent to an external server when the client is provided an IP from the hotspot dhcp pool (that’s before the login page is loaded). Is there a script that can do that?

Thank you!

The easiest way would be with an on-lease script (in the DHCP server) that has

/tool fetch url=("http://example.com/\?mac=" . $leaseActMAC . "&ip=" . $leaseActIP)

and then the code on the server would register the new IP and MAC.