Migrating from Mikrotik NAS to FreeBSD

Cassiano Peixoto peixotocassiano at gmail.com
Tue Jul 21 19:37:16 CEST 2015


On Tue, Jul 21, 2015 at 12:23 PM, Stefan Paetow <Stefan.Paetow at jisc.ac.uk>
wrote:

> > I have in my freeradius database mikrotik attributes like
> > Mikrotik-Rate-Limit. But MPD uses mpd-limit attribute. So my question is,
> > what is the best way to replace Mikrotik-Rate-Limit with mpd-limit in a
> > radius request? When an user connect via pppoe+mpd it will look for
> > mpd-limit attribute on freeradius database, that doesn't exist, but it
> have
> > to get the info from Mikrotik-Rate-Limit values, and send it back to
> > pppoe+mpd with the right values got from Mikrotik-Rate-Limit Attribute.
>
> Can you send both sets of attributes in each response?
>

Yes, i think so. I suppose, mpd will just ignore what is not valid.


>
> Or, alternatively, do you know which clients on the FR side are Microtik
> devices and which ones are MPD? If you do, you could use the above and then
> use unlang to remove the inappropriate attributes from the response before
> you send it back.
>

Yes, i think it would be possible to add a nas type, like mikrotik, mpd,
etc.

Do you have an example how it could be done using unlang?

Thank you very much for your help.


More information about the Freeradius-Users mailing list