Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2008 08:55:44 +0200
From:      Zbigniew Szalbot <zszalbot@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   pf traffic shaping and perfomance
Message-ID:  <0cffa49967a87486dca37f253a3c60b5@localhost>

next in thread | raw e-mail | index | archive | help

Hello,

I would like to implement traffic shaping using pf. I know I need to
recompile kernel to be able to achieve this but I have a more general
question. I used to have pf with traffic shaping on a Pentium III 866
before and as soon as I activated it, the http response of the box was
noticably slower. Here are the defs I used then:

#altq on $ext_if cbq bandwidth 512Kb queue { def, smtp, udp, http, \
#ssh, icmp }
#queue def bandwidth 13% cbq(default borrow red)
#queue smtp bandwidth 25% cbq(borrow red) priority 7
#queue udp bandwidth 10% cbq(borrow red)
#queue http bandwidth 40% cbq(borrow red)
#queue ssh bandwidth 10% cbq(borrow red)
##{ ssh_interactive, ssh_bulk }
##queue ssh_interactive priority 7
#queue ssh_bulk priority 0
#queue icmp bandwidth 2% cbq

It is quite possible that I misconfigured the shaping (as seen above). What
would be suggested traffic shaping rules to allow smooth mail operation
(smtp taking up to 40% of allowed bandwidth) and http responses?

If that matters, uname -v
FreeBSD 7.0-RELEASE #0


Many thanks in advance!


Zbigniew Szalbot




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