Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2001 04:20:39 -0400
From:      "Bezerker" <bezerker@bezerker.org>
To:        "Patrick O'Reilly" <patrick@mip.co.za>
Cc:        <questions@freebsd.org>
Subject:   Re: Lil help with dummynet please?
Message-ID:  <00cd01c15c64$c5484f60$0101a8c0@bezerker>
References:  <NDBBIMKICMDGDMNOOCAIGEAHDMAA.patrick@mip.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <patrick@mip.co.za>
To: "Bezerker" <bezerker@bezerker.org>
Cc: <questions@FreeBSD.ORG>
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" <patrick@mip.co.za>
> > To: "Bezerker" <bezerker@bezerker.org>; <questions@FreeBSD.ORG>
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00cd01c15c64$c5484f60$0101a8c0>