fix: Use iptables-legacy on nattertool/natter:alpine #51

This commit is contained in:
Mike Wang
2024-03-11 02:41:32 +08:00
parent 7275caeeeb
commit 8d16365e76
2 changed files with 4 additions and 2 deletions

View File

@@ -3,7 +3,8 @@ FROM --platform=linux/amd64 amd64/alpine:3.19
COPY natter.py /opt/natter.py
RUN apk update \
&& apk add ca-certificates curl gzip iptables jq nftables python3 socat wget \
&& apk add ca-certificates curl gzip iptables iptables-legacy jq nftables python3 socat wget \
&& ln -sf iptables-legacy /sbin/iptables \
&& curl -L 'https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-amd64-2.11.5.gz' | gunzip > /usr/bin/gost \
&& chmod a+x /usr/bin/gost \
&& chmod a+x /opt/natter.py

View File

@@ -3,7 +3,8 @@ FROM --platform=linux/arm64 arm64v8/alpine:3.19
COPY natter.py /opt/natter.py
RUN apk update \
&& apk add ca-certificates curl gzip iptables jq nftables python3 socat wget \
&& apk add ca-certificates curl gzip iptables iptables-legacy jq nftables python3 socat wget \
&& ln -sf iptables-legacy /sbin/iptables \
&& curl -L 'https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-armv8-2.11.5.gz' | gunzip > /usr/bin/gost \
&& chmod a+x /usr/bin/gost \
&& chmod a+x /opt/natter.py