fail2ban.server.filterpoll module

class fail2ban.server.filterpoll.FilterPoll(jail)

Bases: FileFilter

Attributes:
daemon

A boolean value indicating whether this thread is a daemon thread.

ident

Thread identifier of this thread or None if it has not been started.

ignoreCache
ignoreCommand
ignoreSelf
jailName
mlfidCache
name

A string used for identification purposes only.

native_id

Native integral thread ID of this thread, or None if it has not been started.

prefRegex

Methods

addAttempt(ip, *matches)

Generate a failed attempt for ip

clearAllParams()

Clear all lists/dicts parameters (used by reloading)

getModified(modlst)

getName()

Return a string used for identification purposes only.

isAlive()

Return whether the thread is alive.

isDaemon()

Return whether this thread is a daemon.

is_alive()

Return whether the thread is alive.

join()

Safer join, that could be called also for not started (or ended) threads (used for cleanup).

onStop()

Stop monitoring of log-file(s).

performBan([ip])

Performs a ban for IPs (or given ip) that are reached maxretry of the jail.

performSvc([force])

Performs a service tasks (clean failure list).

processLine(line[, date])

Split the time portion from log msg and return findFailures on them

processLineAndAdd(line[, date])

Processes the line for failures and populates failManager

reload([begin])

Begin or end of reloading resp.

run()

Abstract - Called when thread starts, thread stops when returns.

setDaemon(daemonic)

Set whether this thread is a daemon.

setName(name)

Set the name string for this thread.

start()

Sets active flag and starts thread.

status([flavor])

Status of Filter plus files being monitored.

stop()

Stop filter

addFailRegex

addIgnoreIP

addIgnoreRegex

addLogPath

commonError

containsLogPath

delFailRegex

delIgnoreIP

delIgnoreRegex

delLogPath

findFailure

getDatePattern

getFailRegex

getFailures

getFindTime

getIgnoreIP

getIgnoreRegex

getLog

getLogCount

getLogEncoding

getLogPaths

getLogTimeZone

getLogs

getMaxLines

getMaxRetry

getPendingPaths

getUseDns

inIgnoreIPList

isModified

logIgnoreIp

seekToTime

setDatePattern

setFindTime

setLogEncoding

setLogTimeZone

setMaxLines

setMaxRetry

setUseDns

getModified(modlst)
getPendingPaths()
isModified(filename)
run()

Abstract - Called when thread starts, thread stops when returns.