ALTQ on multi-WAN with pf pools

Ermal Luçi ermal.luci at gmail.com
Thu Jul 12 15:25:25 UTC 2007


altq on {$wan, $wan2 } priq queue { idle_1, normal_1, high_1}
 queue idle_1 priq(default)
 queue normal_1 priority 2
 queue high_1 priority 3

pass in quick on $lan route-to { ($wan $wan_gw), ($wan2 $wan2_gw) } \
 round-robin inet from ($lan:network) to any flags S/SA keep state queue high_1

should do the trick for you!

If you want something more advanced you can ask again here or read
carefully the BNF explanation on pf.conf manual page.

Regards

On 7/10/07, Mahabub Basha <mahabubbasha at gmail.com> wrote:
> Hi all,
>
> I have a multi-WAN setup using pf pools and want to use
> simple QoS using ALTQ.  I don't know how to use priq in
> combination with multi-wan.
>
> My stripped pf.conf looks like this
>
> pf.conf
> ==========================================================
> altq on $wan priq queue { idle_1, normal_1, high_1}
> queue idle_1 priq(default)
> queue normal_1 priority 2
> queue high_1 priority 3
>
> altq on $wan2 priq queue { idle_2, normal_2, high_2 }
> queue idle_2 priq(default)
> queue normal_2 priority 2
> queue high_2 priority 3
>
> # User NAT Rules
> nat on $wan from any  to any    -> ($wan)
> nat on $wan2 from any  to any    -> ($wan2)
>
> pass in quick on $lan route-to { ($wan $wan_gw), ($wan2 $wan2_gw) } \
>  round-robin inet from ($lan:network) to any flags S/SA keep state
> ==========================================================
>
>
> How can I assign select traffic (eg. ssh) going out on either $wan or
> $wan2 to the "high_x" queues?
>
> Thanks for reading!
>
> - Mahabub Basha. S
> _______________________________________________
> freebsd-pf at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-pf
> To unsubscribe, send any mail to "freebsd-pf-unsubscribe at freebsd.org"
>


More information about the freebsd-pf mailing list