git subrepo clone https://github.com/mailcow/mailcow-dockerized.git mailcow/src/mailcow-dockerized
subrepo: subdir: "mailcow/src/mailcow-dockerized"
merged: "a832becb"
upstream: origin: "https://github.com/mailcow/mailcow-dockerized.git"
branch: "master"
commit: "a832becb"
git-subrepo: version: "0.4.3"
origin: "???"
commit: "???"
Change-Id: If5be2d621a211e164c9b6577adaa7884449f16b5
diff --git a/mailcow/src/mailcow-dockerized/data/Dockerfiles/netfilter/Dockerfile b/mailcow/src/mailcow-dockerized/data/Dockerfiles/netfilter/Dockerfile
new file mode 100644
index 0000000..42aafd4
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/Dockerfiles/netfilter/Dockerfile
@@ -0,0 +1,15 @@
+FROM alpine:3.11
+LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
+
+ENV XTABLES_LIBDIR /usr/lib/xtables
+ENV PYTHON_IPTABLES_XTABLES_VERSION 12
+ENV IPTABLES_LIBDIR /usr/lib
+
+RUN apk add --virtual .build-deps gcc python3-dev libffi-dev openssl-dev \
+ && apk add -U python3 iptables ip6tables tzdata musl-dev \
+ && pip3 install --upgrade pip python-iptables redis ipaddress dnspython \
+# && pip3 install --upgrade pip python-iptables==0.13.0 redis ipaddress dnspython \
+ && apk del .build-deps
+
+COPY server.py /
+CMD ["python3", "-u", "/server.py"]