propellor-4.7.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 

Instances

Eq Proto Source # 

Methods

(==) :: Proto -> Proto -> Bool #

(/=) :: Proto -> Proto -> Bool #

Show Proto Source # 

Methods

showsPrec :: Int -> Proto -> ShowS #

show :: Proto -> String #

showList :: [Proto] -> ShowS #

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 
GroupOwner Group 
Source [IPWithMask] 
Destination [IPWithMask] 
NotDestination [IPWithMask] 
NatDestination IPAddr (Maybe Port) 
Rules :- Rules infixl 0

Combine two rules

Instances

data TCPFlag Source #

Constructors

SYN 
ACK 
FIN 
RST 
URG 
PSH 
ALL 
NONE