Community discussions

MikroTik App
 
firewallrule
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Tue Oct 13, 2009 9:23 pm

Top Up Credit unit

Fri Dec 04, 2009 8:35 pm

How can i configure my router to give avenue to client to Top UP their credit unit before it elapse?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Mon Dec 07, 2009 2:02 pm

Currently it is not possible to do it automatically, you have to renew it or run scripts, which will assign new limitations.
 
firewallrule
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Tue Oct 13, 2009 9:23 pm

Re: Top Up Credit unit

Mon Dec 07, 2009 9:47 pm

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Tue Dec 08, 2009 3:14 pm

If you will change (Change of Authorization) settings of the client, then user should not be disconnected.
 
cybergold
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Thu May 25, 2006 3:36 am

Re: Top Up Credit unit

Tue Feb 16, 2010 2:39 pm

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Thu Feb 18, 2010 2:08 pm

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.
 
cybergold
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Thu May 25, 2006 3:36 am

Re: Top Up Credit unit

Thu Feb 18, 2010 2:29 pm

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??
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Fri Feb 19, 2010 10:36 am

I do not think this is issue anyway.
Do you use CoA (change of authorization) between your HotSpot and User-Manager?
 
cybergold
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Thu May 25, 2006 3:36 am

Re: Top Up Credit unit

Fri Feb 19, 2010 4:45 pm

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Mon Feb 22, 2010 6:05 pm

Please, describe your problem in details. Create different post, if it is different from original author's topic.
 
cybergold
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Thu May 25, 2006 3:36 am

Top Up Credit unit=new topic

Mon Feb 22, 2010 8:22 pm

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Tue Feb 23, 2010 2:49 pm

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.
 
cybergold
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Thu May 25, 2006 3:36 am

Re: Top Up Credit unit

Tue Feb 23, 2010 7:11 pm

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.
 
firewallrule
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Tue Oct 13, 2009 9:23 pm

Re: Top Up Credit unit

Fri Feb 26, 2010 7:54 pm

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Wed Mar 03, 2010 4:28 pm

firewallrule,

do you CoA on between router and RADIUS server or not?
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: Top Up Credit unit

Thu Mar 04, 2010 12:59 am

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.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Top Up Credit unit

Sat Mar 06, 2010 6:27 pm

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.
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: Top Up Credit unit

Sun Mar 07, 2010 5:17 pm

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.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Top Up Credit unit

Fri Mar 26, 2010 8:10 pm

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.
You do not have the required permissions to view the files attached to this post.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Top Up Credit unit

Fri Mar 26, 2010 8:27 pm

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.
You do not have the required permissions to view the files attached to this post.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Top Up Credit unit

Mon Mar 29, 2010 1:11 pm

Change of Authorization messages are supported on User Manager test package, which is available for download from forum.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Top Up Credit unit

Mon Mar 29, 2010 1:47 pm

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.

Who is online

Users browsing this forum: No registered users and 2 guests