Page 1 of 1
ppp secret disable users with remove users from active connection!
Posted: Fri Apr 03, 2015 8:58 am
by qudama
Hello,
i can disable users from ppp secret by this code on system schedule :
/ppp secret
set [find routes=1] disable=yes
also i want disconnect this user from active like this code but i dont want with name !!!
ppp active remove [find name=admin]
)
Re: ppp secret disable users with remove users from active connection!
Posted: Fri Apr 03, 2015 9:03 am
by qudama
any idea??
Re: ppp secret disable users with remove users from active connection!
Posted: Fri Apr 03, 2015 5:27 pm
by ZeroByte
Your code seems completely reasonable and valid to me.
Why don't you want to use the name?
Re: ppp secret disable users with remove users from active connection!
Posted: Tue Apr 07, 2015 7:01 am
by qudama
because i cant do system schedule for every one !!
Re: ppp secret disable users with remove users from active connection!
Posted: Tue Apr 07, 2015 9:22 pm
by ZeroByte
What are you trying to do?
(general terms, nothing technical)
It sounds like you're trying to manually expire and disconnect accounts. This is okay for a few accounts, but after you have more than just a dozen or so, you really should use RADIUS. With a good RADIUS database, you can set expiration dates on accounts, and have a script that updates the expiration date every time the customer pays their bill, etc.
With expiration dates in RADIUS, the user cannot stay connected even one second beyond the time their account expires, and this is done automatically by the Mikrotik. If the user logs in and the RADIUS server tells the Mikrotik that the account will expire in 14 seconds, then 14 seconds later, the Mikrotik will disconnect the user.
Re: ppp secret disable users with remove users from active connection!
Posted: Fri Apr 10, 2015 5:00 pm
by qudama
What are you trying to do?
(general terms, nothing technical)
It sounds like you're trying to manually expire and disconnect accounts. This is okay for a few accounts, but after you have more than just a dozen or so, you really should use RADIUS. With a good RADIUS database, you can set expiration dates on accounts, and have a script that updates the expiration date every time the customer pays their bill, etc.
With expiration dates in RADIUS, the user cannot stay connected even one second beyond the time their account expires, and this is done automatically by the Mikrotik. If the user logs in and the RADIUS server tells the Mikrotik that the account will expire in 14 seconds, then 14 seconds later, the Mikrotik will disconnect the user.
gooooooooooooooooooooooooooooooood