Daniel Black
391b5fc883
MRG: from master again 2014-01-01
11 years ago
Steven Hiscocks
f37c90cdba
ENH: Python based actions
...
Python actions are imported from action.d config folder, which have .py
file extension. This imports and creates an instance of the Action class
(Action can be a variable that points to a class of another name).
fail2ban.server.action.ActionBase is a base class which can be inherited
from or as a minimum has a subclass hook which is used to ensure any
imported actions implements the methods required.
All calls to the execAction are also wrapped in a try except such that
any errors won't cripple the jail.
Action is renamed CommandAction, to clearly distinguish it from other
actions.
Include is an example smtp.py python action for sending emails via smtp.
This is work in progress, as looking to add the <matches> and whois
elements, and also SSL/TLS support.
11 years ago
Daniel Black
1b037a6f29
DOC: document addition of filter options substitution into failregex/ignoreregex
11 years ago
Daniel Black
a4c38439df
ENH: add substition tags to filter definitions. Closes gh-539
11 years ago
Daniel Black
e4a215ca50
BF: fix infinite recursion case in Action.substituteRecursiveTags
11 years ago
Steven Hiscocks
71869dd6e1
Merge pull request #545 from grooverdan/openwebmail
...
ENH: add filter openwebmail. Closes gh-543.
11 years ago
Steven Hiscocks
6f104638cf
BF: Ensure all imports for fail2ban modules are not relative
11 years ago
Daniel Black
e8710b679d
ENH: stronger regex for failregex
11 years ago
Daniel Black
856407379b
ENH: add filter openwebmail. Closes gh-543.
11 years ago
Steven Hiscocks
15d6de0664
Merge pull request #538 from grooverdan/0.9-python-2.6-min
...
DOC: python-2.6 minimium now. Closes gh-526
11 years ago
Steven Hiscocks
934058cc06
Merge pull request #532 from grooverdan/split-filter-doco
...
DOC: filter documentation was bigger than DEVELOP so separated it out.
11 years ago
Daniel Black
332d37f363
DOC: python-2.6 minimium now. Closes gh-526
...
Clean up ChangeLog and README.md to reflect these changes.
Remove credit from developers for individual changes to be consistent
with the 0.8.12 ChangeLog. Update summary and priority of items listed
in ChangeLog.
11 years ago
Yaroslav Halchenko
acc5beaeb5
Merge pull request #536 from grooverdan/exim-spam
...
ENH: exim-spam - also block based on emails "discarded" by spamassassin
11 years ago
Daniel Black
92e2747034
Merge pull request #531 from grooverdan/master_to_0.9_merge
...
MRG: current master to 0.9 20131228
11 years ago
Daniel Black
671ca8bbca
BF: ignorecommand is a jail option not a filter option
11 years ago
Daniel Black
4df246b0dd
BF: ignorecommand is a jail option not a filter option
11 years ago
Daniel Black
e220210dc4
DOC: fix ChangeLog entry for exim-spam
11 years ago
Daniel Black
ccb64e68b4
DOC: for exim-spam to say how to enable the log lines for the latest regex
11 years ago
Daniel Black
3d79e1612b
MRG: test cases on exim-spam
11 years ago
Ivo Truxa
d2658e063c
Update exim-spam
...
An example with no valid FROM email address and host without reverse DNS record
11 years ago
Daniel Black
dbca949e5e
DOC: typo in ChangeLog
11 years ago
Daniel Black
d1ea8e85f8
BF: Fix FailRegex.search test case for 0.9
11 years ago
Daniel Black
b5f5ddf123
ENH: end anchor for exim-spam
11 years ago
Daniel Black
ef47c33082
Merge pull request #530 from kwirk/logpath-tail
...
ENH: Add option to addlogpath for tail option
11 years ago
Daniel Black
d727ba639a
ENH: exim-spam to include spamassassin log entry. Closes gh-533
11 years ago
Steven Hiscocks
6a395f4cf7
ENH: add option to addlogpath for tail option
11 years ago
Ivo Truxa
bb88cfaddb
Update exim-spam
...
attached sample Exim log line to demonstrate a silently tossed message as described at https://github.com/fail2ban/fail2ban/issues/533
11 years ago
Daniel Black
2b9d4f86cd
DOC: filter documentation was bigger than DEVELOP so separated it out. Hopefully it may get read more
11 years ago
Daniel Black
4a0e428563
DOC: change log for asynchat.push change
11 years ago
Daniel Black
c074773805
ENH: apache modsecurity from 0.9 branch
11 years ago
Daniel Black
6666f41ee6
ENH: apache modsecurity filter
11 years ago
Daniel Black
be382dae4d
MRG: ufw changelog conflicts
11 years ago
Daniel Black
1f6ece2a40
Merge pull request #490 from grooverdan/firewallcmd-ipset
...
ENH: add firewallcmd-ipset
11 years ago
Daniel Black
ea2a13946e
TST: more test of filters
11 years ago
Daniel Black
8617898f00
TST: additional apache-modsecurity sample log entry
11 years ago
Steven Hiscocks
26b50555ba
Merge pull request #528 from grooverdan/modsecurity
...
ENH: add filter for apache-modsecurity
11 years ago
Daniel Black
c9cfdca396
ENH: add filter for apache-modsecurity
11 years ago
Daniel Black
1dfb4e3374
Merge pull request #527 from kwirk/systemd-backend-datetime
...
ENH: Pass date time straight from systemd backend
11 years ago
Steven Hiscocks
4d128db64a
BF: asyncserver now ensures all data is sent
...
Previously was using `send` method, which uses `socket.send`. This does
not guarantee to send all data, and no check was in place to verify
whether all data was sent. Using asynchat built in `push` method,
ensures that all data is sent before closing the connection.
11 years ago
Steven Hiscocks
f460bde73c
BF: Duplicate ip addresses returned from socket.gethostbyname_ex
11 years ago
Steven Hiscocks
c80297045e
ENH: Pass date time straight from systemd backend
...
Removes need to reparse the date time back from the ISO format
11 years ago
Steven Hiscocks
087af27c65
Merge pull request #523 from grooverdan/more-0.9-tests
...
TST: more test of filters
11 years ago
Steven Hiscocks
d129321e7b
Merge pull request #519 from grooverdan/db-migration
...
addLog to single SQL statement
11 years ago
Yaroslav Halchenko
652260e4eb
Merge pull request #520 from grooverdan/pypy
...
ENH: add PyPy compatibility
11 years ago
Daniel Black
18fbfed91f
ENH: error handling on re.group KeyError exception only for PyPy
11 years ago
Daniel Black
1f1fe254a6
DOC: document PyPy version that use KeyError instead of IndexError
11 years ago
Daniel Black
8df9112487
TST: get StartStop test case closer to something usable (not there yet however)
11 years ago
Daniel Black
6aae276d2b
TST: add #pragma: no cover for python version branches
...
Remove unused code.
11 years ago
Daniel Black
a3b758cdd3
TST: more test of filters
11 years ago
Daniel Black
33df269d82
Merge pull request #522 from yarikoptic/master
...
TST/BF: basic changes to beef up coverage a tiny bit + restore compatibility with python2.4 (since we still claim to support it)
11 years ago