From owner-freebsd-net@FreeBSD.ORG Fri Jul 8 03:48:51 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 BEAF916A41C for ; Fri, 8 Jul 2005 03:48:51 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 591C743D49 for ; Fri, 8 Jul 2005 03:48:51 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so348831wra for ; Thu, 07 Jul 2005 20:48:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eXeoTibkApvAXzhrwbRzC3RURwvx1iendtcmk83qwErmsM8TS6ACJ12k3lKez+exz1zDHJx9THCXG/nDgXt0TCk2VMyDlMPSbJBrHZq/4YVtVpvRR9SOLCjSLPJk1W27eK9HrrelhjltLMDiO1eY8jqPWWSNnmzDttDTOao1NVw= Received: by 10.54.33.65 with SMTP id g65mr1356393wrg; Thu, 07 Jul 2005 20:48:50 -0700 (PDT) Received: by 10.54.66.16 with HTTP; Thu, 7 Jul 2005 20:48:50 -0700 (PDT) Message-ID: Date: Fri, 8 Jul 2005 06:48:50 +0300 From: Abu Khaled To: =?ISO-8859-1?Q?Hern=E1n_Freschi?= In-Reply-To: <25a1a09905070714551cd551f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <25a1a0990507061634655433ec@mail.gmail.com> <036f01c582a6$baa0ce90$42764eca@ilo.skyinet.net> <25a1a09905070714551cd551f@mail.gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: pppoe+radius server X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Abu Khaled List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 03:48:51 -0000 On 7/8/05, Hern=E1n Freschi wrote: > > http://lists.freebsd.org/pipermail/freebsd-isp/2005-March/002967.html > > > > hope that helps... >=20 > great great, only one problem. i make the radius server send the > Filter-Id attr, with value "64:32" for 64 down/32 up. It seems to get > to ppp: /etc/ppp/ppp.log: >=20 > Phase: Filter "64:32" >=20 > Notice it says "filter", not filter-id >=20 > so my /etc/ppp/ppp.linkup looks like this: >=20 > default: > bg /etc/ppp/addclient.sh USER INTERFACE HISADDR RAD_FILTER_ID >=20 > and addclient.sh just: >=20 > echo $1 $2 $3 $4 >> /test.log >=20 > and /test.log looks like >=20 > username tun0 10.20.20.20 RAD_FILTER_ID >=20 > seems like ppp doesn't replace RAD_FILTER_ID with the Filter-Id > attribute from the server. It should do that, right? Or did I got > something wrong? >=20 > thanks is a label you can use in ppp.linkup and ppp.linkdown to execute additional commands/scripts. in ppp.linkup default: bg /etc/ppp/addclient.sh USER INTERFACE HISADDR # : # bg