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

    Easy torrent shaper for home use revised

    Scheduled Pinned Locked Moved Traffic Shaping
    2 Posts 2 Posters 3.8k 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.
    • S
      senser
      last edited by

      This is an update (fine tune) of my "easy torrent shaper for home use" (see http://forum.pfsense.org/index.php/topic,58781.0.html for details).

      Q: How does this manage to identify ALL the torrent traffic?
      A: All outgoing connections are low priority by default - you specify the high priority traffic, all incoming connections are high priority by default - you specify the low priority traffic.

      Q: Why would I want this?
      A: You can leech and seed more efficient, all the time, while at the same time surf the web quickly, watch smooth HD streams…

      Q: What do I have to keep in mind?
      A: You need to scale all the values given as Kbits/s to suit your connection speeds. You also need to write some firewall rules to queue your traffic (examples given below).

      The shaper:

      Incoming Parent: HFSC (LAN interface)
      Options: RED, ECN
      Bandwidth: 6912Kbit/s
      Upperlimit: - - 6912Kbit/s
      Realtime: - - 6912Kbit/s

      Incoming "qDefault"
      Options: Default, RED
      Bandwidth: 40%
      Upperlimit: 95% 50 90%
      Realtime: 80% 300 60%
      Shared: - - 40%

      Incoming "qLow"
      Options: RED, ECN
      Bandwidth: 10%
      Upperlimit: 95% 100 85%
      Realtime: - - -
      Shared: 0% 50 40%

      Outgoing Parent: HFSC (WAN interface)
      Bandwidth: 736Kbit/s

      Outgoing "qACK" [2]
      Options: None
      Bandwidth: 40Kbit/s
      Upperlimit: - - -
      Realtime: - - 40Kb
      Shared: - - 40Kb

      Outgoing "qHigh"
      Options: RED, ECN
      Bandwidth: 40%
      Upperlimit: 95% 50 90%
      Realtime: 70% 100 60%
      Shared: - - 40%

      Outgoing "qDefault"
      Options: Default, RED, ECN
      Bandwidth: 10%
      Upperlimit: 90% 300 70%
      Realtime: - - -
      Shared: 0% 200 10%

      Attached images show some firewall rule examples to use with this shaper:

      • The first one shows examples on how to prioritize outbound (eg web) traffic.
      • The second one shows examples on how to de-prioritize inbound (eg torrent) traffic.
        outgoing.png
        outgoing.png_thumb
        incoming.png
        incoming.png_thumb

      We use the mighty pf, we cannot be fooled.

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

        Nice write up.
        i've already created "reversed" torrent shaper.. So I do allow torrent to be used, but if you can use it with ~10kbps connection  ;D

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