Routeros & FreeRadius protocol shaping

Good day all you awesome people

We have a Mikrotik as our PPPoE server and communicates with our FreeRadius server (which has a back end) for infomation like “bandwidth left” and “line speed” for clients.
Clients dial in to it with their own MikroTik. All of this is working perfect. If they hit their bandwidth cap, we drop their line speed untill they top up and such.

Now we would like to shape certain protocols and provide shaped / unshaped packages.. Giving HTTP, HTTPS, POP and SMTP a higher priority over everything else for the shaped package.

Can this be done by FreeRadius passing on an attribute to the MikroTik PPPoE server when the client logs in?

We really want to keep everything centralised, in other words, all the attributes get passed on by FreeRadius and we dont have to go configure each client on the MikroTik for their shaping.

Thank you in advance! :slight_smile:

Hi jeansieb,

I am interested in the backend you are using for freeradius.
I have tried daloradius, but it is not so nice..
What are you using?
Please sent me a PM if possible to contact you.

kind regards,

Paul

we are using our own custom developed application for FreeRadius and it works great
but i am afraid protocol based shaping can’t be done from FreeRadius

Yes there is an address-list attribute that will add their IP to a specific address list. You can then match your mangle policies against this.

i think he is referring to P2P traffic shaping in this topic can you explain how he can get the list of all ips serving p2p traffic??