From b84cc156236ecd4fbe0c9d458e46078df625cb47 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 11 Sep 2024 03:34:29 -0700 Subject: Bump: move networking module --- modules/networking/firewall/fail2ban.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/networking/firewall/fail2ban.nix (limited to 'modules/networking/firewall/fail2ban.nix') diff --git a/modules/networking/firewall/fail2ban.nix b/modules/networking/firewall/fail2ban.nix new file mode 100644 index 0000000..6311b14 --- /dev/null +++ b/modules/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" + ]; + }; +} -- cgit v1.2.3