Posadis Regexp-block module
This module enables Posadis to block certain domain names based on regular expressions (wildcards). Rather than returning the actual address, Posadis will return a custom IP number, 127.0.0.1 by default.
Installing the module
The following files are available:
regexpblock-src.tgz 27-May-2004 13:47 1k Source code
regexpblock-linux.tgz 27-May-2004 13:47 7k Linux i386 library
regexpblock.dll 27-May-2004 13:48 279k Win32 library
The Linux binary package should be unpackaged to the Posadis library location, usually /usr/lib/posadis/
. The Win32 binary should be copied to the directory Posadis was installed in (something like C:\Program Files\Posadis 0.60.4
).
The source archive contains the source code and Makefiles for Unix and Windows. To build, you'll need the Perl-Compatible Regular Expressions library on which this module is based.
Using the Regexp-block module
To be able to use the Regexp-block module, you need to load it using the LoadModule
statement in your posadisrc
configuration file. If you didn't install the module to the normal Posadis library directory, you'll also want to add a LibDir
statement to tell Posadis where to find the module.
You can control the Regexp-block module with the following confiuration options.
-
regexp-target
- Target IP number. 127.0.0.1
by default.
-
regexp-block
- List of regular expressions to match. These are regular expressions as you may know them from the Perl programming language. More information on regular expressions can be found here.
A snippet from a posadisrc
might thus look like the following:
libdir "/home/meilof/Desktop/regexp-block"
loadmodule regexpblock
regexp-target 127.0.0.6
regexp-block test, micrisoft, \.dsl\.
More information
This module has been written by Meilof Veeningen. It is covered by the GNU General Public License. For questions and remarks, please visit the Posadis forums.
Copyright (C) Meilof Veeningen, 2004