added home assistant to fail2ban
This commit is contained in:
parent
3ce9b625d1
commit
644f9371eb
1 changed files with 10 additions and 10 deletions
|
@ -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 {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue