From owner-freebsd-ipfw@FreeBSD.ORG Tue Mar 28 19:49:04 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org 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 A8EDD16A41F for ; Tue, 28 Mar 2006 19:49:04 +0000 (UTC) (envelope-from scuba@centroin.com.br) Received: from mdhost1.centroin.com.br (mail-gw1.centroin.com.br [200.225.63.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 227BB4471C for ; Tue, 28 Mar 2006 19:48:57 +0000 (GMT) (envelope-from scuba@centroin.com.br) Received: from trex.centroin.com.br (trex.centroin.com.br [200.225.63.134]) by mdhost1.centroin.com.br (8.13.5/8.13.5/CIP SMTP HOST) with ESMTP id k2SJmn7L052011 for ; Tue, 28 Mar 2006 16:48:51 -0300 (BRT) (envelope-from scuba@centroin.com.br) Date: Tue, 28 Mar 2006 16:49:10 -0300 (BRT) From: scuba@centroin.com.br Sender: mpsouza@trex.centroin.com.br To: freebsd-ipfw@freebsd.org Message-ID: <20060328164150.C52489@trex.centroin.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Hits: 0.007 X-Scanned-By: MIMEDefang 2.56 on 200.225.63.205 Subject: Single machine traffic shaping X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 19:49:04 -0000 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