propellor-3.0.4: 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

Instances

data Table Source

Constructors

Filter 
Nat 
Mangle 
Raw 
Security 

Instances

data Target Source

Constructors

ACCEPT 
REJECT 
DROP 
LOG 
TargetCustom String 

Instances

data Proto Source

Constructors

TCP 
UDP 
ICMP 

Instances

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

Instances

Eq Rules Source 
Show Rules Source 
Monoid Rules Source 

data ICMPTypeMatch Source

Constructors

ICMPTypeName String 
ICMPTypeCode Int 

data TCPFlag Source

Constructors

SYN 
ACK 
FIN 
RST 
URG 
PSH 
ALL 
NONE 

Instances

data Frequency Source

Constructors

NumBySecond Int 

Instances