<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>i try to do bandwidth quota limitation like this</P><P>first i define the sqlcounter with attribut from ChilliSpot-Max-All-Total-Octets <BR></P><P>=====start code===========</P><P> sqlcounter batasquota {<BR> counter-name = Max-All-MB<BR> check-name = Max-All-MB<BR> reply-name = ChilliSpot-Max-Total-Octets<BR> key = User-Name<BR> reset = never<BR> query = "SELECT SUM(acctinputoctets+acctoutputoctets) from radacct WHERE UserName='%{%k}'"<BR> sqlmod-inst = sql<BR> }<BR>====end code===<BR></P><P>then i defined the sqlcounter name in instantiate and authorize section.</P><P>when i restart my radius server, the server cannot identify the attribut ChilliSpot-Max-Total-Octets, i try to find out and i know it because the attribute is not listed in dictionary, i do add the dictionary.chillispot to freeradius
dictionary like this </P><P>=============start code====================</P><BR><BR># See the 'man' page for 'dictionary' for information on<BR># the format of the dictionary files.<BR><BR>#<BR># If you want to add entries to the dictionary file,<BR># which are NOT going to be placed in a RADIUS packet,<BR># add them here. The numbers you pick should be between<BR># 3000 and 4000.<BR>#<BR><BR>#ATTRIBUTE My-Local-String 3000 string<BR>#ATTRIBUTE My-Local-IPAddr 3001 ipaddr<BR>#ATTRIBUTE My-Local-Integer 3002 integer<BR><BR>ATTRIBUTE ChilliSpot-Max-Input-Octets 1 integer ChilliSpot<BR>ATTRIBUTE ChilliSpot-Max-Output-Octets 2 integer ChilliSpot<BR>ATTRIBUTE ChilliSpot-Max-Total-Octets 3 integer ChilliSpot<BR><P>=======================end code=================</P><P>i restart my radius server i found this on
restart <BR></P><P>========================start code==================</P><P>Fri May 15 16:24:50 2009 : Info: Starting - reading configuration files ...<BR>Fri May 15 16:24:50 2009 : Error: Errors reading radiusd.conf<BR>=======================end code==================<BR></P><P>then i try to view debug and got this message</P><P>=========================start code==============</P><P>read_config_files: reading dictionary<BR>Errors reading dictionary: dict_init: /etc/freeradius/dictionary[33]: unknown vendor ChilliSpot<BR>Errors reading radiusd.conf<BR>===========================end code======================<BR></P><P>unknown vendor..?? please help me for this...</P><P>clue please, so much appreciate for any reply..</P><P>regard </P>--- On <B>Thu, 5/14/09, Ivan Kalik <I><tnt@kalik.net></I></B> wrote:<BR><BLOCKQUOTE style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><BR>From: Ivan Kalik
<tnt@kalik.net><BR>Subject: Re: how to limiting user bandwidth by quota..<BR>To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org><BR>Date: Thursday, May 14, 2009, 4:54 PM<BR><BR><DIV class="plainMail">> thank you ahmed..which script??is that script belongs to freeradius or..<BR>> iam using chillispot, as alan sugest me there is no specified attribute to<BR>> do limiting bandwidth by quota,.do you know what type attribut of<BR>> chillispot can do this??or you can give simple or detailed tutorial to do<BR>> so please..<BR>><BR><BR>ChilliSpot has attributes for input, output and total octets. Have a look<BR>in the dictionary.chillispot and in ChilliSpot documentation.You replace<BR>Session-Timeout with ChilliSpot attribute and alter counter query to count<BR>octets and not session time.<BR><BR>Ivan Kalik<BR>Kalik Informatika ISP<BR><BR>-<BR>List info/subscribe/unsubscribe? See <A
href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>