Community discussions

MikroTik App
 
khalilme1
just joined
Topic Author
Posts: 2
Joined: Fri Mar 17, 2017 2:58 pm

i need help with removing user from hotspot when connected to pppoe!!!!!

Fri Mar 17, 2017 3:08 pm

please help me with this:
i need script that remove user from hotspot when connected to pppoe :cry:
i have been tryin all day with no success
{:local i;
:set i [ :len [/ip hotspot active find] ];
:local uname;
:foreach i in=[/ip hotspot active find] do={
:set uname [/ip hotspot active get $i user];
:ip hotspot active remove [find user=($uname)];
}
}
 
User avatar
ahmedalmi
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Sat Sep 13, 2014 5:52 pm
Location: sana'a yemen
Contact:

Re: i need help with removing user from hotspot when connected to pppoe!!!!!

Sun May 14, 2017 4:39 am

if you have the same user in hotspot and pppoe and you want to remove the user from active hotspot when connected to ppoe
just paste this rule in ppp profile script on-up

:ip hotspot active remove [find user=($user)];

Image

Who is online

Users browsing this forum: No registered users and 5 guests