* sshban 1.9
* (C) 2006 Michał Górny <peres@peres.int.pl>

This is a pre-release version of new branch of sshban. It has been rewritten
from scratch in C, and as it's my first real job in this language, it can do
many very strange things. All comments on my work are welcome.

I have no experience in portability issues, and tested it only on my Gentoo
Linux box, so I'm not sure if it would even compile on other *nix.

New sshban uses its own, simple banlist file format for storage of points
and bans. No additional database support is currently planned (I think that's
only waste of time and bytes).

sshban2 uses SConstruct build system, with make wrapper included. Currently, it
doesn't contain any additional documentation, simple config file which sets
some basic regexps for openssh. This file should be put somewhere in
config_path (see sshban.h), preferably /etc/sshban.conf.

The format of config file is simple. Each line should contain variable name,
equals sign (=) and value. For possible names, please see conf_XXX variables
in sshban.h file.

There is also one special 'variable' for defining log-matching regexps.
To define a one, please use 'regex=N:blah', where N is number of points to add
for matching the regexp, and blah is the regexp itself. Regexps should contain
one or two brackets - sshban looks for IP in $1 and $2.

To use whitelist feature, you must specify IP-regexs (like '^192\.168\.') with
another special, regex-defining variable: 'whitelistr=some_regex'. You can also
specify IP/mask pairs with like 'whitelist=192.168.0.0/16'.

By default, sshban does use temporary bans. To use permament bans, please set
'bantime' to negative value. 'timerinterval' shouldn't be disabled, because
timer is also used for retrying unsuccessful ban tries.

That's all, I think. Have a nice day.

