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

    Traffic shaping based on URL?

    Scheduled Pinned Locked Moved Traffic Shaping
    5 Posts 3 Posters 4.3k 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.
    • J Offline
      j0ris
      last edited by

      I'd like to limit the download speed (or lower their priority) from servers such as Rapidshare, Megaupload etc.

      If the IP(range)s of these servers were known I could use the pfsense traffic shaper, but alas.

      I know I could block access to eg. .rapidshare.com altogether by using Squid, but I just want to limit the download speed. It seems Squid also has traffic shaping support, so perhaps I could set up some filters based on URLs (.rapidshare.com, *.megaupload.com, …) in Squid, and then use the built in traffic shaping in Squid?

      Could anyone point me in the right direction?

      Googling and searching the forum, I couldn't find much on setting up traffic shaping inside Squid in combination with Pfsense.

      1 Reply Last reply Reply Quote 0
      • D Offline
        danswartz
        last edited by

        traffic shaping uses IP addresses, unfortunately.

        1 Reply Last reply Reply Quote 0
        • J Offline
          j0ris
          last edited by

          @danswartz:

          traffic shaping uses IP addresses, unfortunately.

          I know, hence my question on how to use Squid for this purpose instead of pfsense built in traffic shaping.

          1 Reply Last reply Reply Quote 0
          • X Offline
            xaviero
            last edited by

            simple, since u use squid, find overall bandwidth throttle option, or use per host throttle option. give amount Kbps for the bandwidth leecher…

            1 Reply Last reply Reply Quote 0
            • J Offline
              j0ris
              last edited by

              I tried, but gave up on Squid as I couldn't get it to work reliably with large downloads. See http://forum.pfsense.org/index.php/topic,21458.0.html

              Here's a (quick & dirty) list of Rapidshare networks: http://www.uebi.net/howtos/rapidshare-networks/rs-networks-20090908.txt

              I now set up an alias based on this list, and route Rapidshare traffic to qOthersDownL with the built in Pfsense traffic shaper.

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