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

Safe Haskell | Safe-Inferred
Language | Haskell2010

Propellor.Property.Fail2Ban

Synopsis

- installed :: Property DebianLike
- reloaded :: Property DebianLike
- type Jail = String
- type Filter = String
- type Action = String
- jailEnabled :: Jail -> Property DebianLike
- jailEnabled' :: Jail -> [(IniKey, String)] -> Property DebianLike
- jailConfigured' :: Jail -> [(IniKey, String)] -> Property UnixLike
- jailConfigured :: Jail -> IniKey -> String -> Property UnixLike
- oldJailConfFile :: Jail -> FilePath
- jailConfFile :: Jail -> FilePath
- filterConfFile :: Filter -> FilePath
- actionConfFile :: Action -> FilePath

# Documentation

installed :: Property DebianLike Source #

reloaded :: Property DebianLike Source #

type Jail = String Source #

type Filter = String Source #

type Action = String Source #

jailEnabled :: Jail -> Property DebianLike Source #

By default, fail2ban only enables the ssh jail, but many others are available to be enabled, for example "postfix-sasl"

jailEnabled' :: Jail -> [(IniKey, String)] -> Property DebianLike Source #

jailConfigured' :: Jail -> [(IniKey, String)] -> Property UnixLike Source #

Configures a jail. For example:

    jailConfigured' "sshd" [("port", "2222")]

jailConfigured :: Jail -> IniKey -> String -> Property UnixLike Source #

Adds a setting to a given jail. For example:

    jailConfigured "sshd" "port"  "2222"

oldJailConfFile :: Jail -> FilePath Source #

jailConfFile :: Jail -> FilePath Source #

filterConfFile :: Filter -> FilePath Source #

actionConfFile :: Action -> FilePath Source #