Traffic Shaping activate only over certain throughput usage
-
Is it possible to only activate the traffic shaper when bandwidth usage for the month goes over say 40 GB.
I'm trying to limit the speed to 64 kbps for the last 5 GB of my download allowance.
Thanks in advance!
-
No, that isn't possible. The shaper is active all the time, and the system doesn't really keep a reliable tally for the month. It does keep data in the RRD files for graphing, but various things could cause these to be missing/invalid (rare, but it happens, and especially on NanoBSD where an unclean reboot will lose graphs entirely)
-
Hi yeah, I'm aware they're not completely accurate but it's really just a measure to basically stop a thousand pound bill from being formed.
Is there a way of reading usage data by use of a shell command (to then pass it by an if statement?) Sorry this is probably in the wrong forum now.
-
The RRDs would be more accurate than looking at interface stats at the shell, since they will persist across reboots and don't roll over/reset like the interface counters (which wrap after a while)
Relying on RRDs could end up worse because you think you're protected and it would almost always estimate low (especially with missing data) so you'd nearly always exceed what you expected.