As with ipf(8), give ippool(8) the ability to load IP pools from multiple
files. This allows for loading, during the same invocation of ippool, of multiple sources of input using multiple tools to concurrently maintain the files such as fail2ban, macro preprocessors, and manually. MFC after: 1 week
This commit is contained in:
parent
aae38d10b4
commit
9658b6b3f4
@ -12,7 +12,7 @@ ippool \- user interface to the IPFilter pools
|
||||
-A [-dnv] [-m <name>] [-o <role>] [-S <seed>] -t <type>
|
||||
.br
|
||||
.B ippool
|
||||
-f <file> [-dnuv]
|
||||
-f <file> [-dnuv] [-f <file [-dnuv]] ...
|
||||
.br
|
||||
.B ippool
|
||||
-F [-dv] [-o <role>] [-t <type>]
|
||||
|
@ -381,13 +381,17 @@ loadpoolfile(argc, argv, infile)
|
||||
{
|
||||
int c;
|
||||
|
||||
while ((c = getopt(argc, argv, "dnuv")) != -1)
|
||||
while ((c = getopt(argc, argv, "dnuvf:")) != -1)
|
||||
switch (c)
|
||||
{
|
||||
case 'd' :
|
||||
opts |= OPT_DEBUG;
|
||||
ippool_yydebug++;
|
||||
break;
|
||||
case 'f' :
|
||||
if (loadpoolfile(argc, argv, optarg) != 0)
|
||||
return(-1);
|
||||
break;
|
||||
case 'n' :
|
||||
opts |= OPT_DONOTHING|OPT_DONTOPEN;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user