Can DUMMYNET handle weighting of traffic according to firewall rules?
Aleksandr A Babaylov
. at babolo.ru
Sat Dec 13 07:47:41 UTC 2014
On Fri, Dec 12, 2014 at 09:06:46PM +1100, Luigi Rizzo wrote:
> you can set the limit for the pipe, create two queues with different
> weights attached to the pipe, and then schedule.
>
> ipfw pipe 12 config bw 3456 Kbit/s
> ipfw queue 34 config weight 2 pipe 12
> ipfw queue 56 config weight 1 pipe 12
> ipfw add queue 34 in recv halfduplexlink0
> ipfw add queue 56 out xmit halfduplexlink0
>
> that should do the job
ipfw add pipe 12 in recv halfduplexlink0
ipfw add pipe 12 out recv halfduplexlink0
ipfw add pipe 12 out xmit halfduplexlink0
or may be double
ipfw add pipe 12 in recv halfduplexlink0
(not tested)
More information about the freebsd-net
mailing list