Kupiki-Hotspot-Script icon indicating copy to clipboard operation
Kupiki-Hotspot-Script copied to clipboard

Question: Download speed time allocation.

Open reigelgallarde opened this issue 6 years ago • 9 comments

I have searched many days but can't find the answer.

Is there a way have different download/upload speed based on time?

What we have now is we can make a user that has time expiry.. After time allocated being used up, the device will now have no internet and will need to login again.

What I'm looking for is that a user will have a time with max download speed. So when the time is used up, I don't want the user be disconnected, but just lower the download speed.

Is this possible?

reigelgallarde avatar Jan 25 '18 06:01 reigelgallarde

Even i don't have the answer, that could be cool to have an option to do that !

pihomeserver avatar Jan 25 '18 20:01 pihomeserver

a week passed.

I can say this is not a ready made option.

Possible solutions I could think of:

  1. Create custom sqlcounter. But this I'm not sure.
  2. Create a daemon script that runs chilli_query authorize. Automatic login for not logged in connected users and give them minimal bandwidth. Problem is, we have to give the users an idea where to login.

reigelgallarde avatar Jan 30 '18 01:01 reigelgallarde

That's possible, use the database and some simple script to change the Bandwidth limit. you should have 2 pre-config bandwidth in daloradius, change it in database using python script.

On Tue, Jan 30, 2018 at 9:59 AM, Reigel Gallarde [email protected] wrote:

a week passed.

I can say this is not a ready made option.

Possible solution I could think of:

  1. Create custom sqlcounter. But this I'm not sure.
  2. Create a daemon script that runs chilli_query authorize. Automatic login for not logged in connected users and give them minimal bandwidth. Problem is, we have to give the users an idea where to login.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pihomeserver/Kupiki-Hotspot-Script/issues/77#issuecomment-361451519, or mute the thread https://github.com/notifications/unsubscribe-auth/AQi4whOotzF-cCtYNb-mA3xLwTis1lcwks5tPndzgaJpZM4RsZXT .

vanrion avatar Jan 30 '18 09:01 vanrion

everything in daloradius is stored in database.

On Tue, Jan 30, 2018 at 5:41 PM, Vanki Guro [email protected] wrote:

That's possible, use the database and some simple script to change the Bandwidth limit. you should have 2 pre-config bandwidth in daloradius, change it in database using python script.

On Tue, Jan 30, 2018 at 9:59 AM, Reigel Gallarde <[email protected]

wrote:

a week passed.

I can say this is not a ready made option.

Possible solution I could think of:

  1. Create custom sqlcounter. But this I'm not sure.
  2. Create a daemon script that runs chilli_query authorize. Automatic login for not logged in connected users and give them minimal bandwidth. Problem is, we have to give the users an idea where to login.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pihomeserver/Kupiki-Hotspot-Script/issues/77#issuecomment-361451519, or mute the thread https://github.com/notifications/unsubscribe-auth/AQi4whOotzF-cCtYNb-mA3xLwTis1lcwks5tPndzgaJpZM4RsZXT .

vanrion avatar Jan 30 '18 09:01 vanrion

Also there are counters from coova that could reduce the bandwidth so seems to be possible in theory

It seems that counters have only one parameter assigned so not sure how to achieve the check for a limited time then limitied bandwidth

But like @vanrion said, all is SQL :-)

pihomeserver avatar Jan 30 '18 10:01 pihomeserver

changing this with the second pre-configured bandwidth with limited speed, this might work.. ex: 1st config "Bandwidth_limit" (max speed" 2nd config "Bandwidth_limit_2" (with limited speed)

On Jan 30, 2018 6:04 PM, "Pi Home Server" [email protected] wrote:

Also there are counters from coova that could reduce the bandwidth so seems to be possible in theory

It seems that counters have only one parameter assigned so not sure how to achieve the check for a limited time then limitied bandwidth

But like @vanrion https://github.com/vanrion said, all is SQL :-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pihomeserver/Kupiki-Hotspot-Script/issues/77#issuecomment-361542698, or mute the thread https://github.com/notifications/unsubscribe-auth/AQi4wmIUfDi8n6TOUGkf7bBGf6Bf2O7xks5tPukwgaJpZM4RsZXT .

vanrion avatar Jan 30 '18 13:01 vanrion

@vanrion when you say

script to change the Bandwidth limit

do you mean update the database value for the limit?

Because if that's the case, chilli will set everything on login and whatever you change on database will not took effect until the user logs in again...

reigelgallarde avatar Jan 31 '18 05:01 reigelgallarde

also, I'm trying to get away with daloradius because it seems they are not active now... I'm not sure if they're planning to support freeradius 3. But I surely hope they will.

reigelgallarde avatar Jan 31 '18 05:01 reigelgallarde

Maybe one possible way is to use unlang in configuration file to update bandwith limit attribute. Still looking what can it's possible to achieve with it

About daloradius, no time for now to continue to work on the admin (https://github.com/Kupiki). I want to finish first the traffic logger for mandatory laws (at least France). Help is welcome if you know about NodeJS and React ;)

pihomeserver avatar Jan 31 '18 07:01 pihomeserver