See also
Helper to build a firewall rule.
Examples:
from fabtools.shorewall import rule
# Rule to accept connections from example.com on port 1234
r1 = rule(port=1234, source=hosts(['example.com']))
# Rule to reject outgoing SMTP connections
r2 = rule(port=25, action='REJECT', source='$FW', dest='net')
Builds a host list suitable for use in a firewall rule.
Helper to build a firewall rule for ICMP pings.
Extra args will be passed to rule().
Helper to build a firewall rule for SSH connections
Extra args will be passed to rule().
Helper to build a firewall rule for HTTP connections
Extra args will be passed to rule().