From owner-freebsd-questions Sun Jan 5 5:49:53 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4860E37B401 for ; Sun, 5 Jan 2003 05:49:52 -0800 (PST) Received: from guava.silverwraith.com (66-214-182-79.la-cbi.charterpipeline.net [66.214.182.79]) by mx1.FreeBSD.org (Postfix) with SMTP id 3154643E4A for ; Sun, 5 Jan 2003 05:49:46 -0800 (PST) (envelope-from lists-freebsd@silverwraith.com) Received: (qmail 41669 invoked by uid 1001); 5 Jan 2003 13:49:35 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Jan 2003 13:49:35 -0000 Date: Sun, 5 Jan 2003 05:49:35 -0800 (PST) From: Avleen Vig To: master Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: dummynet and ipfw In-Reply-To: <01a401c2b4a6$163491f0$0201a8c0@sebxp> Message-ID: <20030105054547.A61391@guava.silverwraith.com> References: <01a401c2b4a6$163491f0$0201a8c0@sebxp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 5 Jan 2003, master wrote: > Hi all i have a little problem with ipfw > i have try the following command : > ipfw add 100 pipe 1 ip from 192.168.1.5 to any > and i have no more network then i try a ping and get > ping : sendto : No buffer space invalide > any idea how can i fix this? Yes, you need to configure the pipe to *do* something.. otherwise it's a pipe that just collects packets :-) you can do it in two commands like this: ipfw add 100 pipe 1 ip from 192.168.1.5 to any ipfw config pipe 1 bw 0 'bw 0' means tuse unlimited bandwidth (ie, all your availible bandwidth). You can change this to a different amount, eg to limit to 5Kbytes/s: ipfw add 100 pipe 1 ip from 192.168.1.5 to any ipfw config pipe 1 bw 5KBytes/s Packets should then flow through naturally. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message