IP address files
Some of spamdyke's options search files for IP addresses. In all those
cases, the format of the files is the same. Blank lines and lines beginning
# are ignored. Every other line in the file is expected to contain a
NOTE: To protect against unknown dangers like programming errors, corrupted filesystems or incorrect file paths, spamdyke will only read the first 65536 lines of any file. If the file is any larger, spamdyke will printing an error message into its logs. If there is a legitimate reason to have more than 65536 lines in a file, the content should be separated into multiple files and spamdyke's option should be given multiple times to search each file.
Individual IP addresses may be given in dotted quad format. Those IP addresses will be matched literally. For example:
188.8.131.52. NOTE: In dotted quad format, leading zeroes are ignored, so the following is equivalent to the previous example:
IP address ranges may be given in one of four ways. First, one or more octets of an IP address may be given and will match any IP addresses with the same first few octets. For example, if the file contained the following entry:
184.108.40.206will all match. A trailing dot is optional, so if the file contained the following entry:
220.127.116.11will all match.
Second, a full or partial IP address with ranges may be given an will match an IP addresses with octets that match the ranges given. For example, if the file contained the following entry:
18.104.22.168will all match. If the file contained the following entry:
22.214.171.124will all match.
Third, a full IP address may be given with a netmask, given as a number of bits. For example, if the file contained the following entry:
126.96.36.199will all match. If the file contained the following entry:
188.8.131.52will all match.
Fourth, a full IP address may be given with a netmask in dotted quad format. For example, if the file contained the following entry:
184.108.40.206will all match. If the file contained the following entry:
220.127.116.11will all match.
When a netmask is given, either as a number of bits or a dotted quad, ranges in the base IP address are ignored. If they're present, they don't cause errors but they have no effect.