mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-29 22:30:27 +02:00
Add ban feature to fail2ban script (#2538)
This commit is contained in:
parent
9aaf15b38f
commit
de61d42e68
9 changed files with 105 additions and 30 deletions
|
@ -427,6 +427,17 @@ sed -i 's/rimap -r/rimap/' /etc/supervisor/conf.d/saslauth.conf
|
|||
supervisorctl update
|
||||
```
|
||||
|
||||
### How to ban custom IP addresses with Fail2ban
|
||||
|
||||
Use the following command:
|
||||
|
||||
```bash
|
||||
./setup.sh fail2ban ban <IP>
|
||||
```
|
||||
|
||||
The default bantime is 180 days. This value can be [customized][fail2ban-customize].
|
||||
|
||||
[fail2ban-customize]: ./config/security/fail2ban.md
|
||||
[docs-maintenance]: ./config/advanced/maintenance/update-and-cleanup.md
|
||||
[docs-userpatches]: ./config/advanced/override-defaults/user-patches.md
|
||||
[github-issue-95]: https://github.com/docker-mailserver/docker-mailserver/issues/95
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue