<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
It complaining about time, not usage?<br>
<br>
Marco<br>
<br>
Marcel Grandemange wrote:
<blockquote cite="mid:014801c923de$b4305cb0$1c911610$@za.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>I
have a working
FreeRadius installation used for PPPOE clients using a Mikrotik NAS
(Essentialy
Linux)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>I
am using Freeradius
to limit data a user can send/receive within a month and automatically
reset it
every month.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>I
used an example
from chilliuspot hotspot for this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>However
what im
noticing is sometimes a customer gets denied access because he has
exceeded
he’s monthly allowance, however when I check the<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>Db
this is not the
case cause it’s the beginning of month.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>This
only happens
sometimes so im lost!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>I
use sqlcounter.conf
for the counter part of things and INCLUDE this from radius.conf.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>sqlcounter
monthlytraffic {<o:p></o:p></p>
<p class="MsoNormal"> <span style="color: rgb(31, 73, 125);">></span>
counter-name = Monthly-Traffic<o:p></o:p></p>
<p class="MsoNormal"> <span style="color: rgb(31, 73, 125);">></span>
check-name = Max-Monthly-Traffic<o:p></o:p></p>
<p class="MsoNormal"> <span style="color: rgb(31, 73, 125);">></span>
reply-name = Mikrotik-Xmit-Limit-Gigawords<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>
sqlmod-inst = sql<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>
key = User-Name<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>
reset = monthly<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>query
= "SELECT
SUM(AcctInputOctets - GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)),
0))+
SUM(AcctOutputOctets -GREATEST((%b - <span
style="color: rgb(31, 73, 125);">></span>UNIX_TIMESTAMP(AcctStartTime)),
0)) FROM radacct WHERE UserName='%{%k}' AND
UNIX_TIMESTAMP(AcctStartTime) +
AcctSessionTime > '%b'"<o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">></span>Anybody
for input? I
would greately appreciate help here! A Work around is to simply
increase he’s
allowance till he is allowed to connect!<span
style="color: rgb(31, 73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Here is
an update… I have created
an entirely new account that has NO history and yet I get same issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Following
in radius.log<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Wed Oct
1 17:51:46 2008 : Auth:
Invalid user (rlm_sqlcounter: Maximum monthly usage time reached):
[njale/<CHAP-Password>] (from client OldPPPOES port 40541 cli
00:0C:29:0B:44:66)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I kept
increasing the data limit
via dialupadmin till it allowed me to connect…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 12pt; font-family: "Times New Roman","serif";"><br>
<br>
__________ NOD32 3485 (20081001) Information __________<br>
<br>
This message was checked by NOD32 antivirus system.<br>
<a moz-do-not-send="true" href="http://www.eset.com">http://www.eset.com</a><o:p></o:p></span></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
-
List info/subscribe/unsubscribe? See <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a></pre>
</blockquote>
</body>
</html>