diff --git a/docker-compose.yml b/docker-compose.yml index 1f452e1..c5a21ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,7 @@ services: hostname: fail2ban container_name: fail2ban restart: always + privileged: true entrypoint: - /bin/bash - /etc/fail2ban/entrypoint.sh @@ -16,12 +17,7 @@ services: - 22:22/tcp - 2222:2222/tcp networks: - mynet: - ipv4_address: 172.24.0.101 + failnet: networks: - mynet: - driver: bridge - ipam: - config: - - subnet: 172.24.0.0/24 + failnet: diff --git a/fail2ban/Dockerfile b/fail2ban/Dockerfile index 62d6284..fe91f7f 100644 --- a/fail2ban/Dockerfile +++ b/fail2ban/Dockerfile @@ -1,3 +1,3 @@ FROM debian:sid-slim -RUN apt update && apt -y upgrade && apt -y install fail2ban openssh-server rsyslog && apt clean +RUN apt update && apt -y upgrade && apt -y install fail2ban openssh-server rsyslog swaks host && apt clean WORKDIR /etc/fail2ban