• 18Aug

    หัวข้อนี้ ติดตั้ง เพื่อให้ สามารถสร้างบัตรอินเทอร์เน็ตประเภท ชั่วโมง  … เช่น บัตร 30 ชั่วโมง/เดือน  หรือ 30 ชั่วโมง แล้วหมดอายุ Continue reading »

  • 06May

    Summary of what I did for the Limit by Octets module. ( Softcap )

    1.) Add this to the freeradius dictionary file:

    $INCLUDE    dictionary.chillispot

    /etc/freeradius/dictionary and copy the dictionary file in this directory:

    2.) Define the module (in radius.conf)

    sqlcounter volumelimitcounter {
    counter-name = Total-Max-Octets
    check-name = Max-Octets
    reply-name = ChilliSpot-Max-Total-Octets
    sqlmod-inst = sql
    key = User-Name
    reset = never
    error-msg = “Sorry, your bandwidth has exceed the provided limit”
    query = “SELECT SUM(AcctOutputOctets+AcctInputOctets) FROM radacct where UserName=’%{%k}’”
    }

    3.) Include the volumelimitcounter module into authorize section (in radius.conf)
    authorize {

    #  See “Authorization Queries” in sql.conf
       sql
       noresetcounter
       volumelimitcounter
    }

    4.) Add the the following attributes to the freeradius-dialupadmin ( user_edit.attrs ) file:

    /etc/freeradius-dialupadmin/user_edit.attrs

    Max-Octets            Max-Octets
    ChilliSpot-Max-Total-Octets      ChilliSpot-Max-Total-Octets

    5.) Add checkitem to sql.attrmap in ( sql.attrmap ) file:

    /etc/freeradius-dialupadmin/sql.attrmap

    checkItem   Max-Octets         Max-Octets

    6.) Add replyitem to sql.attrmap in ( /etc/freeradius-dialupadmin/sql.attrmap ) file:

    replyItem   ChilliSpot-Max-Total-Octets      ChilliSpot-Max-Total-Octets

    7.) Define the volume limit in freeradius-dialupadmin:

    Do this by adding the limit through dialupadmin web interface:

    Max-Octets := xxxxxx in bytes

    8.) Define the volume limit in freeradius-dialupadmin:

    Do this by adding the limit through dialupadmin web interface:

    ChilliSpot-Max-Total-Octets := xxxxxxx in bytes

    This is a soft cap, so it will only authorize the capping on logon request.
    Remember to include “$PORTAL_MESSAGE$”Authentication error page.

    The initial testing seem to work with m0n0wall, please feel free to comment / add to this.

    Have Fun.

    Satlizard

  • 06May

    Pre-requisites

    Make sure to have configured radiusd with rlm_sqlcounter installed. If you are using FreeRadius version 1.1.0 or newer then Rlm_sqlcounter is installed by default.

    Make sure to have radiusd running properly under sql and there must be a “sql” entry under accounting{ } section of radiusd.conf

    Continue reading »

  • 02Oct

    Continue reading »

  • 17Sep

    Radius Attribute Support

    ChilliSpot supports the following radius attributes

    * ข้อมูลเหล่านี้ใช้กับ Chillispot ได้

    Continue reading »

  • 17Sep

    สามารถใช้ Atrribute Acct-Interim-Interval

    เพิ่มในตาราง radreply เพื่อให้ NAS ส่ง ข้อมูลการใช้มาที่ radius server ครับ

    Continue reading »