summary refs log tree commit diff
path: root/nixos/modules/services/security/fail2ban.nix
Commit message (Collapse)AuthorAge
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* sshd service: Default to INFO logLevel (upstream default).Niklas Hambüchen2021-06-23
| | | | | | | | | | | | | | The previous justification for using "VERBOSE" is incorrect, because OpenSSH does use level INFO to log "which key was used to log in" for sccessful logins, see: https://github.com/openssh/openssh-portable/blob/6247812c76f70b2245f3c23f5074665b3d436cae/auth.c#L323-L328 Also update description to the wording of the sshd_config man page. `fail2ban` needs, sshd to be "VERBOSE" to work well, thus the `fail2ban` module sets it to "VERBOSE" if enabled. The docs are updated accordingly.
* nixos/fail2ban: Remove `reloadIfChanged = true`talyz2021-06-16
| | | | | This makes the service fail when upgrading the package, so let's properly restart it instead.
* nixos/fail2ban: add extraPackages optionpennae2021-04-24
| | | | | | | | | | some ban actions need additional packages (eg ipset). since actions can be provided by the user we need something general that's easy to configure. we could also enable ipset regardless of the actual configuration of the system if the iptables firewall is in use (like sshguard does), but that seems very clumsy and wouldn't easily solve the binary-not-found problems other actions may also have.
* nixos/fail2ban: add maxretry optionpennae2021-04-24
| | | | | | | it's not possible to set a different default maxretry value in the DEFAULT jail because the module already does so. expose the maxretry option to the configuration to remedy this. (we can't really remove it entirely because fail2ban defaults to 5)
* iproute: deprecate aliasSandro Jäckel2021-04-04
|
* treewide: De-inline uses of lib.boolToStringMalte Brandy2020-10-14
| | | | This commit should not change eval results
* fail2ban: fix firewall warningSimon Lackerbauer2020-03-22
|
* nixos/fail2ban: disable work fail2ban without firewallIzorkin2020-03-18
|
* nixos/fail2ban: enable sandboxingIzorkin2020-01-29
|
* nixos/fail2ban: add custom optionsIzorkin2020-01-29
|
* nixos/fail2ban: update serviceConfigIzorkin2020-01-29
|
* nixos/fail2ban: add options to enable work service with iptables-compatIzorkin2020-01-29
|
* nixos/fail2ban: clean-up configurationIzorkin2020-01-29
|
* fail2ban service : improve ssh jail (#21131)Renaud2016-12-14
| | | | Improvement to the ssh-iptables to block the port(s) actually defined for sshd in config.services.openssh.ports
* fail2ban service: add iproute to PATHTaeradan2016-05-23
| | | | | | | iproute is required for blocking via null routes; without it, rules based on routes.conf will fail. Closes #15638
* fail2ban: rework serviceAlexander Ried2016-04-26
|
* fail2ban service: fix formatting of exampleLeroy Hopson2016-02-27
|
* nixos/fail2ban: Enable jails by defaultSvein Ove Aas2016-01-04
| | | | | | | With jails defaulting to 'enabled = true', the sshd jail that NixOS defines will now be enabled. [Bjørn: tweak commit message]
* nixos/fail2ban: capitalize service descriptionBjørn Forsman2015-02-22
|
* nixos/fail2ban: don't use types.string (it's deprecated)Bjørn Forsman2014-09-05
| | | | | | I'm not really sure which one of types.lines or types.str that fit better, but I'm going for types.lines because it behaves more like the current type (i.e. have the ability to merge).
* fail2ban: systemd supportJoel Taylor2014-08-08
| | | | | | - upgrade fail2ban to 0.9 - override systemd to enable python support and include sqlite3 module - make fail2ban enablable
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* fail2ban: Fix preStart actionEelco Dolstra2013-12-11
| | | | | | | Creating /run/fail2ban didn't work since it didn't have write permission to /run. Now it does. Reported by Thomas Bereknyei.
* fail2ban: Update to 0.8.10Eelco Dolstra2013-10-16
| | | | | Also fix random start failures due to a race between the fail2ban server and the postStart script.
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10