Date: Tue, 28 Mar 2006 16:49:10 -0300 (BRT) From: scuba@centroin.com.br To: freebsd-ipfw@freebsd.org Subject: Single machine traffic shaping Message-ID: <20060328164150.C52489@trex.centroin.com.br>
next in thread | raw e-mail | index | archive | help
Hi all, Can I use dummynet to control the traffic to/from a single machine? I mean, I have only one interface and I want to limit the bandwidth based on port number. I.e: Is this correct, when trying to limit any single host to use just 128kbps/s when connecting to my sendmail? ipfw add 00100 pipe 10 tcp from any 25 to any in ipfw add 00105 pipe 20 tcp from any to any dst-port 25 out ipfw pipe 10 config mask src-ip 0xffffffff bw 128kbits/s ipfw pipe 20 config mask dst-ip 0xffffffff bw 128kbits/s Also, should those "add pipe" come before any other rule in the ipfw configuration? Thank you, - Marcelo Souza
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060328164150.C52489>