[Firehol-support] blacklist

Costa Tsaousis costa at tsaousis.gr
Thu Apr 28 16:33:07 BST 2005


How about:

test -f /path/to/file && blacklist "`cat /path/to/file`"

firehol.conf is a BASH script. Use it like that.

Regards,

Costa


On Thu, April 28, 2005 14:23, Sheldon Hearn said:
> On Thu, 2005-04-28 at 13:12 +0200, Sheldon Hearn wrote:
>
>> Just a thought.  Some of us have big blacklists.
>>
>> How about teaching the blacklist helper to test whether the argument is
>> a file that exists.  If it is, use it as a line-delimited list of
>> arguments.  Otherwise, revert to the existing behaviour.
>
> That wasn't very clear. :-(
>
> Here's an untested patch that demonstrates the idea.  Sorry I haven't
> tested it, but things are hectic at the office today.
>
> Ciao,
> Sheldon.
>





More information about the Firehol-support mailing list