Yaroslav Halchenko
776322cea3
BF: realpath for /var/run/fail2ban Closes #1142
9 years ago
Lee Clemens
7f68516c5c
Re-add shebang to setup.py
10 years ago
Lee Clemens
f50dcf7658
Remove shebang from setup.py
10 years ago
Lee Clemens
7667712909
Fix pep8 E401 multiple imports on one line
10 years ago
Yaroslav Halchenko
2d9ece2d04
BF: 'create' /var/run/fail2ban on systems with /var/run
...
Should overcome problems of some users installing using setup.py install
10 years ago
Lee Clemens
38415d2cf1
Add trailing comma back to list
10 years ago
Lee Clemens
af078532ac
New jail: apache-fakegooglebot
...
Detects fake googlebot user agents in apache access log
10 years ago
Deyuan Deng
5e9619d4a4
Clean up setup.py
11 years ago
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
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
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
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