Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2004 08:36:03 -0400
From:      "Thomas S. Crum - AAA Web Solution, Inc." <>
To:        "'Ludo Koren'" <>
Subject:   RE: limiting bandwith
Message-ID:  <004e01c4221d$12e96c60$6466a8c0@wolf>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is a multi-part message in MIME format.

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit

I do not believe there is a way to "postpone" traffic with dummynet
other than what is available with queues, not to mention I don't think
you'd ever want to, really.  The config below will give mail a lower
priority to all of the other traffic, both in and out.

Nat interactive addresses? Hmmm... you mean you want ipfw to forward
local addresses using nat? you want to dole out local ip addresses,
dhcp? Not really sure of the question here, but I'm sure its answered by
following the link below to the freebsd handbook.

# This is a ruleset that will give mail a lower priority to all other
packets. Pipe's are configured assuming you have a t1 Internet
connection and would like to use the bandwidth as shown. Salt to taste
from here.

ipfw add queue 1 tcp from any to 25,110
ipfw queue 1 config weight 1 pipe 1 mask dst-ip 0x000000ff
ipfw add queue 2 ip from any to
ipfw queue 2 config weight 5 pipe 1 mask dst-ip 0x000000ff
ipfw pipe 1 config bw 1000Kbit/s

ipfw add queue 3 tcp from 25,110 to any
ipfw queue 3 config weight 1 pipe 2 mask src-ip 0x000000ff
ipfw add queue 4 ip from to any
ipfw queue 4 config weight 5 pipe 2 mask src-ip 0x000000ff
ipfw pipe 2 config bw 500Kbit/s

Thomas S. Crum
Senior Technical Associate
Toll-free: (800) 834-0626
AAA Web Solution, Inc.
11924 W Forest Hill Boulevard
Building 22 - Mailstop 200
Wellington, FL 33414 USA
Providing full-service website design, maintenance, hosting, and
No task is too small or enterprise too large for us to help you!

-----Original Message-----
[] On Behalf Of Ludo Koren
Sent: Wednesday, April 14, 2004 7:42 AM
Subject: Re: limiting bandwith

Maybe I should re-state my original question.

The FreeBSD machine with ipfw is routing and filtering.  I need limit
and weight data flow, i.e. if interactive session exists, I need fixed
bandwidth and asap processing. Batch jobs, like SMTP maybe postponed
and processed, if the bandwidth is free. In addition, I need NAT
`interactive' addresses.

Could anybody point me to a working example? Everything I find is too
general or briefly described.

Thank you very much in advance.


_______________________________________________ mailing list
To unsubscribe, send any mail to ""


Want to link to this message? Use this URL: <$12e96c60$6466a8c0>