Community discussions

MikroTik App
 
mohamed
newbie
Topic Author
Posts: 33
Joined: Sat Apr 25, 2009 11:52 am

help with script ????

Sat Sep 19, 2009 2:04 am

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
You do not have the required permissions to view the files attached to this post.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: help with script ????

Mon Sep 21, 2009 5:04 pm

: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]]
}
 
mohamed
newbie
Topic Author
Posts: 33
Joined: Sat Apr 25, 2009 11:52 am

Re: help with script ????

Tue Sep 22, 2009 8:01 pm

thank you for reply mr mrz :> :> :> :) :)
 
xezen
Long time Member
Long time Member
Posts: 628
Joined: Fri May 30, 2008 10:23 am
Location: South Africa

Re: help with script ????

Tue Sep 22, 2009 9:21 pm

p2p is always a killer on a network ad cant be stoped so easy anyway

Who is online

Users browsing this forum: KarolSz and 7 guests