From owner-freebsd-ipfw@FreeBSD.ORG Wed Apr 14 05:36:18 2004 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E16916A4CE for ; Wed, 14 Apr 2004 05:36:18 -0700 (PDT) Received: from server1.aaawebsolution.com (aaawebsolution.com [209.61.189.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3567043D1D for ; Wed, 14 Apr 2004 05:36:17 -0700 (PDT) (envelope-from tscrum@aaawebsolution.com) Received: from wolf (fl-well-u1-c3c-157.pbc.adelphia.net [24.54.174.157]) (authenticated)i3ECaG905396; Wed, 14 Apr 2004 07:36:16 -0500 From: "Thomas S. Crum - AAA Web Solution, Inc." To: "'Ludo Koren'" Date: Wed, 14 Apr 2004 08:36:03 -0400 Message-ID: <004e01c4221d$12e96c60$6466a8c0@wolf> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_004F_01C421FB.8BD7CC60" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 In-Reply-To: <200404141141.i3EBfsER088462@lk106.tempest.sk> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: ipfw@freebsd.org Subject: RE: limiting bandwith X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 12:36:18 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_004F_01C421FB.8BD7CC60 Content-Type: text/plain; charset="us-ascii" 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. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html # 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. # APPLIES TO INCOMING PACKETS (DOWNLOADS) ipfw add queue 1 tcp from any to 10.1.2.0/24 25,110 ipfw queue 1 config weight 1 pipe 1 mask dst-ip 0x000000ff ipfw add queue 2 ip from any to 10.1.2.0/24 ipfw queue 2 config weight 5 pipe 1 mask dst-ip 0x000000ff ipfw pipe 1 config bw 1000Kbit/s # APPLIES TO OUTGOING PACKETS (UPLOADS) ipfw add queue 3 tcp from 10.1.2.0/24 25,110 to any ipfw queue 3 config weight 1 pipe 2 mask src-ip 0x000000ff ipfw add queue 4 ip from 10.1.2.0/24 to any ipfw queue 4 config weight 5 pipe 2 mask src-ip 0x000000ff ipfw pipe 2 config bw 500Kbit/s Best, Thomas S. Crum Senior Technical Associate tscrum@aaawebsolution.com 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 marketing. No task is too small or enterprise too large for us to help you! ------------------------------------------------------------------------ ---- -----Original Message----- From: owner-freebsd-ipfw@freebsd.org [mailto:owner-freebsd-ipfw@freebsd.org] On Behalf Of Ludo Koren Sent: Wednesday, April 14, 2004 7:42 AM To: rizzo@icir.org Cc: jacks@sage-american.com; ipfw@freebsd.org; tscrum@aaawebsolution.com 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. Regards, lk _______________________________________________ freebsd-ipfw@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" ------=_NextPart_000_004F_01C421FB.8BD7CC60--