diff options
| author | Fuwn <[email protected]> | 2024-09-05 02:49:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-05 02:49:29 -0700 |
| commit | 9e0867dcd9e0caaa5ef73061e9c7a3375d45f0fb (patch) | |
| tree | f1421d282f33eb6954475819dda043175e076964 /modules/system/networking/firewall/fail2ban.nix | |
| parent | Bump (diff) | |
| download | nixos-config-9e0867dcd9e0caaa5ef73061e9c7a3375d45f0fb.tar.xz nixos-config-9e0867dcd9e0caaa5ef73061e9c7a3375d45f0fb.zip | |
Bump
Diffstat (limited to 'modules/system/networking/firewall/fail2ban.nix')
| -rw-r--r-- | modules/system/networking/firewall/fail2ban.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/system/networking/firewall/fail2ban.nix b/modules/system/networking/firewall/fail2ban.nix new file mode 100644 index 0000000..6311b14 --- /dev/null +++ b/modules/system/networking/firewall/fail2ban.nix @@ -0,0 +1,20 @@ +{ pkgs, lib, ... }: +{ + services.fail2ban = { + enable = false; + banaction = "nftables-multiport"; + banaction-allports = lib.mkDefault "nftables-allport"; + + extraPackages = with pkgs; [ + nftables + ipset + ]; + + ignoreIP = [ + "10.0.0.0/8" + "172.16.0.0/12" + "100.64.0.0/16" + "192.168.0.0/16" + ]; + }; +} |