Class Symbiosis::Firewall::Blacklist
In: firewall/lib/symbiosis/firewall/blacklist.rb
Parent: Object
Array Utmp EventMachine::Connection ApacheLogger StandardError CrontabFormatError Enumerable IPAddr ::IPAddr Host Range Domain ConfigFile Prosody Tinydns Apache Webalizer Directory IPListDirectory TemplateDirectory Domains Alert Crontab CrontabRecord StateDB Check Runner TCPConnection Test Process BlacklistDB Template Logtail Pattern Ports Blacklist Monitor ConfigFiles Utils Firewall Symbiosis dot/f_0.png

Methods

Attributes

base_dir  [R]  Returns the base directory. Defaults to /etc/symbiosis/firewall.
block_after  [R]  The number of matches required for a blacklist entry to be activated. Defaults to 20.
logtail_db  [R]  The name of the logtail database, Defaults to /var/lib/symbiosis/firewall-blacklist-logtail.db.

Public Class methods

Public Instance methods

Sets the base directory. Raises Errno::ENOENT if the directory doesn‘t exist.

This sets the number of attempts needed to trigger blacklisting for this pattern. Its argument should be an Integer, and raises an ArgumentError if not.

This generates the blacklist. It returns a hash with IP addresses as keys, and arrays of ports as values.

Sets the filename of logtail database. This is where offsets are recorded for the various logfiles parsed.

[Validate]