This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:ubuntu:fail2ban [2019/02/12 10:27] – lunetikk | linux:ubuntu:fail2ban [2019/10/29 10:45] (current) – lunetikk | ||
---|---|---|---|
Line 31: | Line 31: | ||
port = 22 | port = 22 | ||
filter | filter | ||
+ | # | ||
+ | # | ||
logpath | logpath | ||
maxretry = 3 | maxretry = 3 | ||
Line 70: | Line 72: | ||
</ | </ | ||
+ | |||
+ | ===== Abusemails ===== | ||
+ | |||
+ | Click the following link for more info about abuse automatisation\\ | ||
+ | [[linux: | ||
===== Commands ===== | ===== Commands ===== | ||
Line 80: | Line 87: | ||
fail2ban-client set ssh unbanip 192.168.178.1 | fail2ban-client set ssh unbanip 192.168.178.1 | ||
</ | </ | ||
- | |||
- | click the following link for more info on abuse automatisation | ||
- | [[linux: | ||
==== Ban ==== | ==== Ban ==== | ||
Line 96: | Line 100: | ||
Get a list of commands | Get a list of commands | ||
< | < | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== IP gets banned everytime ==== | ||
+ | |||
+ | An IP listed in " | ||
+ | |||
+ | __Reason:__ \\ | ||
+ | The IP was banned before you added it to " | ||
+ | |||
+ | __Fix:__ \\ | ||
+ | The IP is added to the file " | ||
+ | Open the file and remove the IP. | ||
+ | |||