Block a user
crowdsec-legacy-firewall-bouncer (nft-dev)
Installation
docker pull gitea.ar2000.me/ar2000/crowdsec-legacy-firewall-bouncer:nft-dev
sha256:c3724c29fb5e7a95f79d1ebbdd28174b0d29f1e491eef7a3e686b3b88e6663b1
Image Layers
ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:ad85a9d7b0a74c2140bd51d9c4559cca392991e0c95f84cb139347348e5d1f9a in / |
CMD ["/bin/bash"] |
RUN /bin/sh -c apt update apt upgrade -y apt install iptables jq -y # buildkit |
RUN /bin/sh -c update-alternatives --set iptables /usr/sbin/iptables-nft # buildkit |
RUN /bin/sh -c update-alternatives --set ip6tables /usr/sbin/ip6tables-nft # buildkit |
ARG IPTABLES_MODE=nft |
RUN |1 IPTABLES_MODE=nft /bin/sh -c mkdir -p /etc/crowdsec/bouncers # buildkit |
COPY /app/cs-custom-bouncer/crowdsec-custom-bouncer /usr/bin/crowdsec-custom-bouncer # buildkit |
COPY /app/cs-custom-bouncer/config/crowdsec-custom-bouncer.yaml /crowdsec-custom-bouncer.yaml # buildkit |
RUN |1 IPTABLES_MODE=nft /bin/sh -c sed -i "s/total_retries: .*/total_retries: 1/g" /crowdsec-custom-bouncer.yaml # buildkit |
ADD --chmod=770 bouncer.sh /bouncer.sh # buildkit |
ENV BINARY_PATH=/bouncer.sh |
LABEL me.ar2000.gitea.buildargs.iptablesmode=nft |
CMD ["/usr/bin/crowdsec-custom-bouncer" "-c" "/crowdsec-custom-bouncer.yaml"] |
Labels
Key | Value |
---|---|
me.ar2000.gitea.buildargs.iptablesmode | nft |
org.opencontainers.image.ref.name | ubuntu |
org.opencontainers.image.version | 24.04 |