From f6cdeabe2f57b97299308e16486958ed122315b9 Mon Sep 17 00:00:00 2001 From: hc Date: Sat, 7 Feb 2026 12:15:01 +0000 Subject: initial commit --- Dockerfile.mullvad | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile.mullvad (limited to 'Dockerfile.mullvad') diff --git a/Dockerfile.mullvad b/Dockerfile.mullvad new file mode 100644 index 0000000..9998d60 --- /dev/null +++ b/Dockerfile.mullvad @@ -0,0 +1,20 @@ +FROM rockylinux/rockylinux:10 + +RUN dnf install -y epel-release && \ + dnf install -y \ + wireguard-tools \ + iptables \ + iproute \ + curl \ + procps-ng \ + && dnf clean all + +# Copy WireGuard config (exported from Mullvad website) +COPY wg0.conf /etc/wireguard/wg0.conf +RUN chmod 600 /etc/wireguard/wg0.conf + +# Kill switch: only allow traffic through the VPN tunnel +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] -- cgit