Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jul 2005 06:48:50 +0300
From:      Abu Khaled <khaled.abu@gmail.com>
To:        =?ISO-8859-1?Q?Hern=E1n_Freschi?= <drgenio@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: pppoe+radius server
Message-ID:  <a64c109e05070720482a0705f@mail.gmail.com>
In-Reply-To: <25a1a09905070714551cd551f@mail.gmail.com>
References:  <25a1a0990507061634655433ec@mail.gmail.com> <036f01c582a6$baa0ce90$42764eca@ilo.skyinet.net> <25a1a09905070714551cd551f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/8/05, Hern=E1n Freschi <drgenio@gmail.com> 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

<RAD_FILTER_ID> 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
# <RAD_FILTER_ID>:
# bg <script>
# example: RAD_FILTER_ID =3D d64u32
d64u32:
bg /etc/ppp/bandwidth.sh USER INTERFACE HISADDR 64 32

d128u64:
bg /etc/ppp/bandwidth.sh USER INTERFACE HISSADDR 128 64
-----

/etc/ppp/bandwidth.sh
echo USER: $1 IF: $2 IP: $3 DOWN: $4 UP: $5 >> /test.log

--=20
Regards.
Abu Khaled



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a64c109e05070720482a0705f>