| Class | Symbiosis::Firewall::IPListDirectory |
| In: |
firewall/lib/symbiosis/firewall/directory.rb
|
| Parent: | Directory |
This class allows a directory containing IP addresses to be used to construct either a whitelist or a blacklist of the IP addresses which are in that directory.
For example the following directory tree will blacklist all incoming connections from the IP addresses 1.2.3.4, 1.4.4.4, and 10.20.30.40:
. |--- 10.20.30.40 |--- 1.2.3.4 \--- 1.4.4.4
If the name looks like an IP address and is of the form
1.2.3.4|24
or
2001:dead:beef:cafe::1|64
then these would be mangled to become 1.2.3.4/24 or 2001:dead:beef:cafe::1/64 respectively, before being transformed into an IP address.
Each file can contain a list of ports/services/templates, or the word "all", or nothing at all.