Hotspot login script

Hi pepes,

Hotspot related question. I am looking for a script that will look at a address list that is created from a mangle rule. It will take the addresses listed in the list and log them into the hotspot if they are not already.

I am trying to get xbox’s to log themselves in automatically.

I have created two mangle rule such as


/ip firewall mangle action=add-src-to-address-list=xbox address-list-timeout=12h
chain=prerouting dst-port=3074 protocol=udp/
/ip firewall mangle action=add-src-to-address-list=xbox address-list-timeout=12h
chain=prerouting dst-port=3074 protocol=tcp

I am able to trigger the mange rule. Now I just need the script for login.

Anyone happen to see one buried in the forums I can use an example?

Thanks

Some hint:

on script search the corresponding MAC address on ARP table and add MAC address to users,
and enable login by MAC…

I appriciate the response. I assumed it would work like that somehow. Unfortionatley I am not skilled at all with scripting, yet. I would not know how to write those rules.

If someone could show me a link to an exhisting script that is already written I can use as an example that would be awesome. If not and someone was willing to write one I would be willing to make a Paypal donation that would equal a case of beer or something :smiley:

Many thanks