Traffic Shaper - On the fly



  • For some reason I can't change/add a bandwidth management rules on the fly.
    If there is a need to add a new Traffic Shaper rule it wont seem to be applied until the actual offending traffic has stopped.
    Any way to "restart" the bandwidth service on the fly without restarting pfsense?

    Sam



  • Try resetting the State table: Diagnostics - States - Reset States - Reset.



  • That kind of works but it also resets all the other connections. This is no big deal in it self but I would rather prefer to just affect that one problem connection that eats all bandwidth. I have a rule in LAN with Traffic Shaping that I use to limit connections that eat all bandwidth. But that rule never seems to be applied while the "upload" is still continuing ie. while the "State" is still up. Is it possible to apply the limiter in the middle of the upload?


  • LAYER 8 Netgate

    That's how it works.  The queues are set when the state is created and changes only apply to connections established after the changes are made.



  • If only wishes were pennies.

    Sam



  • It seems I have to redo all my traffic shaping rules.
    I noticed that WAN side rules over rule LAN side IP specific traffic shaping rules.
    Only solution seems to be to move all traffic shaping rules to LAN side.

    Sam


  • LAYER 8 Netgate

    The rule that assigns the queue needs to be placed somewhere where it catches state generation.

    To shape connections started by LAN clients out to WAN, the best place is probably a floating match rule on WAN out.

    To shape connections inbound to servers, the best place is usually in the pass rule on WAN that allows the traffic in the first place.


Log in to reply