how do I delete just one ipfw rule ?

Josh Brooks user at mail.econolodgetulsa.com
Mon Sep 8 23:50:54 PDT 2003


Hi,

If I create two ipfw rules with the same ID:

ipfw add 00022 deny ip from x to y
ipfw add 00022 allow ip from z to b

they will both be there, and both work ... but is it possible to remove
just one of them wihout removing the other ?  Right now I am doing a hack
with a ";"

ipfw del 00022 ; ipfw add 00022 allow ip from z to b

which removes both, and re-adds the one I want, but if the list gets more
complicated than a few, this is really bad.

So is it possible to remove just one ipfw rule from a list of same-index
rules ?

thank!



More information about the freebsd-net mailing list