take a look at this: wrtbwmon.
A small shell script designed to run on linux powered routers (OpenWRT, DD-WRT, Tomato, and other routers where shell access is available). It provides per user bandwidth monitoring capabilities and generates usage reports.
You might need only that, but i haven't tried it yet. I got the reference from here: Bandwidth Monitoring.