mirror of https://github.com/fail2ban/fail2ban
DOC: how to do filter enhancements
parent
916b5a7c23
commit
e54498f6fe
12
DEVELOP
12
DEVELOP
|
@ -34,9 +34,19 @@ When submitting pull requests on GitHub we ask you to:
|
||||||
* Include a change to the relevant section of the ChangeLog; and
|
* Include a change to the relevant section of the ChangeLog; and
|
||||||
* Include yourself in THANKS if not already there.
|
* Include yourself in THANKS if not already there.
|
||||||
|
|
||||||
Testing
|
Filters
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
* Include sample logs with 1.2.3.4 used for IP addresses and
|
||||||
|
example.com/example.org used for DNS names
|
||||||
|
* Ensure ./fail2ban-regex testcases/files/logs/{samplelog} config/filter.d/{filter}.conf
|
||||||
|
has matches for EVERY regex
|
||||||
|
* Ensure regexs end with a $ and are restrictive as possible. E.g. not .* if
|
||||||
|
[0-9]+ is sufficient
|
||||||
|
|
||||||
|
Code Testing
|
||||||
|
============
|
||||||
|
|
||||||
Existing tests can be run by executing `fail2ban-testcases`. This has options
|
Existing tests can be run by executing `fail2ban-testcases`. This has options
|
||||||
like --log-level that will probably be useful. `fail2ban-testcases --help` for
|
like --log-level that will probably be useful. `fail2ban-testcases --help` for
|
||||||
full options.
|
full options.
|
||||||
|
|
Loading…
Reference in New Issue