From owner-freebsd-questions Wed Oct 24 1:19:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 1DB4437B403 for ; Wed, 24 Oct 2001 01:19:14 -0700 (PDT) Received: from bezerker (user-2ivebfb.dialup.mindspring.com [165.247.45.235]) by falcon.mail.pas.earthlink.net (8.11.5/8.9.3) with SMTP id f9O8J4Q09226; Wed, 24 Oct 2001 01:19:05 -0700 (PDT) Message-ID: <00cd01c15c64$c5484f60$0101a8c0@bezerker> From: "Bezerker" To: "Patrick O'Reilly" Cc: References: Subject: Re: Lil help with dummynet please? Date: Wed, 24 Oct 2001 04:20:39 -0400 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 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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 DOH! So sorry, i meant ipfw add pipe 1 which put the rule in line 65100.. does this rule need to be further up in the priority? Again sorry for that misinformation bleh ----- Original Message ----- From: "Patrick O'Reilly" To: "Bezerker" Cc: Sent: Wednesday, October 24, 2001 4:14 AM Subject: RE: Lil help with dummynet please? > Bez, > > I'm not sure if you are getting the syntax right in your firewall scripts, > but the samples in your emails are certainly not right. > > Below you mention a rule like this: > ipfw pipe 1 ip from any to 192.168.1.5 > > ipfw will see this as a pipe config rule, NOT a normal ipfw rule, because it > begins with "ipfw pipe". > > Try the following: > > ipfw pipe 1 config 3KByte/s > ipfw add 1 pipe 1 ip from any to 192.168.1.5 > > PS: I'm assuming you are running NAT? Make sure the rule sending packets to > the pipe is after NAT has done its trick, or else you are not going to get a > match on that private address! So perhaps you should rather do something > like this: > > ipfw pipe 1 config 3KByte/s > ipfw add 1 divert ip from any to any via tun0 > ipfw add 2 pipe 1 ip from any to 192.168.1.5 > > Patrick. > > > > -----Original Message----- > > From: owner-freebsd-questions@FreeBSD.ORG > > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Bezerker > > Sent: 24 October 2001 09:45 > > To: Patrick O'Reilly > > Cc: questions@FreeBSD.ORG > > Subject: Re: Lil help with dummynet please? > > > > > > it listed fine, > > i even tried another rule of ipfw pipe 1 ip from any to > > 192.168.1.5 to limit > > ANY traffic going there to 3kbyte/S > > > > No go. > > I essentially, have my modem on tun0 (ppp ) .. and want to limit > > any traffic > > coming in via the modem going to my pop's machine, to 3kbyte a sec... > > unfortunately, that seems more complicated than i expected :P > > > > ----- Original Message ----- > > From: "Patrick O'Reilly" > > To: "Bezerker" ; > > Sent: Wednesday, October 24, 2001 3:41 AM > > Subject: RE: Lil help with dummynet please? > > > > > > > > > > > > Im trying to setup bandwith limiting so my fathers machine dont > > > > soak all the > > > > bandwith on my itty 56k. > > > > > > > > so.. i do the dummynet stuff and do this > > > > ipfw add 1 ip from any to 192.168.1.5 via tun0 > > > > ipfw pipe 1 config bw 3Kbytes/s > > > > All looks well > > > > > > No, not so well. > > > > > > Your pipe config looks fine: > > > > ipfw pipe 1 config bw 3Kbytes/s > > > > > > But, to use the pipe, your ipfw rule should be: > > > > ipfw add 1 pipe 1 ip from any to 192.168.1.5 via tun0 > > > > > > In fact, the rule as you gave it above has invalid syntax as > > far as I can > > > tell, so it might not be active at all. Check with "ipfw list". > > > > > > Regards, > > > Patrick. > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message