| Class | Symbiosis::Firewall::Blacklist |
| In: |
firewall/lib/symbiosis/firewall/blacklist.rb
|
| Parent: | Object |
| 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. |
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.