added home assistant to fail2ban

This commit is contained in:
Leyla Becker 2025-07-12 15:04:44 -05:00
parent 3ce9b625d1
commit 644f9371eb

View file

@ -61,16 +61,16 @@ in {
bantime = 600; bantime = 600;
maxretry = 5; maxretry = 5;
}; };
# home-assistant-iptables.settings = lib.mkIf config.services.home-assistant.enable { home-assistant-iptables.settings = lib.mkIf config.services.home-assistant.enable {
# enabled = true; enabled = true;
# filter = "hass"; filter = "hass";
# action = ''iptables-multiport[name=HTTP, port="http,https"]''; action = ''iptables-multiport[name=HTTP, port="http,https"]'';
# logpath = "${config.services.home-assistant.configDir}/*.log"; logpath = "${config.services.home-assistant.configDir}/*.log";
# backend = "auto"; backend = "auto";
# findtime = 600; findtime = 600;
# bantime = 600; bantime = 600;
# maxretry = 5; maxretry = 5;
# }; };
# TODO; figure out if there is any fail2ban things we can do on searx # TODO; figure out if there is any fail2ban things we can do on searx
# searx-iptables.settings = lib.mkIf config.services.searx.enable {}; # searx-iptables.settings = lib.mkIf config.services.searx.enable {};
}; };