Kupiki-Hotspot-Script
Kupiki-Hotspot-Script copied to clipboard
Question: Download speed time allocation.
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?
Even i don't have the answer, that could be cool to have an option to do that !
a week passed.
I can say this is not a ready made option.
Possible solutions I could think of:
- Create custom sqlcounter. But this I'm not sure.
- 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.
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:
- Create custom sqlcounter. But this I'm not sure.
- 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 .
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:
- Create custom sqlcounter. But this I'm not sure.
- 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 .
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 :-)
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 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...
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.
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 ;)