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

    Limit Download for one member of Multi-WAN

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

      Hi everybody,

      I use a multi-WAN setup (one 100/10 and one 50/5 Mbit line) in pfSense 2.2. With help of the multiple lan/wan traffic shaper wizzard I was able to limit the upload rate for both lines individually.
      However, the ISP for one of the WANs actually requires that pfSense limits the download rate to 50Mb/s. The other WAN should not be affected by this download limit.

      Could this somehow be done with Traffic Shaping or a firewall rule?

      Thanks for your help!

      1 Reply Last reply Reply Quote 0
      • N
        Nullity
        last edited by

        @schmockolaus:

        Hi everybody,

        I use a multi-WAN setup (one 100/10 and one 50/5 Mbit line) in pfSense 2.2. With help of the multiple lan/wan traffic shaper wizzard I was able to limit the upload rate for both lines individually.
        However, the ISP for one of the WANs actually requires that pfSense limits the download rate to 50Mb/s. The other WAN should not be affected by this download limit.

        Could this somehow be done with Traffic Shaping or a firewall rule?

        Thanks for your help!

        Perhaps use limiters?
        https://doc.pfsense.org/index.php/Limiters

        Please correct any obvious misinformation in my posts.
        -Not a professional; an arrogant ignoramous.

        1 Reply Last reply Reply Quote 0
        • S
          schmockolaus
          last edited by

          Well, as fas as I understood I can use limiters only to throttle the global downstream bandwidth.
          I just want to (have to) limit one WAN, leaving the other unaffected. I have tried adding a limiter to WAN in question, but this does actually not work in my multi-WAN setup.

          Any further suggestions?

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            If only one LAN that should be pretty easy.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • S
              schmockolaus
              last edited by

              Really? Maybe you could help me out then, because I don't seem to get it.  :(

              Thanks!

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                Create a queue on the WAN you want to limit.  Put an upperlimit of 5Mbit/s  Call it qWANLimit or something
                Create a queue on LAN with an upperlimit of 50Mbit/s  Name it the same thing.

                Create a floating rule on the WAN interface you want to limit, direction out, match all traffic, and set the queue to qWANLimit.

                If you have inbound NAT translations or connections, you have to set the queues on those rules too.

                If you can, test your queues with upperlimits of, say, 10% of your capacity so you know they're working, then bump them back up.

                Sorry, but my test network is on Xen and I haven't rebuilt it with 2.1.5 so I have no altq to test it with.

                This is also imperfect in that you should separate TCP from UDP and set an ACK queue on TCP, etc.  This is just a general idea of how to get traffic for one WAN into the proper queue.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

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