Steven Hiscocks
41cbbbc248
BF: Remove unused imports and variables.
...
All highlighted by using pyflakes.
11 years ago
Steven Hiscocks
3990a19fc7
BF: Remove "/var/run/fail2ban" from setup.py
...
As the contents of /var/run are lost on reboot, it doesn't make sense to
install it. This is already patched out in some distros (gentoo, arch,
debian, gentoo, …) as causes a headache with package managment tracking
installed files.
11 years ago
Daniel Black
4b2d8a8e51
BF: include test data
11 years ago
Daniel Black
ce586b6e16
PKG: Documentation files
11 years ago
Steven Hiscocks
5630c56c75
ENH: Change logging levels and make info more verbose
11 years ago
Steven Hiscocks
8221c7ca71
TST+BF: Add tests for python actions, including test for smtp.py
...
Also fix bug when specifying multiple recipients for smtp.py action
11 years ago
Steven Hiscocks
80d6f74ee8
RF: Refactor actions further, include removing server proxy interface
...
This allows direct setting of action properties and calling of methods
from the fail2ban-client if so required.
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
Steven Hiscocks
bbadef847b
ENH: Add fail2ban persistent data storage
11 years ago
Daniel Black
1f1a56174f
MRG: merge from master
11 years ago
Orion Poplawski
71317332ec
Install empty /etc/fail2ban/fail2ban.d directory
11 years ago
Orion Poplawski
d3ce9e860f
Install empty /etc/fail2ban/jail.d directory
11 years ago
Daniel Black
04ff9450b5
BF: testcases is a package that needs to be installed. Thanks to Michael Danko on irc
11 years ago
Steven Hiscocks
774c9ce4fd
BF: setup.py build now includes sample log files for tests
12 years ago
Yaroslav Halchenko
b65205d4ad
Merge branch 'master' into 0.9
...
* master:
ENH: "is None" instead of "== None" + tune ups in headers
BF: log error only if there were missed config files that couldn't be read
DOC: missing cinfo tags are ok. Log error for self referencing definitions
DOC: s/defination/definition/g learn to spell
Changelog entry for the previous commit and some untabify
BF: pyinotify backend should also handle IN_MOVED_TO events
ENH: remove stats of config files and use results of SafeConfigParserWithIncludes.read to facilitate meaningful error messages
DOC: credits for gh-70 fix
BF: ensure dates in email are in the C locale. Thanks iGeorgeX
DOC: ChangeLog for recursive tag substition
ENH: allow recursive tag substitution in action files.
DOC: document <br> tag
DOC: ChangeLog for named-refused entry
ENH: Account for views in named filter. By Romain Riviere in gentoo bug #259458
DOC: release documentation and distributor contacts
DOC: changelog entry for enhanced ssh filter
BF: Rename mentioning of README to README.md (Fixes #187 )
updated README.md to hyperlink, add travis and coversall
Moving README into a markup README.md for github's goodnesses
Conflicts:
DEVELOP
README.md
fail2ban/client/configreader.py
fail2ban/server/datedetector.py
12 years ago
Yaroslav Halchenko
c5287e3d9c
BF: Rename mentioning of README to README.md ( Fixes #187 )
12 years ago
Steven Hiscocks
6f3c66f466
ENH: Reimplement warning suppression of setup.py test --quiet
12 years ago
Steven Hiscocks
9d2d907fc1
BF: Remove warnings handler which breaks setup.py python2<2.7 and python3<3.2
12 years ago
Yaroslav Halchenko
7341031a30
ENH: use os.path.join for consistency -- add "Contributors" to authors
12 years ago
Steven Hiscocks
f07a92f0f7
RF: setup.py now imports version number again
12 years ago
Steven Hiscocks
55810a3c30
TST+RF: Add ability to execute test from setup.py with setuptools
...
Note that the fail2ban version can no longer be imported from
"fail2ban.version", as this breaks 2to3 conversion for tests
12 years ago
Steven Hiscocks
36097ffc3e
DOC: Revert setup.py messages to use print statement
12 years ago
Steven Hiscocks
fa0f8f9e6d
Merge branch '0.9' into py3
...
Conflicts:
.travis.yml
MANIFEST
bin/fail2ban-regex
fail2ban/server/filter.py
fail2ban/tests/servertestcase.py
setup.py
12 years ago
Steven Hiscocks
a33bf5baca
ENH: setup.py now automatically runs 2to3 for python3.x
12 years ago
Steven Hiscocks
3a16ceed0a
BF: Added test filter.d files to setup.py package data
12 years ago
Steven Hiscocks
a153653a27
ENH+TST: Move fail2ban-* scripts to bin/
12 years ago
Steven Hiscocks
e3bd2042eb
TST+ENH: Move testcases to part of fail2ban module
...
This allows fail2ban-testcases to be run on an installed fail2ban
instance.
TODO: Fix tests requiring config files
12 years ago
Steven Hiscocks
dba88e842f
ENH+BF+TST+DOC: Make fail2ban a python module
12 years ago
Daniel Black
10d4aa1682
BF: remove non-existant files from setup.py. ENH: add documentation
12 years ago
Yaroslav Halchenko
6004fe7a94
just trailing spaces in setup.py
12 years ago
Yaroslav Halchenko
03b31398aa
ENH: BF (forgotten import) for prev commit + removed duplicate Author, adjusted __ fields for that in fail2ban-* scripts
12 years ago
Leonardo Chiquitto
a7d47e8b36
Update Free Software Foundation's address
...
The address has changed from "59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA" to "51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA" some time ago.
13 years ago
Yaroslav Halchenko
ed6daa70bf
ENH: modelines for emacs and vim to assure consistent indentation scheme (tabs)
13 years ago
Cyril Jaquier
c1bc33b3cc
- Create /var/run/fail2ban during install.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@678 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
56fa32afe7
- Changed homepage and e-mail
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@671 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
a257fdc87d
- Call Python interpreter directly (instead of using "env")
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@522 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
ab3d2d1b9a
- Now Fail2ban goes in /usr/share/fail2ban instead of /usr/lib/fail2ban. This is more compliant with FHS. Thanks to Axel Thimm and Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@511 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
d342d847f2
- Check for deprecated version.py and protocol.py
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@473 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
58acd9fb9f
- Moved version.py and protocol.py to common/
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@467 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
160900f88e
- Fixed pylint warnings.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@466 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
a8299b4247
- Added "protocol.py" which describes the protocol used to communicate with the server
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@461 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
15a4634c38
- Added "shorewall" action
...
- Use glob in setup.py
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@413 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
ebae6d70aa
- Added "apache-noscript" filter. Thanks to Pander
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@411 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
21b56bea33
- Removed dummy.conf from install procedure
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@401 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
dac67d6ea6
- Removed "mail-report.conf" from setup.py
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@367 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
1c3088b267
- Added new action
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@334 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
ebd999a758
- Added new filters
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@332 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
a998e54bb9
- Added "fail2ban-regex". This is a tool to help finding "failregex"
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@329 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
9973bba20f
- Do not install "testcase"
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@292 a942ae1a-1317-0410-a47c-b1dcaea8d605
19 years ago
Cyril Jaquier
8c36bb15a2
- Fixed setup process
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@290 a942ae1a-1317-0410-a47c-b1dcaea8d605
19 years ago