feat(gateway): add iptables-legacy and temporary port redirection
continuous-integration/drone/push Build is passing

- Install iptables-legacy package in Dockerfile to support iptables rules
- Add temporary iptables rules in set_gateway.sh to redirect HTTP/HTTPS traffic from wg0 to 172.18.103.2
- These rules are temporary and should be removed after service-exec go update
This commit is contained in:
gyurix
2026-06-15 07:41:07 +02:00
parent 66c87e7266
commit eeef07d964
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ FROM alpine:latest
COPY --from=0 /root/.cargo/bin/boringtun-cli /usr/bin/boringtun
RUN apk add --no-cache tini wireguard-tools \
# replace the commented line with the following after service-exec go update
#RUN apk add --no-cache tini wireguard-tools \
RUN apk add --no-cache tini wireguard-tools iptables-legacy \
&& apk add --no-cache --virtual .build-deps libcap \
&& setcap cap_net_admin+ep /usr/bin/boringtun \
&& apk del --purge .build-deps \