- Fail2ban for HASS + Fail2ban
This is a quick guide on how to setup fail2ban for Home Assistant. This was originally in the forum but I created this here for people.
First install fail2ban
. On Debian/Ubuntu this would be apt-get install fail2ban
. On other distros you can google it.
Then make sure logging is enabled in your configuration.yaml
file for your Home Assistant instance:
logger:
+ default: critical
+ logs:
+ homeassistant.components.http: warning
+
+Next we will be creating these three files :
/etc/fail2ban/fail2ban.local
@@ -165,7 +172,7 @@ May 24 20:58:02 homeauto fail2ban.jail[15217]: INFO Jail 'hass-
OwnTracks with two MQTT brokers
- - fail2ban for HASS + fail2ban