Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2014 10:35:10 +0300
From:      Aleksandr A Babaylov <.@babolo.ru>
To:        Brett Glass <brett@lariat.net>, "freebsd-net@freebsd.org" <net@freebsd.org>
Subject:   Re: Can DUMMYNET handle weighting of traffic according to firewall rules?
Message-ID:  <20141213073510.GA45468@babolo.ru>
In-Reply-To: <CA%2BhQ2%2Bg40aZO%2B6JJsvDU8GG_UGp=rO1tQQoaETRe%2BBc-iyBNKA@mail.gmail.com>
References:  <201412120711.AAA00622@mail.lariat.net> <CA%2BhQ2%2Bg40aZO%2B6JJsvDU8GG_UGp=rO1tQQoaETRe%2BBc-iyBNKA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141213073510.GA45468>