Page 1 of 1
script cookie hotspot
Posted: Thu Jan 05, 2017 1:07 pm
by pelli
Hello, i need a script for read the mac-address of all cookies in hotspot section and insert all in ip binding bypassed and after remove from cookies list.
Any suggestion?
Thanks
Re: script cookie hotspot
Posted: Fri Jan 06, 2017 4:46 am
by Sinan
try this :
:foreach m in=[/ip hotspot cookie find ] do={
:local mac [/ip hotspot cookie get value-name=mac-address $m]
/ip hotspot ip-binding add mac-address=$mac }
Re: script cookie hotspot
Posted: Mon Jan 09, 2017 3:15 pm
by pelli
try this :
:foreach m in=[/ip hotspot cookie find ] do={
:local mac [/ip hotspot cookie get value-name=mac-address $m]
/ip hotspot ip-binding add mac-address=$mac }
Thanks, it's work
Re: script cookie hotspot
Posted: Tue Jan 10, 2017 7:23 am
by chshahzadnasir
This script use for hotspot user auto ip and mac-address bending...? I am Right...!!!