Page 1 of 1

help with script ????

Posted: Sat Sep 19, 2009 2:04 am
by mohamed
i use mikrotik v3.13 hotspot lan
ineed script to remove active user from /ip hotspot active if the same ip found in the address list in /ip firewall address-list

i mean i made address list to know the ip use p2p and if found ip in thes address list do remove from /ip hotspot active
look the pic to know the rule of address list
all.JPG
mybe its like
:foreach i in [/ip firewall address-list find name=pc-use-p2p get $i address] do={/ip hotspot active remove [find user=[/ip firewall address-list find name=pc-use-p2p get address]]}i mane remove any ip use p2p !!!!!
re.JPG

Re: help with script ????

Posted: Mon Sep 21, 2009 5:04 pm
by mrz
:foreach i in [/ip firewall address-list find list="pc-use-p2p"] do={
/ip hotspot active remove [find address=[/ip firewall address-list get $i address]]
}

Re: help with script ????

Posted: Tue Sep 22, 2009 8:01 pm
by mohamed
thank you for reply mr mrz :> :> :> :) :)

Re: help with script ????

Posted: Tue Sep 22, 2009 9:21 pm
by xezen
p2p is always a killer on a network ad cant be stoped so easy anyway