CP with Prepaid Timer !!



  • Now, I used freeradius2 as user database and controlled with captive portal … Everything is ok .. There's already contain time expiration and usage limit for aday or week or month .. But I want to make the user with prepaid time card .... and how can i do with that ... on pfsense .. ??

    If there's any package i need, pls ,, let me know ..



  • You should try with "forever" option.
    If you then setup a username (testuser) and a password (testpassword) and a timelimit of 60minutes the user can use the internet for 60minutes. But you must enable "logout popup windows" so that the user can disconnect and the time will stop counting.

    If the user reached the limit he cannot reconnect anymore.

    If the user re-charge his "prepaid" card then there are two possibilities you can try:

    1.) This is working:
    You have to create a new unique user you never used before and set a new time limit

    2.) This must be tested:
    The first time the user had 60min. If the user buys another 60min you should try with increasing the value on freeradius from 60 to 120. But not sure if this is working.

    Perhaps this will help you:
    http://doc.pfsense.org/index.php/FreeRADIUS_2.x_package



  • Very Very Nice …. I forgot the FOREVER Option .. That's nice ... !!
    Thank you so much .. !!!

    Btw, I also want to know the accounts status (especially the time remaining, the expiration date, so on.) . . .
    How can i write make the page like that .. is it on status page or log out pop up page ??

    And how could i configure to see the status page when the user log on..

    And I tested the log out pop up page and sometimes it didn't showed up .. (I mean not even popup blocker notification)

    I want to know the right configuration ... if you could tell .. please .. !!  ???



  • This is a very nice topic that can be applied to a big company on which employees can only be given a specific time to access the internet and not just wasting the bandwidth. I am very much interested on how this is gonna be done.



  • ??? ??? ??? ??? ???

    NO BODY .. !!! ???

    :-\ :-\ :-\ :-\



  • Best thing is if you do accounting on a mysql database and then use a webpage to get the information of the different users.
    This package cannot display such things.

    Perhaps this will help you:
    http://freeradius.org/dialupadmin.html



  • im sorry if im interrupt ..
    how about 60minutes in 1 day(24hours) ?? ..
    user will disconnect when 60 minutes timelimit reached
    or user will disconnect when 1 day airtime reached ..

    either one have reached its limit, user will be disconnect.
    this can be done with freeradius2 or with other package?

    thanks in advance ..



  • @asura:

    im sorry if im interrupt ..
    how about 60minutes in 1 day(24hours) ?? ..
    user will disconnect when 60 minutes timelimit reached
    or user will disconnect when 1 day airtime reached ..

    either one have reached its limit, user will be disconnect.
    this can be done with freeradius2 or with other package?

    thanks in advance ..

    Hi,

    if you want that a user should be only allowed to use the internet for 60 minutes a day then this can be done with freeradius2 and captiveportal.
    http://doc.pfsense.org/index.php/FreeRADIUS_2.x_package#Amount_of_Time



  • Does the built-in freeradius2 package allowing pausing of the timer or must this be done through a MySQL database for the accounting?



  • @fsantaana:

    Does the built-in freeradius2 package allowing pausing of the timer or must this be done through a MySQL database for the accounting?

    This must be done through CP (disconnect) or the user itself (CP logout window).
    So when a user authenticates the CP sends an accounting start packet with the time. freeradius is counting the time transferred from CP to freeradius. If CP sends an accounting stop packet, the freeradius is stopping counting.

    accounting stop is in general send when the user disconnects from CP. The user can force that with the "logout window".

    The time counting used by freeradius is just counting the time the user is really connected.
    Using a voucher is different - there you start a countown with the first connection - no matter if connected or not.


Locked