Traffic Shaper Rules interface assignment

Started by tomstephens89, July 18, 2019, 02:13:24 PM

Previous topic - Next topic
Hi all,

Been testing out the traffic shaper in order to reserve some WAN bandwidth for a VLAN that homes our VOIP phones...

In the guide here https://docs.opnsense.org/manual/how-tos/shaper.html

You will see both inbound and outbound rules specify the WAN interface. Now in the example, rules are being applied based on the IP of the external VOIP server. However I am applying based on the internal subnet.

Logic would suggest my inbound rule applies to the WAN interface, traffic destination set to my internal voice subnet. Outbound would then be applied to the LAN interface, with the traffic source set to the internal voice subnet.

The above configuration works, however I can assign both rules to the WAN interface and it still works.

My assumption would be that the shaper applies after NAT is performed and therefore even though my inbound rule is on the WAN interface, it can see the destination is an RFC1918 internal address.

So to confirm, all inbound/outbound traffic shapers for WAN bandwidth, should be applied to the WAN interface under the rules tab?

Cheers
Tom