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

    Per ip bandwidth if file size is more than 3Mo

    Scheduled Pinned Locked Moved Traffic Shaping
    3 Posts 3 Posters 1.6k 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
      cathan
      last edited by

      Hello everybody,

      i'm new with this forum and with pfsense, my english is bad so please be kind.

      I always use squid with ubuntu to control bandwidth for user download speed.

      i give full bandwith for file size less than 3Mo but limit the download speed to 32k/s if file size is more than this.

      here is the code i use with squid:

      acl ALL src all
      acl myFriends src 192.168.1.100-192.168.1.125/24

      delay_pools 2

      delay_class 1 1
      delay_parameters 1 -1/-1
      delay_access 1 allow myFriends

      delay_class 2 2
      delay_parameters 2 -1/-1           32000/1048576
      delay_access 2 allow ALL

      With pfsense i created two traffic shaper for in=32k and out=20k and i created a new rules for each user ip. it works perfectly but it always limit the speed at 32k for every file size.

      i want if it is possible to let max speed for browsing and file with size less than 3Mo but limit to 32k/s file size bigger than 3Mo.

      if someone can show me how to do this….

      thank you in advance.

      1 Reply Last reply Reply Quote 0
      • K
        kathampy
        last edited by

        If you're specifically looking for HTTP/FTP file sizes you can use an L7 pattern to determine the file size. Otherwise the queues normally let you configure a higher burst speed for a fixed duration and lower that connection's speed after that.

        1 Reply Last reply Reply Quote 0
        • P
          perryrandall
          last edited by

          You should be able to do it with a HFSC scheduler

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