From 62a1f8855d498113f04a3df354f6bb33efe7eda2 Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 20 Jun 2019 11:11:33 +0000 Subject: [PATCH] swaks and host --- docker-compose.yml | 10 +++------- fail2ban/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) 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