As I have more internet than I can use myself and I have free router I don't use I was thinking about making a free hotspot for the neighbors. Unfortunately, my traffic is limited though so I'd like to have some limits for its day usage. I will install dd-wrt or openwrt on the router to do that but last time I was trying to calculate traffic usage under Linux I had to write my own ulog filter for netfilter and I'd like to avoid doing so now. So is there a product I can use to achieve my goals i.e. break all connections for a day when limit is hit (or shape them down to 32kbps)?
feedback
|
|
Looks like with modern iptables limiting traffic is rather easy task. Meet module quota:
This will accept 1K of data and then drop all the connections :) You can even see how much traffic is left
and after a while
Looks like if I can install this module on OpenWRT limiting the traffic would be an easy task. | ||||
|
feedback
|
|
To shape down the traffic, iptables would work on one of the two Here is an openwrt forum thread reference for ideas -- Traffic shaping QOS howto; | |||
feedback
|
|
Gargoyle is a firmware like WRT and can calculate quota and limit it per IP. Here the link. http://www.gargoyle-router.com I wish Tomato and DD-WRT will develop the same feature. | ||||
|
feedback
|
|
If you have a computer that's typically always on you can use it as your gateway, and measure statistics on there. Edit: since the gateway option is not a possibility, have you ever tried tomato firmware? It has a lot of features, probably much more than you will need. There is ways to disable wireless at certain times, and limit speeds as far as I know. There are also a couple QoS options. My favourite feature in tomato is the fact that you can create cron jobs, these allow you to prune access times for users easily. You could also use cron to check the bandwidth used periodically, and slow down the connection or stop it entirely based on how much has been used. | ||||
|
feedback
|
