Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2000 16:27:31 +0900
From:      Changhoon Kim <kimch@etri.re.kr>
To:        Brendan Kosowski <brendan@bmk.com.au>
Cc:        FreeBSD Net <FreeBSD-net@FreeBSD.ORG>
Subject:   Re: sendmail hogs ppp link ?
Message-ID:  <38A26863.D6D499D0@etri.re.kr>
References:  <Pine.BSF.3.96.1000210105647.2925A-100000@garfield>

next in thread | previous in thread | raw e-mail | index | archive | help
Brendan Kosowski wrote:

> Is it possible to fine tune the system or sendmail so that the rate of
> receiving and sending email is restricted ( therefore allowing other
> packets to get through ) ???

Dummynet is exactly what you want.
Because It was designed to enable flexible bandwidth management and delay
emulation.

To use dummynet, first, turn on two options "IPFIREWALL" and "DUMMYNET" in
the kernel configuration file and rebuild it.
Then you can use "ipfw" commands to control the new installed firewall.
Specifically, you can set up specific filters and enforce some limitations
for bandwidth and delay on them, using "pipe" rules among IP firewall
funtions.

For example,

"ipfw add pipe 1 tcp from localhost 25 to any"
"ipfw pipe 1 config bw 20Kbit/s"

mean that bandwidth of a tcp data stream from port number 25(smtp) of your
localhost to any hosts in the Internet will be restricted to 20Kbit/s at
most.
In similar context, you will be able to interprete following commands;

ipfw add pipe 2 udp from localhost 25 to any
ipfw add pipe 3 tcp from localhost to any 25
ipfw add pipe 4 udp from localhost to any 25
ipfw pipe 2 config bw ...
ipfw pipe 3 config bw ...
ipfw pipe 4 config bw ...

For more information, "man dummynet" or "man ipfw".

Regards.

Chang.

--
==========================================================
Changhoon Kim

  Internet Technology Research Dept. Switching & Transmission Technology Lab.

  Electronics and Telecommunications Research Institute(ETRI)

  161 Kajong-dong, Yusong-gu, Taejon, 305-350, KOREA
  Tel: (Office) +82-42-860-5801, (Cell) +82-19-226-6305
  E-mail: kimch@etri.re.kr

* All Smiles, Everywhere and Everytime !
===========================================================




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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