Limit Download for one member of Multi-WAN



  • 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!



  • @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



  • 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?


  • LAYER 8 Netgate

    If only one LAN that should be pretty easy.



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

    Thanks!


  • LAYER 8 Netgate

    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.


Log in to reply