Анализатор логов
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cron.d
templates
tests
.gitignore
LICENSE
README.md
badguys.py
ipfw.py
iplist.py
log.py

README.md

GeoIP - путь к файлу geoip exclude - списки исключений по уже имеющимся IP и странам

{
    "GeoIP": {
        "ipv4": "/usr/share/GeoIP/GeoIP.dat",
        "ipv6": "/usr/share/GeoIP/GeoIPv6.dat"
    },
    "exclude": {
        "ipv4": [],
        "ipv6": [],
        "country": ["RU"]
    },
    "logs": {
        "dovecot": {
            "patterns": [
                "Warning: SSL alert: where=0x4008, ret=552: fatal handshake failure"
            ],
            "files": [
                "dovecot.log"
            ]
        },
        "exim": {
            "patterns": [
                "(login|lookup_cram) authenticator failed for",
                "Incorrect authentication data"
            ],
            "files": [
                "mainlog"
            ]
        },
        "ssh": {
            "patterns": [
                "error\\: PAM\\: authentication error for \\w* from",
                "Invalid user \\w* from",
                "Received disconnect from"
            ],
            "files": [
                "auth.log"
            ]
        }
    }
}