[ Robinson_back @ 05.11.2009. 07:57 ] @
Pozz... Riječ je naime o skripti sa ove stranice http://forum.mikrotik.com/view...lit=block+hostname+dhcp#p89265 koja kao i što piše blokira usere po njihovom hostnameu koje detektira pomoću DHCP-lease podataka. Mene muči to što je nikako ne mogu upogonit da radi sa verzijom Mikrotika 3.x. ima li tko kakvu ideju?? # add the bad names here in a list :local hosts "pcname1","pcname2" :foreach host in $hosts do={ :foreach i in= [/ip dhcp-server lease find host-name $host] do={ :local ipnum [/ip dhcp-server lease get $i address] :local unum [/ip hotspot active find address $ipnum] :local usr [/ip hotspot active get $unum user] :log info ($host . " " . $ipnum . " " . $usr) #next line uncommend it, if you want to kick them out right now #/ip hotspot active remove $unum #other stuff can do now with the identified IP and USER } } |