ip6tables
This commit is contained in:
@@ -9,9 +9,11 @@ EOF
|
|||||||
|
|
||||||
FROM iptables AS iptables-legacy
|
FROM iptables AS iptables-legacy
|
||||||
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
|
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
|
||||||
|
RUN update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
|
||||||
|
|
||||||
FROM iptables AS iptables-nft
|
FROM iptables AS iptables-nft
|
||||||
RUN update-alternatives --set iptables /usr/sbin/iptables-nft
|
RUN update-alternatives --set iptables /usr/sbin/iptables-nft
|
||||||
|
RUN update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
|
||||||
|
|
||||||
FROM golang:1.21.4 AS build-stage
|
FROM golang:1.21.4 AS build-stage
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -27,7 +29,7 @@ COPY --from=build-stage /app/cs-custom-bouncer/crowdsec-custom-bouncer \
|
|||||||
COPY --from=build-stage /app/cs-custom-bouncer/config/crowdsec-custom-bouncer.yaml \
|
COPY --from=build-stage /app/cs-custom-bouncer/config/crowdsec-custom-bouncer.yaml \
|
||||||
/crowdsec-custom-bouncer.yaml
|
/crowdsec-custom-bouncer.yaml
|
||||||
ADD --chmod=770 bouncer.sh /bouncer.sh
|
ADD --chmod=770 bouncer.sh /bouncer.sh
|
||||||
ENV BINARY_PATH=/bouncer.yaml
|
ENV BINARY_PATH=/bouncer.sh
|
||||||
#prometheus port
|
#prometheus port
|
||||||
LABEL me.ar2000.gitea.buildargs.iptablesmode="${IPTABLES_MODE}"
|
LABEL me.ar2000.gitea.buildargs.iptablesmode="${IPTABLES_MODE}"
|
||||||
CMD ["/usr/bin/crowdsec-custom-bouncer", "-c", "/crowdsec-custom-bouncer.yaml"]
|
CMD ["/usr/bin/crowdsec-custom-bouncer", "-c", "/crowdsec-custom-bouncer.yaml"]
|
||||||
|
Reference in New Issue
Block a user