fabtools.require.shorewall

Shorewall firewall

fabtools.require.shorewall.firewall(zones=None, interfaces=None, policy=None, rules=None, routestopped=None, masq=None)[source]

Ensure that a firewall is configured.

Example:

from fabtools.shorewall import *
from fabtools import require

# We need a firewall with some custom rules
require.shorewall.firewall(
    rules=[
        Ping(),
        SSH(),
        HTTP(),
        HTTPS(),
        SMTP(),
        rule(port=1234, source=hosts(['example.com'])),
    ]
)
fabtools.require.shorewall.started()[source]

Ensure that the firewall is started.

fabtools.require.shorewall.stopped()[source]

Ensure that the firewall is stopped.

Read the Docs v: 0.17.0
Versions
latest
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.