From 6482a6cb0195d4cf516d49b1f376fb767e7139ec Mon Sep 17 00:00:00 2001 From: lisenet Date: Tue, 2 Apr 2024 18:11:52 +0100 Subject: [PATCH] Replace iptables with iptables-legacy --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb27ce2..a9e8275 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,12 @@ FROM alpine:edge LABEL maintainer="Tomas Nevar " # Testing: pamtester -RUN apk add --update openvpn iptables bash easy-rsa openvpn-auth-pam google-authenticator libqrencode && \ +RUN apk add --update openvpn iptables iptables-legacy bash easy-rsa openvpn-auth-pam google-authenticator libqrencode && \ apk update && apk upgrade && \ ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \ - rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* + rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* && \ + rm /sbin/iptables && \ + ln -s /sbin/iptables-legacy /sbin/iptables # Needed by scripts ENV OPENVPN=/etc/openvpn