Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Traffic Shaping activate only over certain throughput usage

    Scheduled Pinned Locked Moved Traffic Shaping
    4 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      craigjbass
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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)

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • C
          craigjbass
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            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.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.