You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_cookbook/fail2ban.markdown
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Then make sure logging is enabled in your `configuration.yaml` file for your Hom
20
20
logger:
21
21
default: critical
22
22
logs:
23
-
homeassistant.components.http: warning
23
+
homeassistant.components.http.ban: warning
24
24
```
25
25
26
26
Next we will be creating these three files :
@@ -43,12 +43,9 @@ Contents of `/etc/fail2ban/filter.d/hass.local`:
43
43
before = common.conf
44
44
45
45
[Definition]
46
-
failregex = ^%(__prefix_line)s.*Login attempt or request with an invalid password from <HOST>.*$
46
+
failregex = ^%(__prefix_line)s.*Login attempt or request with invalid authentication from <HOST>.*$
47
47
48
48
ignoreregex =
49
-
50
-
[Init]
51
-
datepattern = ^%%y-%%m-%%d %%H:%%M:%%S
52
49
```
53
50
54
51
Contents of `/etc/fail2ban/jail.local` (Note that you'll need to change the `logpath` to match your logfile which will be different from the path listed.):
@@ -58,7 +55,7 @@ Contents of `/etc/fail2ban/jail.local` (Note that you'll need to change the `log
0 commit comments