OPNsense Forum

English Forums => General Discussion => Topic started by: _shorty on June 24, 2025, 04:10:38 PM

Title: use traffic shaper in firewall rule
Post by: _shorty on June 24, 2025, 04:10:38 PM
Hi there,

I do have currently a running setup with a traffic shaper to limit uploading traffic from my nas to the offsite location. This traffic shaper is currently manually enabled or disabled depending on my working hours from home office.
I would like to automate it and use this traffic shaper in a firewall rule. Because this offsite location connects via Wireguard I tested rules in the LAN and WG0 Network part of the rules but nothing worked so far.

How can I achive this because only adding the queue or rule won't change (or better limit) anything. Is there a trick that I need to know to get it working?

Regards,
Shorty
Title: Re: use traffic shaper in firewall rule
Post by: Seimus on June 26, 2025, 09:51:34 AM
Its a rule so for it to work it needs to be 1st matched.

If you put it into pf (firewall rules), it needs to be on the TOP, if any other rule before it is being matched the rule with shaper attribute will not be applied.

Regards,
S.