<!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 all again,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Ok, I've got WISPr-Bandwidth-Max-Down in
/var/run/radattr.ppp0 but the value is all wrong.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I set WISPr-Bandwidth-Max-Down = 512000 (as a
reply)</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>and in /var/run/radattr.ppp0 its show as -
WISPr-Bandwidth-Max-Down <STRONG>-1062731706</STRONG></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I just basically copied the dictionary.wispr to
/usr/share/radiusclient-ng as in order to get it loaded in
radattr.ppp0 :-</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Courier>[root@xxx radiusclient-ng]# more
dictionary.wispr<BR>ATTRIBUTE
WISPr-Location-ID
1
string<BR>ATTRIBUTE
WISPr-Location-Name
2
string<BR>ATTRIBUTE
WISPr-Logoff-URL
3
string<BR>ATTRIBUTE
WISPr-Redirection-URL
4
string<BR>ATTRIBUTE
WISPr-Bandwidth-Min-Up
5
integer<BR>ATTRIBUTE
WISPr-Bandwidth-Min-Down
6
integer<BR>ATTRIBUTE
WISPr-Bandwidth-Max-Up
7
integer<BR>ATTRIBUTE
WISPr-Bandwidth-Max-Down
8
integer<BR>#ATTRIBUTE
WISPr-Session-Terminate-Time
9
string<BR>#ATTRIBUTE
WISPr-Session-Terminate-End-Of-Day
10
string<BR>ATTRIBUTE
WISPr-Billing-Class-Of-Service
11 string</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Any ideas please.</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>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=nev@itsnev.co.uk href="mailto:nev@itsnev.co.uk">Neville</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeradius-users@lists.freeradius.org
href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, June 09, 2009 10:45
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: PPTPD Bandwidth
Shaping</DIV>
<DIV><BR></DIV>
<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></BLOCKQUOTE></BODY></HTML>