Hello All,
Got this working… So the following rules which can be added by the traffic shaper gui set the queues for VOIP traffic from LAN <-> WAN.
block in all tag unshaped label "SHAPER: first match rule"
pass in on $lan proto tcp from 192.168.10.0/24 to any port 5060:5080 keep state tagged unshaped tag qVOIPDown
pass out on $wan proto tcp from any to any port 5060:5080 keep state tagged qVOIPDown tag qVOIPUp
pass in on $wan proto tcp from any to 192.168.10.0/24 port 5060:5080 keep state tagged unshaped tag qVOIPUp
pass out on $lan proto tcp from any to 192.168.10.0/24 port 5060:5080 keep state tagged qVOIPUp tag qVOIPDown
pass in on $wan proto udp from any to 192.168.10.0/24 port 5060:5080 keep state tagged unshaped tag qVOIPUp
pass out on $lan proto udp from any to 192.168.10.0/24 port 5060:5080 keep state tagged qVOIPUp tag qVOIPDown
pass in on $lan proto udp from 192.168.10.0/24 to any port 5060:5080 keep state tagged unshaped tag qVOIPDown
pass out on $wan proto udp from any to any port 5060:5080 keep state tagged qVOIPDown tag qVOIPUp
pass in on $wan proto udp from any to 192.168.10.0/24 port 16384:32768 keep state tagged unshaped tag qVOIPUp
pass out on $lan proto udp from any to 192.168.10.0/24 port 16384:32768 keep state tagged qVOIPUp tag qVOIPDown
pass in on $lan proto udp from 192.168.10.0/24 to any port 16384:32768 keep state tagged unshaped tag qVOIPDown
pass out on $wan proto udp from any to any port 16384:32768 keep state tagged qVOIPDown tag qVOIPUp
Nothing special there.
However, as stated previously unless additional rules are added the FreeSwitch process on the box does not have its traffic sent through the Voip queues. The default pfSense configuration sends the traffic through the wan default queues without priority elevation.
/etc/inc/filter.inc needs to be modified to add the following rules.
Setup FreeSwitch Server <-> Provider Traffic Shapper
pass out on $wan proto udp from 192.168.0.12 port 16384:32768 to any keep state tag qVOIPUp
pass out on $wan proto udp from 192.168.0.12 port 5060:5080 to any port 5060:5080 keep state tag qVOIPUp
pass out on $wan proto tcp from 192.168.0.12 port 5060:5080 to any port 5060:5080 keep state tag qVOIPUp
pass in on $wan proto udp from any to 192.168.0.12 port 16384:32768 keep state tag qVOIPUp
pass in on $wan proto udp from any port 5060:5080 to 192.168.0.12 port 5060:5080 keep state tag qVOIPUp
pass in on $wan proto tcp from any port 5060:5080 to 192.168.0.12 port 5060:5080 keep state tag qVOIPUp
Note that this takes care of box <-> wan it does nothing about prioritizing traffic to the LAN. In our setup traffic to the LAN was fast enough not to require queuing so we just send the traffic through the default lan queue. However, a mirror set of rules could be added to also elevate LAN <-> FreeSwitch on pfSense router.
Take care.
--luis