Fail2ban Docker image based on Ubuntu
2.3K
Fail2ban Docker image based on Ubuntu
Clone this repo if you want to use configs already set by me.
rhost and rport or declare the docker env vars REDIS_HOST, REDIS_PORT and REDIS_KEYnodename and ignoreip in jail.d/neo.conf to match your needs| Variable | Default | Description |
|---|---|---|
| F2B_DEST_EMAIL | root@localhost | destination email to receive reports |
| F2B_SENDER | root@$(hostname -f) | sender email for reports |
| SSMTP_HOST | none | SMTP host to use for send email |
| SSMTP_PORT | 25 | SMTP port |
| ABUSEIPDB_APIKEY | (unset) | API key taken from AbuseIPDB |
| REDIS_KEY | bad:defer:honey:honey:0 | key used to store matches in a Redis server |
| REDIS_HOST | 127.0.0.1 | Redis server address |
| REDIS_PORT | 6379 | Redis server port |
| NODE_NAME | honey-node | Assign a name to this node |
| IGNORE_IP | 127.0.0.1 | IP or CIDR list to ignore from ban |
| (other settings) | () | see entrypoint.sh |
BASE_DIR="/srv/data/docker/containers/fail2ban/"
NAME="fail2ban"
docker run -d --privileged --net=host --name $NAME --hostname $NAME -v $BASE_DIR/confs:/data neomediatech/$NAME
Add a bind mount where to point your logs that f2b need to monitor for ex:
-v $BASE_DIR/logs:/var/log
env_file parameter (at least for now, 27 feb 2019).Content type
Image
Digest
sha256:f582a01e4…
Size
71.2 MB
Last updated
6 months ago
docker pull neomediatech/fail2ban