propellor-2.16.0: property-based host configuration management in haskell

MaintainerArnaud Bailly <arnaud.oqube@gmail.com>
Safe HaskellNone
LanguageHaskell98

Propellor.Property.Firewall

Description

Properties for configuring firewall (iptables) rules

Documentation

data Chain Source

Constructors

INPUT 
OUTPUT 
FORWARD 

data Proto Source

Constructors

TCP 
UDP 
ICMP 

data Rules Source

Constructors

Everything 
Proto Proto

There is actually some order dependency between proto and port so this should be a specific data type with proto + ports

DPort Port 
DPortRange (Port, Port) 
InIFace Interface 
OutIFace Interface 
Ctstate [ConnectionState] 
Source [IPWithMask] 
Destination [IPWithMask] 
Rules :- Rules infixl 0

Combine two rules