mkbl4 — Process IPv4 SOCKS blacklist file
/usr/sbin/mkbl4
{txtfile
} {dbfile
}
mkbl4
reads txtfile
, which is a flat, plain text file
whose lines are formatted as follows:
description:aaa.bbb.ccc.ddd-eee.fff.ggg.hhh
The description part of each line, the part that precedes the colon,
is ignored.
An IPv4 address range, expressed as a
starting
-ending
address range, follows the colon.
The IP address ranges are sorted, and overlapping ranges are removed.
mkbl4 creates dbfile
, a binary
database format that's used by the
sockd(1)
SOCKS server.
The “block4=” setting in the
socksrc(5)
configuration file.
The contents of any existing dbfile
are replaced
complete.
mkbl4 creates a new database in a temporary file, then
renames it to dbfile
.
It is safe to run mkbl4 while
sockd is using dbfile
at the
same time.