<!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 Chuan,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thx for reply amongst this heated discussion on
DHCP....</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I've currently got install freeRadius 2.1.6 and
Poptop 2.4.4 and I see no dictionary file in /etc/ppp/radius/dictionary. In fact
I have no radius directory in /etc/ppp</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>All freeradius dictionary's are located in
/usr/share/freeradius....</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The question is, how can I pass
WISPr-Bandwidth-Max-Down to ip-up.local as I was hoping it would be in in
/var/run/radattr.pppX, but all thats in there is:-</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial><FONT face=Courier><BR>Framed-IP-Address
192.168.0.70<BR>Session-Timeout 1646690<BR>MS-CHAP2-Success
7S=A8CF4948283C1C4BE11682787ADBD0EA9852E691<BR>MS-MPPE-Recv-Key
\220\265J\372\250\336\342nD\226o\272\007\030I\372'\313\267@J\36<BR>1\370\266\212?_\377\262\324\215X\274\357<BR>MS-MPPE-Send-Key
\235\342\367\325\243\210\020\217|H\314WkU0\201\352\374\364\023\<BR>220\220\315z\364\277\254\361\356["Ce\002<BR>MS-MPPE-Encryption-Policy
<BR>MS-MPPE-Encryption-Types</FONT> </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2 face=Arial><STRONG>However we can see WISPr-Bandwidth-Max-Down
being sucessfully passed to FreeRadius?</STRONG></FONT></DIV>
<DIV><FONT size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT size=2 face=Courier></FONT> </DIV>
<DIV><FONT size=2 face=Courier>++[exec] returns noop<BR>Sending Access-Accept of
id 198 to 127.0.0.1 port 53025<BR>
Framed-IP-Address := 192.168.0.70<BR>
WISPr-Bandwidth-Max-Down := 512000<BR>
Session-Timeout = 1646690<BR>
MS-CHAP2-Success =
0x37533d41384346343934383238334331433442453131363832373837414442443045413938353245363931<BR>
MS-MPPE-Recv-Key =
0x0b660d35b65015368d107e57d97e2b55<BR>
MS-MPPE-Send-Key =
0xc78164fb4478212fbd0d198389ee2d52<BR>
MS-MPPE-Encryption-Policy =
0x00000001<BR>
MS-MPPE-Encryption-Types = 0x00000006<BR>Finished request 3.<BR>Going to the
next request<BR>Waking up in 4.9 seconds.<BR>Cleaning up request 3 ID 198 with
timestamp +244<BR>Ready to process requests.<BR>rad_recv: Accounting-Request
packet from host 127.0.0.1 port 38836, id=199,
length=98<BR> Acct-Session-Id =
"4A2EE3A302FB00"<BR> User-Name =
"test99"<BR> Acct-Status-Type =
Start<BR> Service-Type =
Framed-User<BR> Framed-Protocol =
PPP<BR> Acct-Authentic =
RADIUS<BR> NAS-Port-Type =
Async<BR> Framed-IP-Address =
192.168.0.70<BR> NAS-IP-Address =
127.0.0.1<BR> NAS-Port =
0<BR> Acct-Delay-Time = 0<BR>+-
entering group preacct {...}<BR>++[preprocess] returns ok</FONT></DIV>
<DIV><FONT size=2 face=Courier></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I would love to use WISPr as suggested, but cannot
find out how to get this to work.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Currently I've just defaulted EVERYONE to the same
bandwidth restrictions by using the follow script in
/etc/ppp/ip-up.local</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Courier><STRONG>ip-up.local</STRONG><BR></FONT></DIV>
<DIV><FONT size=2 face=Courier>DOWNSPEED=256<BR>UPSPEED=768<BR>
/sbin/tc qdisc del dev $1 root > /dev/null<BR>
/sbin/tc qdisc del dev $1 ingress > /dev/null<BR>##### speed
server->client<BR> if [ "$UPSPEED" != "0" ] ;<BR>
then<BR> /sbin/tc qdisc add dev $1 root handle 1: htb default
20 r2q 1<BR> /sbin/tc class add dev $1 parent 1: classid 1:1
htb rate ${UPSPEED}kbit burst 4k<BR> /sbin/tc class add dev $1
parent 1:1 classid 1:10 htb rate ${UPSPEED}kbit burst 4k prio
1<BR> /sbin/tc class add dev $1 parent 1:1 classid 1:20 htb
rate ${UPSPEED}kbit burst 4k prio 2<BR> /sbin/tc qdisc add dev
$1 parent 1:10 handle 10: sfq perturb 10 quantum 1500<BR>
/sbin/tc qdisc add dev $1 parent 1:20 handle 20: sfq perturb 10 quantum
1500<BR> /sbin/tc filter add dev $1 parent 1:0 protocol ip
prio 10 u32 match ip tos 0x10 0xff flowid 1:10<BR> /sbin/tc
filter add dev $1 parent 1:0 protocol ip prio 10 u32 match ip protocol 1 0xff
flowid 1:10<BR> /sbin/tc filter add dev $1 parent 1: protocol
ip prio 10 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u160x0000
0xffc0 at 2 match u8 0x10 <BR>0xff at 33 flowid 1:10<BR> fi <BR>#####
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}kbit burst 12k
drop flowid :1<BR> fi<BR>/sbin/ifconfig $1 mtu 1400</FONT></DIV>
<DIV><FONT size=2 face=Courier></FONT> </DIV></BODY></HTML>