From owner-freebsd-isp@FreeBSD.ORG Thu Mar 25 15:13:43 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7066516A4E0 for ; Thu, 25 Mar 2004 15:13:43 -0800 (PST) Received: from illustrious.cnchost.com (illustrious.concentric.net [207.155.252.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D8BE43D31 for ; Thu, 25 Mar 2004 15:13:43 -0800 (PST) (envelope-from kgupta@edgefocus.com) Received: from karang (ws130.advancel.com [207.88.142.131] (may be forged)) by illustrious.cnchost.com id SAA08175; Thu, 25 Mar 2004 18:13:42 -0500 (EST) [ConcentricHost SMTP Relay 1.16] Errors-To: Message-ID: <017701c412bf$ae39bed0$5c2aa8c0@edgefocus.com> From: "Karan Gupta" To: References: <20040321202625.GR7109@complx.LF.net><003e01c40f99$905d8f00$df0a0a0a@visionsix.net> <20040322062902.GS7109@complx.LF.net> Date: Thu, 25 Mar 2004 15:19:53 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: ipfw ruleset X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 23:13:43 -0000 The following is the ruleset im using: what i want to achieve is 1.IP traffic on the network to get shaped to 1024kbits/s 2.Kazaa/e-donkey, gnutella traffic to be shaped at 128kbits/s 3.ICMP traffic shaped to 8kbits/s will this work?? ipfw -f flush ipfw add pipe 5 tcp from x.x.x.1/23 to any 6881-6889,1214,4661,4662 ipfw add pipe 6 udp from x.x.x.1/23 to any 6881-6889,1214,4661,4662 ipfw add pipe 7 tcp from any 6881-6889,1214,4661,4662 to x.x.x.1/23 ipfw add pipe 8 udp from any 6881-6889,1214,4661,4662 to x.x.x.1/23 ipfw add pipe 1 ip from any to any in recv rl1 ipfw add pipe 2 ip from any to any out xmit rl1 ipfw add pipe 3 icmp from any to any in recv rl1 ipfw add pipe 4 icmp from any to any out xmit rl1 ipfw pipe 1 config mask src-ip 0xffffffff bw 1024kbits/s queue 50Kbytes ipfw pipe 2 config mask dst-ip 0xffffffff bw 1024kbits/s queue 50kbytes ipfw pipe 3 config mask src-ip 0xffffffff bw 8kbits/s queue 50kbytes ipfw pipe 4 config mask dst-ip 0xffffffff bw 8kbits/s queue 50kbytes ipfw pipe 5 config mask src-ip 0xffffffff bw 128kbit/s queue 50kbytes ipfw pipe 6 config mask src-ip 0xffffffff bw 128kbit/s queue 50kbytes ipfw pipe 7 config mask dst-ip 0xffffffff bw 128kbit/s queue 50kbytes ipfw pipe 8 config mask dst-ip 0xffffffff bw 128kbit/s queue 50kbytes