forked from jan-leila/nix-config
		
	main #5
					 1 changed files with 10 additions and 10 deletions
				
			
		|  | @ -61,16 +61,16 @@ in { | |||
|             bantime = 600; | ||||
|             maxretry = 5; | ||||
|           }; | ||||
|           # home-assistant-iptables.settings = lib.mkIf config.services.home-assistant.enable { | ||||
|           #   enabled = true; | ||||
|           #   filter = "hass"; | ||||
|           #   action = ''iptables-multiport[name=HTTP, port="http,https"]''; | ||||
|           #   logpath = "${config.services.home-assistant.configDir}/*.log"; | ||||
|           #   backend = "auto"; | ||||
|           #   findtime = 600; | ||||
|           #   bantime = 600; | ||||
|           #   maxretry = 5; | ||||
|           # }; | ||||
|           home-assistant-iptables.settings = lib.mkIf config.services.home-assistant.enable { | ||||
|             enabled = true; | ||||
|             filter = "hass"; | ||||
|             action = ''iptables-multiport[name=HTTP, port="http,https"]''; | ||||
|             logpath = "${config.services.home-assistant.configDir}/*.log"; | ||||
|             backend = "auto"; | ||||
|             findtime = 600; | ||||
|             bantime = 600; | ||||
|             maxretry = 5; | ||||
|           }; | ||||
|           # TODO; figure out if there is any fail2ban things we can do on searx | ||||
|           # searx-iptables.settings = lib.mkIf config.services.searx.enable {}; | ||||
|         }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue