pppoe+radius server
Abu Khaled
khaled.abu at gmail.com
Fri Jul 8 03:48:51 GMT 2005
On 7/8/05, Hernán Freschi <drgenio at gmail.com> wrote:
> > http://lists.freebsd.org/pipermail/freebsd-isp/2005-March/002967.html
> >
> > hope that helps...
>
> 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:
>
> Phase: Filter "64:32"
>
> Notice it says "filter", not filter-id
>
> so my /etc/ppp/ppp.linkup looks like this:
>
> default:
> bg /etc/ppp/addclient.sh USER INTERFACE HISADDR RAD_FILTER_ID
>
> and addclient.sh just:
>
> echo $1 $2 $3 $4 >> /test.log
>
> and /test.log looks like
>
> username tun0 10.20.20.20 RAD_FILTER_ID
>
> 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?
>
> 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 = 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
--
Regards.
Abu Khaled
More information about the freebsd-net
mailing list