propellor-3.0.1: 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 Table Source

Constructors

Filter 
Nat 
Mangle 
Raw 
Security 

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] 
ICMPType ICMPTypeMatch 
RateLimit Frequency 
TCPFlags TCPFlagMask TCPFlagComp 
TCPSyn 
Source [IPWithMask] 
Destination [IPWithMask] 
NatDestination IPAddr (Maybe Port) 
Rules :- Rules infixl 0

Combine two rules

data TCPFlag Source

Constructors

SYN 
ACK 
FIN 
RST 
URG 
PSH 
ALL 
NONE