Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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
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 #