<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi everyone,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I was hoping for a few pointers on
this...</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>My setup is
<internet><freeradius><ppp><work></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>This is working fine with the exception of
Bandwidth Shaping.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Basically, I want to create my own ATTRIBUTES for
setting Max-UP / Max-Down and use ip-up.local to "AWK" these attributes
from</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Courier>if [ -f /var/run/radattr.$1 ]<BR>
then<BR> DOWNSPEED=`/bin/awk '/Max-Down-Limit/ {print $2}'
/var/run/radattr.$1`<BR> UPSPEED=`/bin/awk '/Max-Up-Limit/ {print
$2}' /var/run/radattr.$1`<BR>#echo $DOWNSPEED<BR>#echo $UPSPEED<BR>#echo
$FILTERS<BR> /sbin/tc qdisc del dev $1 root >
/dev/null<BR> /sbin/tc qdisc del dev $1 ingress >
/dev/null</FONT></DIV>
<DIV><FONT size=2 face=Courier></FONT> </DIV>
<DIV><FONT size=2 face=Courier>##### speed client->server<BR> if [
"$DOWNSPEED" != "0" ] ;<BR> then<BR> /sbin/tc qdisc add
dev $1 handle ffff: ingress<BR> /sbin/tc filter add dev $1
parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate
${DOWNSPEED<BR>}kbit burst 12k drop flowid :1<BR> fi<BR>fi</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I've tried to use the following attributes from
chillispot as a reply attribute, ChilliSpot-Bandwidth-Max-Down := 500, but I get
the following error :-</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>rlm_sql: Failed to create the pair: Invalid octet
string "500" for attribute name "ChilliSpot-Bandwidth-Max-Down"<BR>rlm_sql
(sql): Error getting data from database<BR>[sql] SQL query error; rejecting
user</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I've also copied dictionary.chillspot to
/usr/share/radiusclient-ng as:-</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2
face=Courier>VENDOR
ChilliSpot
14559</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT size=2 face=Courier>BEGIN-VENDOR
ChilliSpot</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT size=2 face=Courier>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>ATTRIBUTE
ChilliSpot-Bandwidth-Max-Up
4 integer
ChilliSpot<BR>ATTRIBUTE
ChilliSpot-Bandwidth-Max-Down
5 integer
ChilliSpot<BR>ATTRIBUTE
ChilliSpot-Config
6 string
ChilliSpot<BR>ATTRIBUTE
ChilliSpot-Lang
7 string
ChilliSpot<BR>ATTRIBUTE
ChilliSpot-Version
8 string
ChilliSpot<BR>ATTRIBUTE
ChilliSpot-OriginalURL
9 string ChilliSpot</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT size=2><BR><FONT face=Courier># Configuration management parameters
(ChilliSpot Only)<BR>ATTRIBUTE
ChilliSpot-UAM-Allowed
100 string
ChilliSpot<BR>ATTRIBUTE
ChilliSpot-MAC-Allowed
101 string
ChilliSpot<BR>ATTRIBUTE
ChilliSpot-Interval
102 integer ChilliSpot</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Not sure what else I'm missing as a majority of the
internet search point to editing /etc/raddb/dictionary, but this is not there
with freeradius 2.1.6</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Any advise work be greatly recieved.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thx</FONT></DIV>
<DIV><FONT size=2 face=Arial>Nev</FONT></DIV>
<DIV> </DIV></BODY></HTML>