Added fail2ban, though not sure its configured correctly yet

This commit is contained in:
Jamie Curnow
2023-03-09 22:11:28 +10:00
parent e959e54dc8
commit 700518a0a2
245 changed files with 9172 additions and 5 deletions

View File

@ -53,6 +53,12 @@ ENV SUPPRESS_NO_CONFIG_WARNING=1 \
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf
# fail2ban
RUN apt-get update \
&& apt-get install -y --no-install-recommends fail2ban \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /etc/fail2ban
# s6 overlay
COPY scripts/install-s6 /tmp/install-s6
RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -rf /tmp/*