Page 1 of 1

Top Up Credit unit

Posted: Fri Dec 04, 2009 8:35 pm
by firewallrule
How can i configure my router to give avenue to client to Top UP their credit unit before it elapse?

Re: Top Up Credit unit

Posted: Mon Dec 07, 2009 2:02 pm
by sergejs
Currently it is not possible to do it automatically, you have to renew it or run scripts, which will assign new limitations.

Re: Top Up Credit unit

Posted: Mon Dec 07, 2009 9:47 pm
by firewallrule
What am really looking at for instance, a customer comes to my internet cafe and buy credit unit of 30minutes. He begins his downloading of file that could not finish within that 30minutes. Now if he allow the 30minutes to finish, his download will automatically close or time out. Which means, if he buy another credit unit he has to start afresh which is not encouraging.

So what i want is to alert them by pop up a message once the time is below 5minutes and give them the opportunity to add additional credit unit to avoid the previous one from timing out.

Thanks in anticipation.

Re: Top Up Credit unit

Posted: Tue Dec 08, 2009 3:14 pm
by sergejs
If you will change (Change of Authorization) settings of the client, then user should not be disconnected.

Re: Top Up Credit unit

Posted: Tue Feb 16, 2010 2:39 pm
by cybergold
If you will change (Change of Authorization) settings of the client, then user should not be disconnected.
Hello sir, please can you throw more light on this your response. I am having the same challenge here at my site and your response will be very helpful.

Efosa

Re: Top Up Credit unit

Posted: Thu Feb 18, 2010 2:08 pm
by sergejs
When HotSpot user settings are changed on User Manager, and User Manager sends these changes by CoA packet, HotSpot user is not disconnected, but new settings are applied for it.

Re: Top Up Credit unit

Posted: Thu Feb 18, 2010 2:29 pm
by cybergold
When HotSpot user settings are changed on User Manager, and User Manager sends these changes by CoA packet, HotSpot user is not disconnected, but new settings are applied for it.
This reply certainly got me more confused than the first one...Please explain in simple terms what can or should be done to correct this issue if any??

Re: Top Up Credit unit

Posted: Fri Feb 19, 2010 10:36 am
by sergejs
I do not think this is issue anyway.
Do you use CoA (change of authorization) between your HotSpot and User-Manager?

Re: Top Up Credit unit

Posted: Fri Feb 19, 2010 4:45 pm
by cybergold
I do not think this is issue anyway.
Do you use CoA (change of authorization) between your HotSpot and User-Manager?
Hi am not clear on your question and i happen not to know the meaning of CoA at this time...Pardon me..but i will await your solution to this problem i have.

Re: Top Up Credit unit

Posted: Mon Feb 22, 2010 6:05 pm
by sergejs
Please, describe your problem in details. Create different post, if it is different from original author's topic.

Top Up Credit unit=new topic

Posted: Mon Feb 22, 2010 8:22 pm
by cybergold
Please, describe your problem in details. Create different post, if it is different from original author's topic.
Hi have posted a new post with same issues i had earlier...see the post

''top up tickets when using usermanager''

hi,
i observed that when a ticket is created from usermanager for a client to browse with, and that ticket is exhausted when a user is doing a large download, by the time he logs in again with another ticket, he has to start his download all over again. Is it not possible to combine or add tickets to an already being used ticket to prevent users from starting their work all over again?

please speak

Re: Top Up Credit unit

Posted: Tue Feb 23, 2010 2:49 pm
by sergejs
Yes, it is correct.

If you change settings for HotSpot user and you do not want that user is disconnected, then CoA should be used.
RADIUS server will sent new settings for client, but it will not be disconnected.

From RADIUS client manual,
http://wiki.mikrotik.com/wiki/RADIUS_Client

Change of Authorization
RADIUS disconnect and Change of Authorization (according to RFC3576) are supported as well. These attributes may be changed by a CoA request from the RADIUS server:

Mikrotik-Group
Mikrotik-Recv-Limit
Mikrotik-Xmit-Limit
Mikrotik-Rate-Limit
Ascend-Data-Rate (only if Mikrotik-Rate-Limit is not present)
Ascend-XMit-Rate (only if Mikrotik-Rate-Limit is not present)
Mikrotik-Mark-Id
Filter-Id
Mikrotik-Advertise-Url
Mikrotik-Advertise-Interval
Session-Timeout
Idle-Timeout
Port-Limit
Note that it is not possible to change IP address, pool or routes that way - for such changes a user must be disconnected first.

Re: Top Up Credit unit

Posted: Tue Feb 23, 2010 7:11 pm
by cybergold
Yes, it is correct.

If you change settings for HotSpot user and you do not want that user is disconnected, then CoA should be used.
RADIUS server will sent new settings for client, but it will not be disconnected.

From RADIUS client manual,
http://wiki.mikrotik.com/wiki/RADIUS_Client

Change of Authorization
RADIUS disconnect and Change of Authorization (according to RFC3576) are supported as well. These attributes may be changed by a CoA request from the RADIUS server:

Mikrotik-Group
Mikrotik-Recv-Limit
Mikrotik-Xmit-Limit
Mikrotik-Rate-Limit
Ascend-Data-Rate (only if Mikrotik-Rate-Limit is not present)
Ascend-XMit-Rate (only if Mikrotik-Rate-Limit is not present)
Mikrotik-Mark-Id
Filter-Id
Mikrotik-Advertise-Url
Mikrotik-Advertise-Interval
Session-Timeout
Idle-Timeout
Port-Limit
Note that it is not possible to change IP address, pool or routes that way - for such changes a user must be disconnected first.
It is so disheartening that you cant come up with yet a simple explanation as to how to get the issue solved, If i persistently do not understand you, you should know its not deliberate. You may wish to just put in simple terms what i should do to solve the problem..Its too late in the day anyway to let go of mikrotik.. the least you can do is to let someone else respond to this issue i have and make my day.

Re: Top Up Credit unit

Posted: Fri Feb 26, 2010 7:54 pm
by firewallrule
Can someone help us out of these serious issue?

Am really losing my hotspot client because their download terminate before they get additional browsing time.

help please

Re: Top Up Credit unit

Posted: Wed Mar 03, 2010 4:28 pm
by sergejs
firewallrule,

do you CoA on between router and RADIUS server or not?

Re: Top Up Credit unit

Posted: Thu Mar 04, 2010 12:59 am
by eneimi
Like sergejs said, there's currently no way in routeros for a client to top up their credit themselves before it runs out.

If you use Mikrotik usermanager + hotspot for your AAA (assigning credit limits etc) then two things you need to do:
- alert the client that credit time-limit is almost up, and then
- renew the clients credit time-limit before it runs out (either manually or via scripts).

For the first, someone recently wrote scripts that you can customize to get that done for you; you'll have to search it out on the forum.

For the second, you need to enable CoA (change of authorization) on a port of your choosing in web interface of your usermanager (Router section) as well as set the same port for incoming in the Radius section of your hotspot router
/radius incoming set port=xxxx accept=yes
. This ensures that any credit added to the client is effected 'realtime', before the first credit runs out. Mikrotik usermanager uses 'profiles' to assign time-limits or volume-limits to clients. The only way you can extend the clients credit is by adding another time-limited (e.g 10min) profile to the client's original (e.g 30min) profile before the first elapses. Manually or by scripts.

Sounds a bit cumbersome but i'm sure Mikrotik will come up with a more elegant method in the future.

Re: Top Up Credit unit

Posted: Sat Mar 06, 2010 6:27 pm
by JP_Wireless
Like sergejs said, there's currently no way in routeros for a client to top up their credit themselves before it runs out.

If you use Mikrotik usermanager + hotspot for your AAA (assigning credit limits etc) then two things you need to do:
- alert the client that credit time-limit is almost up, and then
- renew the clients credit time-limit before it runs out (either manually or via scripts).

For the first, someone recently wrote scripts that you can customize to get that done for you; you'll have to search it out on the forum.

For the second, you need to enable CoA (change of authorization) on a port of your choosing in web interface of your usermanager (Router section) as well as set the same port for incoming in the Radius section of your hotspot router
/radius incoming set port=xxxx accept=yes
. This ensures that any credit added to the client is effected 'realtime', before the first credit runs out. Mikrotik usermanager uses 'profiles' to assign time-limits or volume-limits to clients. The only way you can extend the clients credit is by adding another time-limited (e.g 10min) profile to the client's original (e.g 30min) profile before the first elapses. Manually or by scripts.

Sounds a bit cumbersome but i'm sure Mikrotik will come up with a more elegant method in the future.
Thanks for your clear contributions! U know this forum is very large and searching for a piece of script can difficult expecially without an idea of when it was posted and who posted it, If you have complete idea, do help pls. So many people are interested in this. This topic has been raised long ago but thank God solution is o the way. So we are waiting and searching as well.

Re: Top Up Credit unit

Posted: Sun Mar 07, 2010 5:17 pm
by eneimi
Sorry, I know very little about scripting.
This links to some things you can try out: http://forum.mikrotik.com/viewtopic.php ... my+Hotspot
It's supposed to alert the client before time-limit elapses.

Re: Top Up Credit unit

Posted: Fri Mar 26, 2010 8:10 pm
by JP_Wireless
Like sergejs said, there's currently no way in routeros for a client to top up their credit themselves before it runs out.

If you use Mikrotik usermanager + hotspot for your AAA (assigning credit limits etc) then two things you need to do:
- alert the client that credit time-limit is almost up, and then
- renew the clients credit time-limit before it runs out (either manually or via scripts).

For the first, someone recently wrote scripts that you can customize to get that done for you; you'll have to search it out on the forum.

For the second, you need to enable CoA (change of authorization) on a port of your choosing in web interface of your usermanager (Router section) as well as set the same port for incoming in the Radius section of your hotspot router
/radius incoming set port=xxxx accept=yes
. This ensures that any credit added to the client is effected 'realtime', before the first credit runs out. Mikrotik usermanager uses 'profiles' to assign time-limits or volume-limits to clients. The only way you can extend the clients credit is by adding another time-limited (e.g 10min) profile to the client's original (e.g 30min) profile before the first elapses. Manually or by scripts.

Sounds a bit cumbersome but i'm sure Mikrotik will come up with a more elegant method in the future.
Thanks for your clear contributions! U know this forum is very large and searching for a piece of script can difficult expecially without an idea of when it was posted and who posted it, If you have complete idea, do help pls. So many people are interested in this. This topic has been raised long ago but thank God solution is o the way. So we are waiting and searching as well.
Pls help, on the web interface of the usermanager, i cant find anywhere to enable Change of Authorization.

I have attached a screen print of the router section via web interface.

Re: Top Up Credit unit

Posted: Fri Mar 26, 2010 8:27 pm
by JP_Wireless
Like sergejs said, there's currently no way in routeros for a client to top up their credit themselves before it runs out.

If you use Mikrotik usermanager + hotspot for your AAA (assigning credit limits etc) then two things you need to do:
- alert the client that credit time-limit is almost up, and then
- renew the clients credit time-limit before it runs out (either manually or via scripts).

For the first, someone recently wrote scripts that you can customize to get that done for you; you'll have to search it out on the forum.

For the second, you need to enable CoA (change of authorization) on a port of your choosing in web interface of your usermanager (Router section) as well as set the same port for incoming in the Radius section of your hotspot router
/radius incoming set port=xxxx accept=yes
. This ensures that any credit added to the client is effected 'realtime', before the first credit runs out. Mikrotik usermanager uses 'profiles' to assign time-limits or volume-limits to clients. The only way you can extend the clients credit is by adding another time-limited (e.g 10min) profile to the client's original (e.g 30min) profile before the first elapses. Manually or by scripts.

Sounds a bit cumbersome but i'm sure Mikrotik will come up with a more elegant method in the future.
Thanks for your clear contributions! U know this forum is very large and searching for a piece of script can difficult expecially without an idea of when it was posted and who posted it, If you have complete idea, do help pls. So many people are interested in this. This topic has been raised long ago but thank God solution is o the way. So we are waiting and searching as well.
Pls help, on the web interface of the usermanager, i cant find anywhere to enable Change of Authorization.

I have attached a screen print of the router section via web interface.

Re: Top Up Credit unit

Posted: Mon Mar 29, 2010 1:11 pm
by sergejs
Change of Authorization messages are supported on User Manager test package, which is available for download from forum.

Re: Top Up Credit unit

Posted: Mon Mar 29, 2010 1:47 pm
by JP_Wireless
Thanks for the enlightments!

... available for download from forum, do you mean from this forum or www.mikrotik.com/download, bcos finding it here, where do i start and if from mikrotik.com/download is it Lagacy?

Sorry for my ignorance in this aspect.