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

    Limit download over x filesize

    Traffic Shaping
    3
    9
    4.7k
    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.
    • M
      mystycs
      last edited by

      Is there a way to limit a download over lets say 20MB to throttle at 16KB? I am trying to limit files over 20MB to thortle at lets say 16KB a second. I am trying to figure it out but cant figure out how to do that.

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

        On pfSense 2.1 limiters have a "burst" parameter where you set a total amount of data to allow before the limit kicks in.

        It may not be perfect but it's probably as close as you'd get. Set the limiter for a burst of 20MB and then an actual limit of 16Kbit/s and it should sort of do what you want.

        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
        • M
          mystycs
          last edited by

          Got it, i just heard that 2.1 has a lot of bugs so i dont know if i should use it for a live solution.

          1 Reply Last reply Reply Quote 0
          • M
            mystycs
            last edited by

            Okay so i am trying to limit my internet to 128Kbit down and up. So do i create a new limiter for this?

            Basically i go to a site download a file thats 50MB, after 20MB of it downloading at full 128Kbit speed it should slow down to 64Kbit.

            Im confused how to set this up exactly i installed 2.1

            1 Reply Last reply Reply Quote 0
            • M
              mystycs
              last edited by

              And i want it to distinguish http downloads only.

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

                You'd use one limiter for upload, one for download. Always in pairs.

                To distinguish HTTP, just add the limiters to a rule that passes traffic out on port 80. Make sure it's above your default allow out rule for general internet traffic.

                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
                • M
                  mystycs
                  last edited by

                  Yeah that i understand but i dont want to limit traffic on all of port 80 or all http. Just downloads for example if i download an .exe,zip,mkv,mov,avi

                  When i start a download on my browser basically. Is there a way to distinguish and choke that after 20mb?

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

                    not without running the traffic through a proxy (e.g. squid+squidguard, dansguardian) though I'm not sure any of those support limiting over X size, that would be what you'd need to use to distinguish by extension

                    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
                    • N
                      nothing
                      last edited by

                      Such a "smart" shaper could be done with squid and delay pools.

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