Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2001 11:33:38 +0200
From:      "Patrick O'Reilly" <patrick@mip.co.za>
To:        "Johansson Jan" <jajoa@wmdata.com>, "'stable@freebsd.org'" <stable@FreeBSD.ORG>
Subject:   RE: ipfw operations?
Message-ID:  <NDBBIMKICMDGDMNOOCAIAECGDMAA.patrick@mip.co.za>
In-Reply-To: <E500C07A3D64D31182F00008C7DB992804DA4676@WMSI000168>

next in thread | previous in thread | raw e-mail | index | archive | help
Jan,

try this:

# for rule in `ipfw pipe 8 show | tr " " "_"`
> do
> echo $rule
> done

This should list all the existing rules for pipe 8 (with spaces replaced by
_), something like this:

00008:__32.000_Kbit/s____0_ms__50_sl.__--_0_pkts_(0_B)_789_drops
00008:__24.000_Kbit/s____0_ms__50_sl.__--_0_pkts_(0_B)_124_drops
00008:__48.000_Kbit/s____0_ms__50_sl.__--_0_pkts_(0_B)_903_drops

If that worked, and the rules displayed are the ones you want to delete,
then change the "echo" line to "ipfw pipe delete 8", like so:

# for rule in `ipfw pipe 8 show | tr " " "_"`
> do
> ipfw pipe delete 8
> done

Patrick.


> -----Original Message-----
> From: owner-freebsd-stable@FreeBSD.ORG
> [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Johansson Jan
> Sent: 25 October 2001 10:44
> To: 'stable@freebsd.org'
> Subject: ipfw operations?
>
>
> I manged to add several pipes in dummynet, like
>
> ipfw add pipe 8 ip from 127.0.0.1 to 192.168.0.23
>
> and repeated that command a few times.
>
> Now, ipfw del pipe 8 removes the first of those, but if i repeat
> that command, the remaining pipes are still in the ipfw show
> list. How to i remove those?
>
> > Jan Johansson
> > WM-data eApplications AB
> > Grafiska Vägen 18
> > Box 14383  S-400 20  Göteborg
> > Tel +46-31-7331217
> > Mob: +46-706-434935
> > Fax +46-31-7331200
> > mailto: jajoa@wmdata.com
> > http://www.wmdata.se
> >
> >
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBIMKICMDGDMNOOCAIAECGDMAA.patrick>