On Sun, Jan 20, 2002 at 01:17:08AM +0100, Gert Menke wrote:
Hi everybody,
I have implemented a new filter for syslog-ng. You can now filter log messages based on their sender's IP address like this:
# match a single host filter f_noc21 { netmask("134.130.3.73"); };
# match a whole subnet filter f_noc { netmask("134.130.3.0/255.255.255.0"); };
I'll attach patches for syslog-ng versions 1.4.14 and 1.5.13.
I have also made a small patch that fixes the behaviour of the emulated inet_aton function in utils.c. (It would not work with "255.255.255.255".) On some architectures you need this patch for my netmask-filter to work properly!
Thanks for the patch. I'll include it in the next syslog-ng release. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1