Class Symbiosis::Firewall::Directory
In: firewall/lib/symbiosis/firewall/directory.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

This is a superclass that is inherited by Symbiosis::Firewall::IPListDirectory and Symbiosis::Firewall::TemplateDirectory. It represents a directory, like incoming.d, blacklist.d, etc.

Methods

default=   new   read   to_s  

Attributes

chain  [R] 
default  [R] 
direction  [R] 
path  [R] 

Public Class methods

path:directory where the rules are
direction:either incoming or outgoing
chain:Specify the rules go in the chain of this name. This can be nil, in which case, INPUT or OUTPUT is chosen based on direction.

Public Instance methods

Set the default template name. Defaults to "accept".

Reads the directory, and returns an array of templates and hostames, i.e.

 [
   [template, hostnames],
   [another template, other hostnames]
 ]

Return a string that is to be inserted into the firewall script for execution.

[Validate]