diff --git a/Dockerfile b/Dockerfile index 6ec963c..55b25a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ COPY entrypoint.sh / ENV DEBIAN_FRONTEND noninteractive RUN true && \ apt update && \ - apt install -y gnupg ca-certificates curl && \ + apt install -y gnupg ca-certificates curl socat && \ curl https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg && \ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $DEBIAN_RELEASE main" | tee /etc/apt/sources.list.d/cloudflare-client.list && \ apt update && \ diff --git a/entrypoint.sh b/entrypoint.sh index 9e12cba..90e7d78 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,8 +6,9 @@ while ! warp-cli --accept-tos register; do >&2 echo "Awaiting warp-svc become online..." done warp-cli --accept-tos set-mode proxy -warp-cli --accept-tos set-proxy-port 40000 +warp-cli --accept-tos set-proxy-port 40001 warp-cli --accept-tos connect +socat TCP-IP:localhost:40001:fork,ipv6=on TCP-IP:0.0.0.0:40000 # socat is used to redirect traffic from 40000 to 40001 ) & exec warp-svc