[prev in list] [next in list] [prev in thread] [next in thread]
List: ipfilter
Subject: Re: Adding/removing rules - works from stdin, not from file?
From: Jaroslaw Rafa <raj () ap ! krakow ! pl>
Date: 2006-10-20 10:53:49
Message-ID: 200610201053.MAA21106 () ultra ! ap ! krakow ! pl
[Download RAW message or body]
Darren Reed napisal(a):
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> > The rules can be removed ONLY in the same way they have been added, ie.
[...]
> Ack...this is a nasty bug.
> The problem is that the line number a rule is found at, in the file, is
> stored in the rule.
> It is stored in part of the rule that is used when it comes time to
> delete a rule.
> So if you changed the line number, "ipf -rf <file>" would not work.
But when I was trying it, I was always adding or removing only one rule -
regardless if from terminal, file or redirected standard input. So the line
number should be always 1 (or 0, if numbering is from 0) - am I right?
But it was still impossible for example when a rule that was typed
directly from a terminal, to remove it from a redirected standard input or
from a file (in any case standard input and/or file contained only one
line!)
Regards,
Jaroslaw Rafa
raj@ap.krakow.pl
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic