fix: replace microsocks with dante-server (apt package, no compilation)

- Removes gcc/make/git and the microsocks git clone+build step
- Installs dante-server from apt — zero compilation required
- danted uses 'external: tun0' to explicitly route all proxied traffic
  through the VPN interface, more reliable than iptables-based routing
- Config is generated at runtime after tun0 is confirmed up
This commit is contained in:
2026-03-11 09:58:44 +01:00
parent 505da89144
commit d104249fbb
2 changed files with 41 additions and 18 deletions

View File

@@ -1,10 +1,10 @@
FROM debian:bookworm-slim
LABEL description="microsocks + purevpn-cli exit node"
LABEL description="dante SOCKS5 + purevpn-cli exit node"
# ── System dependencies ───────────────────────────────────────────────────────
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc make git \
dante-server \
curl wget ca-certificates \
iproute2 iptables iputils-ping \
netcat-openbsd procps dnsutils \
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# ── Install purevpn-cli (official installer) ──────────────────────────────────
# Running as root inside Docker so no sudo needed.
# Running as root inside Docker no sudo needed.
RUN curl -fsSL https://apps.purevpn-tools.com/cross-platform/linux-cli/production/cli-install.sh \
-o /tmp/cli-install.sh \
&& bash /tmp/cli-install.sh \
@@ -21,13 +21,6 @@ RUN curl -fsSL https://apps.purevpn-tools.com/cross-platform/linux-cli/productio
# ── Add purevpn-cli to PATH (as per official docs) ────────────────────────────
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/etc/pure-linux-cli/
# ── Build microsocks from source ──────────────────────────────────────────────
RUN git clone --depth 1 https://github.com/rofl0r/microsocks.git /tmp/microsocks \
&& cd /tmp/microsocks \
&& make \
&& cp microsocks /usr/local/bin/microsocks \
&& rm -rf /tmp/microsocks
# ── Location list ─────────────────────────────────────────────────────────────
COPY servers.txt /etc/vpndock/servers.txt