From owner-freebsd-net@FreeBSD.ORG Fri Apr 1 05:10:50 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 011D016A4CE; Fri, 1 Apr 2005 05:10:49 +0000 (GMT) Received: from smtp2.skyinet.net (smtp2.skyinet.net [202.78.97.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AC6143D31; Fri, 1 Apr 2005 05:10:49 +0000 (GMT) (envelope-from fooler@skyinet.net) Received: from fooler (fooler.ilo.skyinet.net [202.78.118.66]) by smtp2.skyinet.net (Postfix) with SMTP id 85DB45BB08; Fri, 1 Apr 2005 13:10:47 +0800 (PHT) Message-ID: <024e01c53679$2c2cbf80$42764eca@ilo.skyinet.net> From: "fooler" To: "Marcin Jessa" , "Brian Somers" References: <200503311104.57782.bikrant_ml@wlink.com.np><05af01c535b8$b4a51720$42764eca@ilo.skyinet.net><20050331130213.656c4b88@dev.lan.Awfulhak.org> <20050331154150.05ccb738.lists@yazzy.org> Date: Fri, 1 Apr 2005 13:10:49 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: freebsd-isp@freebsd.org cc: freebsd-net@freebsd.org cc: bikrant_ml@wlink.com.np Subject: Re: radius client parameters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2005 05:10:50 -0000 ----- Original Message ----- From: "Marcin Jessa" To: "Brian Somers" Cc: ; ; ; Sent: Thursday, March 31, 2005 11:41 PM Subject: Re: radius client parameters > Hi Brian, guys. > > Do you plan to add additional radius atributes to the PPP code ? > The one I really miss is tx/rx data rate limitation. > It'd be great if PPP could set bandwith limit based on those atributes received from radius server(s). > I can't unfortunately code that myself but I know this is done with Linux's ppp by www.mikrotik.com/ and http://www.staros.com/ > They all provide their changed code as it's GPL'd. hello marcin... current radius rfc (rfc2865) didnt say anything about tx/rx data rate limitation radius attribute... but there is a way how to do it with freebsd :-> since freebsd ppp supported RAD_FILTER_ID and part of the access-accept radius packet type... just simply send the label to FILTER_ID radius attribute and put that label into /etc/ppp/ppp.linkup file where inside that label is doing the bandwidth management using IPFW as its bandwidth manager... just make sure you do a cleanup (removing ipfw pipe rules) inside /etc/ppp/ppp.linkdown file upon disconnection... you need a pipe number for ipfw for identification for that connection... just play with the tunnel interface number as its pipe number for easy creating and removing pipe :-> fooler.