Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2005 21:40:18 -0600 (MDT)
From:      "Brad Waite" <freebsd@wcubed.net>
To:        freebsd-ipfw@freebsd.org
Subject:   IPFW + dummynet to lower NNTP traffic priority
Message-ID:  <3265.67.176.75.179.1122435618.squirrel@webmail.wcubed.net>

next in thread | raw e-mail | index | archive | help
I've been working on a way to keep my outbound NNTP traffic from
interfering with all other traffic.  After reading the ipfw(8) man page
and several other resources (including Luigi Rizzo's page), I thought I
had it down:

### Outbound
ipfw pipe 1 config bw 0K
ipfw queue 1 config weight 1 pipe 1
ipfw queue 2 config weight 100 pipe 1
ipfw add 1000 queue 1 all from any to any out dst-port 119 via fxp0
ipfw add 1001 queue 2 all from any to any out via fxp0

### Inbound
ipfw pipe 2 config bw 0K
ipfw queue 3 config weight 1 pipe 2
ipfw queue 4 config weight 100 pipe 2
ipfw add 1000 queue 3 all from [NNTP server IP] to any in via fxp0
ipfw add 1001 queue 4 all from any to any in via fxp0

My thinking here is that both queues (in each direction) will share all
available bandwidth, but any traffic heading out on port 119 or returning
from the news serverwill be superseded by all other traffic.  If there's
no other traffic, NNTP will be able to use all available bandwidth.

It would appear I'm not grasping the concepts.  Can anyone tell me what
I'm doing wrong?

Thanks,

Brad Waite




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