I currently have a radius server running and I would like to enable bandwidth shaping and accounting using a linux server as a gateway. I've researched for solutions online but not found exactly what I'm after. Can anyone point me in the right direction? This setup would be similar to what is required by and ISP.
As far as I know so far, I would use IPTables to control routing and possible qdisc for shaping? But I have no idea how I could enable shaping depend on the client or using Radius in conjunection with the server for authentication and accounting.
The preferred flavour of linux would be Ubuntu server but open to suggestion.